Re: [PATCH] Don't let usb-storage steal Blackberry Pearl

Phil Dibowitz <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Jeremy Katz wrote:
> The Blackberry Pearl can run in two modes; a usb-storage only mode
> and a mode that allows access via mass storage and to its database.
> The berry_charge module will set the device to dual mode and thus we
> should ignore its native mode if that module is built

Looks good.

> Signed-off-by: Jeremy Katz <[email protected]>
Signed-off-by: Phil Dibowitz <[email protected]>

> ---
>  drivers/usb/storage/unusual_devs.h |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
> index 54979c2..7db3f16 100644
> --- a/drivers/usb/storage/unusual_devs.h
> +++ b/drivers/usb/storage/unusual_devs.h
> @@ -1350,6 +1350,20 @@ UNUSUAL_DEV(  0x0f19, 0x0105, 0x0100, 0x0100,
>  		US_SC_DEVICE, US_PR_DEVICE, NULL,
>  		US_FL_IGNORE_RESIDUE ),
>  
> +/* Jeremy Katz <[email protected]>:
> + * The Blackberry Pearl can run in two modes; a usb-storage only mode
> + * and a mode that allows access via mass storage and to its database.
> + * The berry_charge module will set the device to dual mode and thus we
> + * should ignore its native mode if that module is built
> + */
> +#ifdef CONFIG_USB_BERRY_CHARGE
> +UNUSUAL_DEV(  0x0fca, 0x0006, 0x0001, 0x0001,
> +		"RIM",
> +		"Blackberry Pearl",
> +		US_SC_DEVICE, US_PR_DEVICE, NULL,
> +		US_FL_IGNORE_DEVICE ),
> +#endif
> +
>  /* Reported by Michael Stattmann <[email protected]> */
>  UNUSUAL_DEV(  0x0fce, 0xd008, 0x0000, 0x0000,
>  		"Sony Ericsson",


-- 
Phil Dibowitz                             [email protected]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGn4wjN5XoxaHnMrsRAgkcAJ0a+bu6UQ0ZuWoa2bAzPPtsXY40jACgpVys
vmB394da5qQcoinV7UJTT34=
=aHdg
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.