Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212729 - Linux kernel patch for Motorola ROKR Z6 support in USB mass storage mode
Summary: Linux kernel patch for Motorola ROKR Z6 support in USB mass storage mode
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Keywords: InVCS
Depends on:
Reported: 2008-03-08 17:03 UTC by Constantin Baranov
Modified: 2008-03-30 09:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

The kernel patch itself (msnc_z6.patch,2.27 KB, patch)
2008-03-08 17:04 UTC, Constantin Baranov
Details | Diff
Updated patch (2.6.25-rc4-motorokr_z6.patch,2.23 KB, patch)
2008-03-11 21:17 UTC, Constantin Baranov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Constantin Baranov 2008-03-08 17:03:24 UTC
MOTOROKR Z6 cell phone has several bugs somewhere in its USB stack (thanks to Motorola engineers!). See discussion at and workaround instructions at

This patch introduces one more type of bug (tag mismatch) in linux/usb_usual.h with corresponding modification of drivers/usb/storage/transport.c. Also it adds record for MOTOROKR Z6 into unusual_devs.h.

Reproducible: Always

Steps to Reproduce:
1. Set phone's USB into "Memory Card" mode.
2. Connect phone to computer.
Actual Results:  
Without patch: USB device is recognized but SCSI emulation is not enabled.
With patch: SCSI disk is emulated and works good for phone's microSD card only.

Expected Results:  
Two SCSI disks for microSD card and built-in memory shall be emulated without any kernel modifications.
Comment 1 Constantin Baranov 2008-03-08 17:04:09 UTC
Created attachment 145571 [details, diff]
The kernel patch itself
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-08 17:30:52 UTC
Please, review the following:
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2008-03-11 17:11:56 UTC
patch isn't upstream yet, haven't had time to read the whole discussion
Comment 4 Constantin Baranov 2008-03-11 21:17:48 UTC
Created attachment 145870 [details, diff]
Updated patch

Accepted in -mm tree.

Patch may be applied to 2.6.24. But it's incompatible with 2.6.23 from point of view of patch utility; slight modification is needed.

> With patch: SCSI disk is emulated and works good for phone's microSD card only.
This was my mistake. Both microSD card and internal memory are successfully accessed with the patch.
Comment 5 Vladimir Loose 2008-03-12 06:35:00 UTC
I applied this new patch (2.6.25-rc4-motorokr_z6.patch) to linux-2.6.24 and
tested it with my Z6 phone.

Two disks were detected: /dev/sdb and /dev/sdc (sda was already busy by my sata
hard disk) which are:
/dev/sdb - removable memory card
/dev/sdc - internal phone memory

Both disks works fine with great read/write speed. Thanks for patch!
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-03-16 20:06:43 UTC
patch was linebroken, sent a fixed version upstream and queued for next release
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2008-03-30 09:20:28 UTC
Fixed in gentoo-sources-2.6.24-r4 (genpatches-2.6.24-5)