Skip to contentSkip to conversation

+ drivers-parport-parport_pcc-fix-id-print-of-a-device.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Dec 4, 2013 Parallel port

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-parport-parport_pcc-fix-id-print-of-a-device.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 04 Dec 2013 14:24:32 -0800

The patch titled
Subject: drivers/parport/parport_pc.c: fix id print of a device
has been added to the -mm tree. Its filename is
drivers-parport-parport_pcc-fix-id-print-of-a-device.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-parport-parport_pcc-fix-id-print-of-a-device.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-parport-parport_pcc-fix-id-print-of-a-device.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Sebastian Andrzej Siewior <[email protected]>
Subject: drivers/parport/parport_pc.c: fix id print of a device

Since commit 7106b4e3 ("8250: Oxford Semiconductor Devices") the debug print of the device id does no longer match the real device if it is located in the "enum" behind oxsemi_pcie_pport. The reason is that the code assumes that each id contains one entry in the PCI table. The fix is to lookup the currently used id from the id-> parameter.

---

 drivers/parport/parport_pc.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/parport/parport_pc.c renamed from drivers/parport/parport_pc.c~drivers-parport-parport_pcc-fix-id-print-of-a-device +2 -6
diff -puN drivers/parport/parport_pc.c~drivers-parport-parport_pcc-fix-id-print-of-a-device drivers/parport/parport_pc.c
@@ -2827,16 +2827,12 @@ static int parport_pc_pci_probe(struct p
 		if (irq == IRQ_NONE) {
 			printk(KERN_DEBUG
 	"PCI parallel port detected: %04x:%04x, I/O at %#lx(%#lx)\n",
-				parport_pc_pci_tbl[i + last_sio].vendor,
-				parport_pc_pci_tbl[i + last_sio].device,
-				io_lo, io_hi);
+				id->vendor, id->device, io_lo, io_hi);
 			irq = PARPORT_IRQ_NONE;
 		} else {
 			printk(KERN_DEBUG
 	"PCI parallel port detected: %04x:%04x, I/O at %#lx(%#lx), IRQ %d\n",
-				parport_pc_pci_tbl[i + last_sio].vendor,
-				parport_pc_pci_tbl[i + last_sio].device,
-				io_lo, io_hi, irq);
+				id->vendor, id->device, io_lo, io_hi, irq);
 		}
 		data->ports[count] =
 			parport_pc_probe_port(io_lo, io_hi, irq,

_

Patches currently in -mm which might be from [email protected] are

drivers-parport-parport_pcc-fix-id-print-of-a-device.patch drivers-parport-parport_pcc-remove-double-pci-id-for-netmos.patch linux-next.patch