[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121219130151.F29CA3E0AD7@localhost>
Date: Wed, 19 Dec 2012 13:01:51 +0000
From: Grant Likely <grant.likely@...retlab.ca>
To: Stephen Warren <swarren@...dotorg.org>
Cc: Laxman Dewangan <ldewangan@...dia.com>, alan@...ux.intel.com,
gregkh@...uxfoundation.org, jslaby@...e.cz,
rob.herring@...xeda.com, devicetree-discuss@...ts.ozlabs.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org, linux-tegra@...r.kernel.org
Subject: Re: [PATCH] serial: tegra: add serial driver
On Mon, 17 Dec 2012 14:31:34 -0700, Stephen Warren <swarren@...dotorg.org> wrote:
> On 12/17/2012 10:10 AM, Grant Likely wrote:
> > On Mon, 17 Dec 2012 17:40:49 +0530, Laxman Dewangan <ldewangan@...dia.com> wrote:
> >> Nvidia's Tegra has multiple uart controller which supports:
> >> - APB dma based controller fifo read/write.
> >> - End Of Data interrupt in incoming data to know whether end
> >> of frame achieve or not.
> >> - Hw controlled RTS and CTS flow control to reduce SW overhead.
>
> >> +static int __devinit tegra_uart_probe(struct platform_device *pdev)
> >> +{
> >> + struct tegra_uart_port *tup;
> >> + struct uart_port *u;
> >> + struct tegra_uart_platform_data *pdata = pdev->dev.platform_data;
> >
> > Since this is a new driver, and all new board support will use device
> > tree, when would this platform_data pointer get set? Can you drop the
> > platform_data support code entirely?
>
> Aren't we still supposed to support platform data so that it can
> override what's in DT in order to fix up bad DTs? Or, has that
> requirement been dropped. If it has, we can drop a bunch of code from a
> variety of Tegra-specific drivers, I expect.
Do you have an actual user for this? If not, then don't borrow trouble.
Just drop it. Things like platform_data can always be added later only
if it is needed.
g.
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.
--
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