Message ID | 5031D9FF.8060801@kmckk.co.jp (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Hi Kobayashi-san > After applying this patch on kzm9g board, I got this error regarding eMMC. > I think this is another problem. Hmm... How can I reproduce it ? It doesn't happen on my board. I'm using linus/master + paul/sh-latest + sh73a0-irq-fixup-patch # My kzm9g board is not mass-production board though -------- log ------------------------------------------------- (snip) rtc-rs5c372 0-0032: setting system clock to 2001-01-17 20:57:59 UTC (979765079) asoc-simple-card asoc-simple-card.0: ak4642-hifi <-> fsia-dai mapping ok smsc911x smsc911x.0: eth0: SMSC911x/921x identified at 0xdf9e8000, IRQ: 419 Sending DHCP requests .mmc0: SD Status: Invalid Allocation Unit size. mmc0: new SD card at address ee97 mmcblk0: mmc0:ee97 S128B 122 MiB mmcblk0: p1 p2 mmc1: new high speed SDHC card at address b368 mmcblk1: mmc1:b368 SD16G 14.4 GiB mmcblk1: p1 [sched_delayed] sched: RT throttling activated mmc2: new high speed MMC card at address 0001 mmcblk2: mmc2:0001 M4G1EM 3.72 GiB mmcblk2: unknown partition table ., OK IP-Config: Got DHCP answer from 192.168.10.77, my address is 192.168.10.118 IP-Config: Complete: device=eth0, addr=192.168.10.118, mask=255.255.255.0, gw=192.168.10.77 host=192.168.10.118, domain=example.org, nis-domain=(none) Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Moromoto-san In my case this problem occurs once per 2 or 3 times, not every time. I'm using v3.5rc2 + sh7a30-irq-fixup-patch. I tried 2 kzm9g boards. One of them is almost same as yours. (2012/08/21 11:31), Kuninori Morimoto wrote: > > Hi Kobayashi-san > >> After applying this patch on kzm9g board, I got this error regarding eMMC. >> I think this is another problem. > > Hmm... > How can I reproduce it ? > It doesn't happen on my board. > > I'm using > linus/master + paul/sh-latest + sh73a0-irq-fixup-patch > > # My kzm9g board is not mass-production board though > > > -------- log ------------------------------------------------- > (snip) > rtc-rs5c372 0-0032: setting system clock to 2001-01-17 20:57:59 UTC (979765079) > asoc-simple-card asoc-simple-card.0: ak4642-hifi <-> fsia-dai mapping ok > smsc911x smsc911x.0: eth0: SMSC911x/921x identified at 0xdf9e8000, IRQ: 419 > Sending DHCP requests .mmc0: SD Status: Invalid Allocation Unit size. > mmc0: new SD card at address ee97 > mmcblk0: mmc0:ee97 S128B 122 MiB > mmcblk0: p1 p2 > mmc1: new high speed SDHC card at address b368 > mmcblk1: mmc1:b368 SD16G 14.4 GiB > mmcblk1: p1 > [sched_delayed] sched: RT throttling activated > mmc2: new high speed MMC card at address 0001 > mmcblk2: mmc2:0001 M4G1EM 3.72 GiB > mmcblk2: unknown partition table > ., OK > IP-Config: Got DHCP answer from 192.168.10.77, my address is 192.168.10.118 > IP-Config: Complete: > device=eth0, addr=192.168.10.118, mask=255.255.255.0, gw=192.168.10.77 > host=192.168.10.118, domain=example.org, nis-domain=(none) > > > Best regards > --- > Kuninori Morimoto > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 5d81427..e587fbc 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1104,7 +1104,15 @@ static irqreturn_t sh_mmcif_irqt(int irq, void *dev_id) { struct sh_mmcif_host *host = dev_id; struct mmc_request *mrq = host->mrq; - struct mmc_data *data = mrq->data; + /*struct mmc_data *data = mrq->data; -- this cause null pointer access*/ + struct mmc_data *data; + + /* quick fix by koba */ + if (mrq == NULL) { + printk("sh_mmcif_irqt: mrq == NULL: host->wait_for=%d\n", host->wait_for); + } else { + data = mrq->data; + } cancel_delayed_work_sync(&host->timeout_work);