* SD cards stopped working on my machine
@ 2008-08-07 15:10 Romano Giannetti
2008-08-07 15:31 ` [Bug 11267] " Hugh Dickins
2008-08-08 9:39 ` Romano Giannetti
0 siblings, 2 replies; 3+ messages in thread
From: Romano Giannetti @ 2008-08-07 15:10 UTC (permalink / raw)
To: linux-kernel, drzeus-mmc, Rafael J. Wysocki
Hi,
I just posted a regression bug on bugzilla:
http://bugzilla.kernel.org/show_bug.cgi?id=11267
the new kernel stopped to notice the fact that I introduce an SD card into the
slot of the machine. It used to work perfectly in 2.6.26 (came back and tested,
so it's not hardware).
In 2.6.26 I had on the dmesg:
[ 131.145237] mmc0: new high speed SD card at address b368
[ 131.145295] PM: Adding info for mmc:mmc0:b368
[ 131.176370] mmcblk0: mmc0:b368 SD 2009600KiB (ro)
[ 131.176370] PM: Adding info for No Bus:mmcblk0
[ 131.176370] mmcblk0: p1
[ 131.176434] PM: Adding info for No Bus:mmcblk0p1
[ 131.176434] PM: Adding info for No Bus:179:0
In 2.6.27-rc2 nothing happens. I have not a lot of time in my hands, so if it's
possible at all I'd like to avoid a bisect (It's more than one hour per compile
here...)
Thanks,
Romano
PD this time at least it didn't eat my photos :-)))))
--
Sorry for the disclaimer --- ¡I cannot stop it!
--
La presente comunicación tiene carácter confidencial y es para el exclusivo uso del destinatario indicado en la misma. Si Ud. no es el destinatario indicado, le informamos que cualquier forma de distribución, reproducción o uso de esta comunicación y/o de la información contenida en la misma están estrictamente prohibidos por la ley. Si Ud. ha recibido esta comunicación por error, por favor, notifíquelo inmediatamente al remitente contestando a este mensaje y proceda a continuación a destruirlo. Gracias por su colaboración.
This communication contains confidential information. It is for the exclusive use of the intended addressee. If you are not the intended addressee, please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited by law. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this message. Thank you for your cooperation.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bug 11267] SD cards stopped working on my machine
2008-08-07 15:10 SD cards stopped working on my machine Romano Giannetti
@ 2008-08-07 15:31 ` Hugh Dickins
2008-08-08 9:39 ` Romano Giannetti
1 sibling, 0 replies; 3+ messages in thread
From: Hugh Dickins @ 2008-08-07 15:31 UTC (permalink / raw)
To: Romano Giannetti
Cc: linux-kernel, bugme-daemon, drzeus-mmc, Rafael J. Wysocki
On Thu, 7 Aug 2008, Romano Giannetti wrote:
> I just posted a regression bug on bugzilla:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=11267
>
> the new kernel stopped to notice the fact that I introduce an SD card into the
> slot of the machine. It used to work perfectly in 2.6.26 (came back and
> tested, so it's not hardware).
>
> In 2.6.26 I had on the dmesg:
>
> [ 131.145237] mmc0: new high speed SD card at address b368
> [ 131.145295] PM: Adding info for mmc:mmc0:b368
> [ 131.176370] mmcblk0: mmc0:b368 SD 2009600KiB (ro)
> [ 131.176370] PM: Adding info for No Bus:mmcblk0
> [ 131.176370] mmcblk0: p1
> [ 131.176434] PM: Adding info for No Bus:mmcblk0p1
> [ 131.176434] PM: Adding info for No Bus:179:0
>
> In 2.6.27-rc2 nothing happens. I have not a lot of time in my hands, so if
> it's possible at all I'd like to avoid a bisect (It's more than one hour per
> compile here...)
Please try yesterday's patch from the scsi-rc-fixes tree,
commit d211f052fa58a053639bc51501cb64421157d362
which fixed SD cards over USB storage for me:
[SCSI] sd: fix USB devices incorrectly reporting DIF support
Some USB devices set the protect bit in the INQUIRY data which
currently causes the DIF code in sd to assume (incorrectly) that they
support READ_CAPACITY(16). Fix this (only for the time being) by
making sure we only believe the protect bit in the inquiry data if the
device claims conformance to SCSI-3 or above.
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 291d56a..80b2e93 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -6,6 +6,7 @@
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/blkdev.h>
+#include <scsi/scsi.h>
#include <asm/atomic.h>
struct request_queue;
@@ -426,7 +427,7 @@ static inline int scsi_device_enclosure(struct scsi_device *sdev)
static inline int scsi_device_protection(struct scsi_device *sdev)
{
- return sdev->inquiry[5] & (1<<0);
+ return sdev->scsi_level > SCSI_2 && sdev->inquiry[5] & (1<<0);
}
#define MODULE_ALIAS_SCSI_DEVICE(type) \
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: SD cards stopped working on my machine
2008-08-07 15:10 SD cards stopped working on my machine Romano Giannetti
2008-08-07 15:31 ` [Bug 11267] " Hugh Dickins
@ 2008-08-08 9:39 ` Romano Giannetti
1 sibling, 0 replies; 3+ messages in thread
From: Romano Giannetti @ 2008-08-08 9:39 UTC (permalink / raw)
To: linux-kernel, drzeus-mmc, Rafael J. Wysocki
Romano Giannetti wrote:
>
>
> the new kernel stopped to notice the fact that I introduce an SD card
> into the slot of the machine. It used to work perfectly in 2.6.26 (came
> back and tested, so it's not hardware).
>
Solved by setting to Y CONFIG_MMC_SDHCI_PCI which was set to N by make oldconfig.
Romano
--
Sorry for the disclaimer --- ¡I cannot stop it!
--
La presente comunicación tiene carácter confidencial y es para el exclusivo uso del destinatario indicado en la misma. Si Ud. no es el destinatario indicado, le informamos que cualquier forma de distribución, reproducción o uso de esta comunicación y/o de la información contenida en la misma están estrictamente prohibidos por la ley. Si Ud. ha recibido esta comunicación por error, por favor, notifíquelo inmediatamente al remitente contestando a este mensaje y proceda a continuación a destruirlo. Gracias por su colaboración.
This communication contains confidential information. It is for the exclusive use of the intended addressee. If you are not the intended addressee, please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited by law. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this message. Thank you for your cooperation.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-08 9:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 15:10 SD cards stopped working on my machine Romano Giannetti
2008-08-07 15:31 ` [Bug 11267] " Hugh Dickins
2008-08-08 9:39 ` Romano Giannetti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox