Re: [PATCH 1/2] [8250 Serial Driver]: Added support for 8250-classUARTs in HV Sistemas H8606 board

From: Javier Herrero
Date: Mon May 12 2008 - 13:38:32 EST


Hello, Alan,

Thans, I will redo the patch in the way you suggest, test it and resend.

Regards,

Javier

Alan Cox escribió:
+#ifdef SERIAL_EXTRA_IRQ_FLAGS
+ irq_flags |= SERIAL_EXTRA_IRQ_FLAGS;
+#endif
+


We try and keep ifdefs out of code. It is also not clear what you would
do if you had a box where the extra flags depended on the port.

So two suggestions

Either

Add just the line

+ irq_flags |= SERIAL_EXTRA_IRQ_FLAGS;

and at the end of 8250.h do

#ifndef SERIAL_EXTRA_IRQ_FLAGS
#define SERIAL_EXTRA_IRQ_FLAGS 0
#endif

or the same but with an argument (unused for now)

SERIAL_EXTRA_IRQ_FLAGS(up)

Alan



--
------------------------------------------------------------------------
Javier Herrero EMAIL: jherrero@xxxxxxxxxxxxxx
HV Sistemas S.L. PHONE: +34 949 336 806
Los Charcones, 17A FAX: +34 949 336 792
19170 El Casar - Guadalajara - Spain WEB: http://www.hvsistemas.com

--
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/