Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 212729 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.6.24/drivers/usb/storage/transport.c (-3 / +5 lines)
Lines 1010-1018 Link Here
1010
	US_DEBUGP("Bulk Status S 0x%x T 0x%x R %u Stat 0x%x\n",
1010
	US_DEBUGP("Bulk Status S 0x%x T 0x%x R %u Stat 0x%x\n",
1011
			le32_to_cpu(bcs->Signature), bcs->Tag, 
1011
			le32_to_cpu(bcs->Signature), bcs->Tag, 
1012
			residue, bcs->Status);
1012
			residue, bcs->Status);
1013
	if (bcs->Tag != us->tag || bcs->Status > US_BULK_STAT_PHASE) {
1013
	if (!(us->flags & US_FL_BULK_IGNORE_TAG)) {
1014
		US_DEBUGP("Bulk logical error\n");
1014
		if (bcs->Tag != us->tag || bcs->Status > US_BULK_STAT_PHASE) {
1015
		return USB_STOR_TRANSPORT_ERROR;
1015
			US_DEBUGP("Bulk logical error\n");
1016
			return USB_STOR_TRANSPORT_ERROR;
1017
		}
1016
	}
1018
	}
1017
1019
1018
	/* Some broken devices report odd signatures, so we do not check them
1020
	/* Some broken devices report odd signatures, so we do not check them
(-)linux-2.6.24/drivers/usb/storage/unusual_devs.h (+11 lines)
Lines 1-3 Link Here
1
1
/* Driver for USB Mass Storage compliant devices
2
/* Driver for USB Mass Storage compliant devices
2
 * Unusual Devices File
3
 * Unusual Devices File
3
 *
4
 *
Lines 1549-1554 Link Here
1549
		US_SC_DEVICE, US_PR_DEVICE, NULL,
1550
		US_SC_DEVICE, US_PR_DEVICE, NULL,
1550
		US_FL_FIX_CAPACITY),
1551
		US_FL_FIX_CAPACITY),
1551
1552
1553
/*
1554
 * Patch by Constantin Baranov <const@tltsu.ru>
1555
 * Reported by Andreas Koenecke
1556
 */
1557
UNUSUAL_DEV(  0x22b8, 0x6426, 0x0101, 0x0101,
1558
		"Motorola",
1559
		"MSnc.",
1560
		US_SC_DEVICE, US_PR_DEVICE, NULL,
1561
		US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG ),
1562
1552
/* Reported by Radovan Garabik <garabik@kassiopeia.juls.savba.sk> */
1563
/* Reported by Radovan Garabik <garabik@kassiopeia.juls.savba.sk> */
1553
UNUSUAL_DEV(  0x2735, 0x100b, 0x0000, 0x9999,
1564
UNUSUAL_DEV(  0x2735, 0x100b, 0x0000, 0x9999,
1554
		"MPIO",
1565
		"MPIO",
(-)linux-2.6.24/include/linux/usb_usual.h (+2 lines)
Lines 23-28 Link Here
23
 * proc_info() routine can automatically display a message for each flag.
23
 * proc_info() routine can automatically display a message for each flag.
24
 */
24
 */
25
#define US_DO_ALL_FLAGS						\
25
#define US_DO_ALL_FLAGS						\
26
	US_FLAG(BULK_IGNORE_TAG,0x80000000)			\
27
		/* Ignore tag mismatch in bulk operations */	\
26
	US_FLAG(SINGLE_LUN,	0x00000001)			\
28
	US_FLAG(SINGLE_LUN,	0x00000001)			\
27
		/* allow access to only LUN 0 */		\
29
		/* allow access to only LUN 0 */		\
28
	US_FLAG(NEED_OVERRIDE,	0x00000002)			\
30
	US_FLAG(NEED_OVERRIDE,	0x00000002)			\

Return to bug 212729