serial_cs: oxsemi quirk breaks resume

From: Pavel Machek
Date: Tue Nov 10 2009 - 02:55:09 EST



Quirk is applied on all cards with given manfid (is it that
correct?). Unfortunately, that quirk breaks resume on zaurus with
billionton bluetooth card inserted: c950ctrl is 0 and outb() faults.

Signed-off-by: Pavel Machek <pavel@xxxxxx>

--- a/drivers/serial/serial_cs.c 2009-10-06 13:51:46.000000000 +0200
+++ b/drivers/serial/serial_cs.c 2009-11-09 14:43:25.000000000 +0100
@@ -158,7 +158,8 @@
{
struct serial_info *info = link->priv;

- outb(12, info->c950ctrl + 1);
+ if (info->c950ctrl)
+ outb(12, info->c950ctrl + 1);
}

/* request_region? oxsemi branch does no request_region too... */


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/