Re: [PATCH 2.6.30 1/1] usb-storage: handle unusual dev Realtek Usb Card Reader (0x0bda:0x0152)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Wed, 1 Jul 2009, Giacomo Lozito wrote:
>> This patch adds support for a Realtek Usb Card Reader (0x0bda:0x0152),
>> treating it as unusual device. This card reader provides four slots to
>> handle different cards but only the first one (for compact flash) is
>> detected, while the others are not. This occurs due to the fact that the
>> device doesn't seem to provide correct information in GetMaxLUN and
>> us->max_lun is set to 0. The patch also provides a flag
>> (US_FL_SKIP_MAX_LUN) needed to skip GetMaxLUN and to allow us->max_lun to
>> be set in its init function. The flag can eventually be used for other
>> devices that require the same handling.
>
>You don't actually need the new flag.  Although it might be considered
>abuse, you can set the SINGLE_LUN flag for this device and then
>override the value in your initialization function.

Yes, I had thought about that. And it certainly works as long as SINGLE_LUN is 
checked (and max_lun is set to 0) -before- usb_stor_acquire_resources is 
called.
But then I thought it might be better to have a flag that is made to obtain 
that specific behaviour rather than to set the SINGLE_LUN flag with the above 
speculation just cause it currently works.
My two cents, of course :)

>> This device is provided by Realtek for the desktop pc HP Pavilion m9567
>> (and similar models, I suppose). The device is installed in the front bay
>> but it's actually a usb device (vid=0x0bda pid=0x0152).
>>
>> Looking around on the web, it seems that few linux users have run into
>> this device so far (there's no mention of it being supported or not,
>> except for a couple of cases about people with the same issue which stood
>> unresolved). So I decided to figure it out myself.
>
>Does this device work correctly under Windows?  If so, how?

It works correctly on Windows Vista.
The device is seen as a single usb component but it displays four separate 
disks on "my computer", even when no card is inserted in (just like a CD 
reader).

However, the eject function is supposed to be used to dismount a card once 
it's been inserted (the eject command works correctly on linux for this, too).

If, in place of eject, the usb component is dismounted with the "safely remove 
hardware" function, just like you would do with a usb pendrive, then the four 
disks will disappear and the only way to use them again will be to reboot the 
system. This is even stated on the HP support page:
http://h10025.www1.hp.com/ewfrf/wc/fastFaqLiteDocument?lc=en&cc=us&dlc=en&docname=bph07910


Giacomo Lozito
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux