[PATCH 4/7] irda: Default to dongle type 9 on IBM hardware

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Garrett
Date: Sunday, July 20, 2008 - 2:08 pm

CC: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Ben Collins <ben.collins@canonical.com>
---
 drivers/net/irda/nsc-ircc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c
index effc1ce..1ecb013 100644
--- a/drivers/net/irda/nsc-ircc.c
+++ b/drivers/net/irda/nsc-ircc.c
@@ -151,8 +151,8 @@ static char *dongle_types[] = {
 static chipio_t pnp_info;
 static const struct pnp_device_id nsc_ircc_pnp_table[] = {
 	{ .id = "NSC6001", .driver_data = 0 },
-	{ .id = "IBM0071", .driver_data = 0 },
 	{ .id = "HWPC224", .driver_data = 0 },
+	{ .id = "IBM0071", .driver_data = 1 },
 	{ }
 };
 
@@ -934,6 +934,9 @@ static int nsc_ircc_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *i
 	 * On my box, cfg_base is in the PnP descriptor of the
 	 * motherboard. Oh well... Jean II */
 
+	if (id->driver_data == 1)
+		dongle_id = 0x9;
+
 	if (pnp_port_valid(dev, 0) &&
 		!(pnp_port_flags(dev, 0) & IORESOURCE_DISABLED))
 		pnp_info.fir_base = pnp_port_start(dev, 0);
-- 
1.5.4.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] Patches from Ubuntu kernel tree, Ben Collins, (Wed Jan 2, 8:57 am)
kill misleading comments in trampoline_*.S, Pavel Machek, (Thu Jan 31, 5:54 pm)
Re: kill misleading comments in trampoline_*.S, Yinghai Lu, (Thu Jan 31, 6:02 pm)
Re: kill misleading comments in trampoline_*.S, Pavel Machek, (Thu Jan 31, 6:05 pm)
Re: kill misleading comments in trampoline_*.S, Ingo Molnar, (Fri Feb 1, 4:16 am)
[PATCH 4/7] irda: Default to dongle type 9 on IBM hardware, Matthew Garrett, (Sun Jul 20, 2:08 pm)
[PATCH 7/7] HID: Add quirks for fourth generation MacBooks ..., Alexandre Karpenko, (Sun Jul 20, 2:44 pm)
Re: [PATCH 0/7] Patches from Ubuntu kernel tree, Greg KH, (Mon Jul 28, 8:35 pm)
Re: [PATCH 6/7] pm: Config option to disable handling of c ..., Rafael J. Wysocki, (Tue Jul 29, 2:15 pm)
Re: [PATCH 6/7] pm: Config option to disable handling of c ..., Rafael J. Wysocki, (Tue Jul 29, 3:18 pm)
Re: [PATCH 4/7] nsc-ircc: Default to dongle type 9 on IBM ..., Matthew Garrett, (Tue Jul 29, 10:11 pm)