Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 147000 Details for
Bug 211369
gentoo-sources-2.6.24-r2: SiS Pata: failed to IDENTIFY [...] retrying in 5 secs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch I described in comment 5, but sharped it up with the ";"
phantom-workaround.patch (text/plain), 1.60 KB, created by
Jan Buecken
on 2008-03-23 12:33:50 UTC
(
hide
)
Description:
the patch I described in comment 5, but sharped it up with the ";"
Filename:
MIME Type:
Creator:
Jan Buecken
Created:
2008-03-23 12:33:50 UTC
Size:
1.60 KB
patch
obsolete
>diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c >index 4bbe31f..417562b 100644 >--- a/drivers/ata/libata-core.c >+++ b/drivers/ata/libata-core.c >@@ -2092,24 +2092,34 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, > id, sizeof(id[0]) * ATA_ID_WORDS, 0); > if (err_mask) { > if (err_mask & AC_ERR_NODEV_HINT) { >- DPRINTK("ata%u.%d: NODEV after polling detection\n", >- ap->print_id, dev->devno); >+ ata_dev_printk(dev, KERN_DEBUG, >+ "NODEV after polling detection\n"); > return -ENOENT; > } > >- /* Device or controller might have reported the wrong >- * device class. Give a shot at the other IDENTIFY if >- * the current one is aborted by the device. >- */ >- if (may_fallback && >- (err_mask == AC_ERR_DEV) && (tf.feature & ATA_ABORTED)) { >- may_fallback = 0; >+ if ((err_mask == AC_ERR_DEV) && (tf.feature & ATA_ABORTED)) { >+ /* Device or controller might have reported >+ * the wrong device class. Give a shot at the >+ * other IDENTIFY if the current one is >+ * aborted by the device. >+ */ >+ if (may_fallback) { >+ may_fallback = 0; > >- if (class == ATA_DEV_ATA) >- class = ATA_DEV_ATAPI; >- else >- class = ATA_DEV_ATA; >- goto retry; >+ if (class == ATA_DEV_ATA) >+ class = ATA_DEV_ATAPI; >+ else >+ class = ATA_DEV_ATA; >+ goto retry; >+ } >+ >+ /* Control reaches iff the device aborted both >+ * flavors of IDENTIFYs which sometimes >+ * happens with phantom devices. >+ */ >+ ata_dev_printk(dev, KERN_DEBUG, >+ "both IDENTIFYs aborted, assuming NODEV\n"); >+ return -ENOENT; > } > > rc = -EIO;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211369
: 147000