Bug 882912 - US_FL_SINGLE_LUN needed in unusual_cypress.h for 04b4:6830
Summary: US_FL_SINGLE_LUN needed in unusual_cypress.h for 04b4:6830
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 17
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 882914 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-03 10:45 UTC by Pertti Hyppönen
Modified: 2013-08-01 02:21 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-01 02:21:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
2 kernel logs, 2 usb traces, output of lsusb -v (11.69 KB, application/x-gzip)
2012-12-03 10:45 UTC, Pertti Hyppönen
no flags Details

Description Pertti Hyppönen 2012-12-03 10:45:21 UTC
Created attachment 656535 [details]
2 kernel logs, 2 usb traces, output of lsusb -v

Description of problem:
I have so called Digi Box, ProCaster PVR-6500 for receiving digital TV broadcasting (using analog TV). In ProCaster there is a 500GB HDD for saving received programs and a USB 2 connector for transfer saved files to computer. With Windows XP and Windows 7 USB file transfer works OK.

Using Fedora 17 following happens:
After ProCaster is cold started, plugin USB to PC shows mount menu in Gnome and HDD can be mounted. Mount succeeds and file transfer works OK. Also unmount and remount work OK. I saved a trace of USB communication and there is seen that Get Max LUN function is used and response to that is 0x00.

But if ProCaster HDD is unmouned and USB is disconnected, the second try to plugin of the USB cable to Fedora does nothing. No mount prompt is presented in Gnome. In USB trace is shown, that respose to Get Max LUN function is now 0x7F.
This is probably the reason of the problem. udev does not create /dev/sdx1 (eg /dev/sdb1) device entry. The only way to get the USB connection to ProCaster to work again, is to shut down it, unplug the power cable of it and then restart. After that the first time of USB cable plugin it works again. After unmount and unplug, replugin does not work anymore.

The HDD in ProCaster is a single partition vfat formatted disk and uses Cypress Semiconductor interface.

Output of lsusb says:
Bus 002 Device 006: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI


Version-Release number of selected component (if applicable):
Kernel 3.6.8-2.fc17.x86_64, probably also earlier versions


How reproducible:
One should have a ProCaster PVR-6500... Not very usual device, probably sold mainly in Finland


Steps to Reproduce:
1.Cold start ProCaster
2.Plugin USB
3.Mount the disk
4. Transfer some files
5. unmount and unplug USB
6. plugin USB again
7. Now it is unable to mount, block device is not created
  
Actual results:
Mount stops working at step 6.


Expected results:
One should be able to mount the disc after replugin

Additional info:
The actual bug is probably in ProCaster SW.
Changing 04b4:6380 entry in unusual_cypress.h by adding US_FL_SINGLE_LUN seems to solve this problem, but could it generate problems with other devices?

Replacing present entry of 04b4:6380 with
UNUSUAL_DEV(  0x04b4, 0x6830, 0x0000, 0x9999,
                "Cypress",
                "Cypress AT2LP",
                USB_SC_SCSI, USB_PR_BULK, NULL,
                US_FL_SINGLE_LUN ),

or changing present entry to
UNUSUAL_DEV(  0x04b4, 0x6830, 0x0000, 0x9999,
                "Cypress",
                "Cypress AT2LP",
                USB_SC_CYP_ATACB, USB_PR_DEVICE, NULL, 0|US_FL_SINGLE_LUN),
both seem to solve the problem.



Some commented kernel and usb logs and lsusb as attachment.

Comment 1 Josh Boyer 2012-12-03 12:33:31 UTC
*** Bug 882914 has been marked as a duplicate of this bug. ***

Comment 2 Fedora End Of Life 2013-07-03 23:33:56 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2013-08-01 02:21:08 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.