* [PATCH] pata_sis: Fix oops on boot
@ 2007-04-19 10:09 Alan Cox
2007-04-19 23:22 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2007-04-19 10:09 UTC (permalink / raw)
To: jgarzik, linux-ide, akpm
A small number of SiS setups require special handling (not many judging
by how long this dumb bug survived). A couple of Fedora 7 devel testers
hit an Oops on pata_sis loading which is caused by terminal confusion
between chipset as 'the chipset we have found' and chipset as 'array
iterator'
Signed-off-by: Alan Cox <alan@redhat.com>
--- linux.vanilla-2.6.21-rc6-mm1/drivers/ata/pata_sis.c 2007-04-12 14:15:03.000000000 +0100
+++ linux-2.6.21-rc6-mm1/drivers/ata/pata_sis.c 2007-04-19 10:42:36.966672184 +0100
@@ -831,6 +831,7 @@
struct ata_port_info *port;
struct pci_dev *host = NULL;
struct sis_chipset *chipset = NULL;
+ struct sis_chipset *sets;
static struct sis_chipset sis_chipsets[] = {
@@ -885,10 +886,11 @@
/* We have to find the bridge first */
- for (chipset = &sis_chipsets[0]; chipset->device; chipset++) {
- host = pci_get_device(PCI_VENDOR_ID_SI, chipset->device, NULL);
+ for (sets = &sis_chipsets[0]; sets->device; sets++) {
+ host = pci_get_device(PCI_VENDOR_ID_SI, sets->device, NULL);
if (host != NULL) {
- if (chipset->device == 0x630) { /* SIS630 */
+ chipset = sets; /* Match found */
+ if (sets->device == 0x630) { /* SIS630 */
u8 host_rev;
pci_read_config_byte(host, PCI_REVISION_ID, &host_rev);
if (host_rev >= 0x30) /* 630 ET */
@@ -899,7 +901,7 @@
}
/* Look for concealed bridges */
- if (host == NULL) {
+ if (chipset == NULL) {
/* Second check */
u32 idemisc;
u16 trueid;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pata_sis: Fix oops on boot
2007-04-19 10:09 [PATCH] pata_sis: Fix oops on boot Alan Cox
@ 2007-04-19 23:22 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-04-19 23:22 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-ide, akpm
Alan Cox wrote:
> A small number of SiS setups require special handling (not many judging
> by how long this dumb bug survived). A couple of Fedora 7 devel testers
> hit an Oops on pata_sis loading which is caused by terminal confusion
> between chipset as 'the chipset we have found' and chipset as 'array
> iterator'
>
> Signed-off-by: Alan Cox <alan@redhat.com>
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-19 23:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 10:09 [PATCH] pata_sis: Fix oops on boot Alan Cox
2007-04-19 23:22 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).