[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinLjPyZuNnWs-XfdtQQ1wrnKRZ=4LitYwxnZaJ7@mail.gmail.com>
Date: Fri, 11 Mar 2011 21:57:23 +0900
From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@...esas.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: gregkh@...e.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] tty: serial: Fix build on architecture that does not
have ioport
Hi,
Thanks for your comment!
2011/3/11 Arnd Bergmann <arnd@...db.de>:
> On Friday 11 March 2011 06:54:56 Nobuhiro Iwamatsu wrote:
>> Some CPU's do not have ioport. Therefore, these do not have inX/outX.
>> Because they define CONFIG_NO_IOPORT, These CPU's use this and do not
>> use inX/outX.
>>
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@...esas.com>
>
> I like this patch, I had played with something similar before
> but never got it to the state where I was happy with submitting
> it. I'd really like to get us to the point where platforms without
> PCI support do don't need to define inb/outb and can still
> use all other drivers.
>
> There are two small improvements that I would like to suggest
> to this patch:
>
> * use #ifdef CONFIG_SERIAL_8250_HUB6 to configure out hub6 support.
> It's already disabled on most systems, so we can save a bit
> binary code without making the driver uglier.
>
OK.
> * Introduce a new CONFIG_SERIAL_8250_IOPORT symbol and make
> the normal io_serial_* code depend on that. It can be a silent
> Kconfig symbol that automatically gets selected in the appropriate
> cases. I find this clearer than the double negation in "not no ioport".
> The code that is used in both HUB6 and regular cases can be under
> this symbol.
>
Yes, you are right. I will send new patch.
Thanks!
Nobuhiro
--
Nobuhiro Iwamatsu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists