[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CABE8wwszp3MoVxCdUfjUtvMkugL7VzOYTSxFQwqwQ7U9Wr0kbA@mail.gmail.com>
Date: Mon, 9 Apr 2012 12:15:50 -0700
From: "Williams, Dan J" <dan.j.williams@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: gregkh@...uxfoundation.org, Stephen Warren <swarren@...dia.com>,
linux-kernel@...r.kernel.org,
Grant Likely <grant.likely@...retlab.ca>,
linux-serial@...r.kernel.org, Colin Cross <ccross@...roid.com>,
Olof Johansson <olof@...om.net>, alan@...ux.intel.com
Subject: Re: [PATCH v2 1/4] of_serial: add support for setup quirks
On Mon, Apr 9, 2012 at 11:49 AM, Arnd Bergmann <arnd@...db.de> wrote:
> On Monday 09 April 2012, Dan Williams wrote:
>> Benign conversion of of_serial.c to offer the option of 'setup' quirks
>> similar to how 8250_pci.c houses the pci-serial-device quirks.
>>
>> A setup quirk allows custom uart_port ops to specified in the
>> of_serial_info data fed to each serial of_device_id.
>>
>> Tegra's 'break' quirk is the target consumer.
>>
>> Cc: Colin Cross <ccross@...roid.com>
>> Cc: Olof Johansson <olof@...om.net>
>> Cc: Stephen Warren <swarren@...dia.com>
>> Cc: Arnd Bergmann <arnd@...db.de>
>> Cc: Grant Likely <grant.likely@...retlab.ca>
>> Signed-off-by: Dan Williams <dan.j.williams@...el.com>
>> ---
>> drivers/tty/serial/of_serial.c | 68 ++++++++++++++++++++++++++++------------
>> 1 files changed, 47 insertions(+), 21 deletions(-)
>
> I don't think this is a good idea. Aside from the bug that you introduce
> (you can no longer have multiple ports of the same type because of overwrite
> the static info->line number),
ah, yes, good catch.
> it seems an unnecessary complication.
> Either just add the quirk to the of_serial file based on the compatible value,
> or do a trivial new driver that has a subset of the existing one you need,
> plus the quirk.
ok.
The open question was where to house tegra_serial_handle_break, I'd
just as soon keep it all in of_serial.c and maintain the temporary
exports for use in the to-be-removed board files in
arch/arm/mach-tegra.
--
Dan
--
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