[PATCH 2/3] tty/serial: of_serial: add support for PXA/MMP uarts
robh at kernel.org
Wed Jan 28 06:21:09 PST 2015
On Tue, Jan 27, 2015 at 1:43 PM, Peter Hurley <peter at hurleysoftware.com> wrote:
> On 01/27/2015 11:44 AM, Rob Herring wrote:
>> On Tue, Jan 27, 2015 at 9:09 AM, Peter Hurley <peter at hurleysoftware.com> wrote:
>>> On 01/27/2015 09:30 AM, Rob Herring wrote:
>>>> On Tue, Jan 27, 2015 at 6:44 AM, Peter Hurley <peter at hurleysoftware.com> wrote:
>>>>> Hi Rob,
>>>>> On 01/26/2015 11:50 PM, Rob Herring wrote:
>>>>>> Add mrvl,pxa-uart and mrvl,mmp-uart compatible strings for the of_serial
>>>>>> driver. These are 8250 variants which have a port type of PORT_XSCALE.
>>>>>> There is also the serial driver pxa.c with these compatible strings
>>>>>> already. However, it can be replaced with the common 8250 driver. It has
>>>>>> some issues like it cannot coexist with the 8250 driver due to tty name
>>>>>> collision. That also means adding these compatible strings here should
>>>>>> not case a problem.
>>>>> So what determines which driver is controlling the port if both
>>>>> drivers are built-in?
>>>> If both are built-in, whoever registers ttyS ports first wins. This
>>>> will be the 8250 driver due to link order.
>>> Ok, but then I think the commit log should reflect that this patch
>>> effectively replaces pxa2xx-uart driver with the 8250 driver for PXA/MMP uarts
>>> if both drivers are built-in or both drivers are modules.
>> It doesn't always. It is only on DT enabled platforms. But I can be
>> more explicit about that.
>> There is another patch to remove the PXA driver entirely which I'm
>> inquiring about why it was never merged . This is why I went down
>> the path of getting the 8250 driver to work rather than trying to fix
>> the PXA driver.
> Ah. I had seen your inquiry but didn't grasp the significance.
> Greg acked that patch over 8 mos ago; it's still stuck somewhere?
It appears to me that this patch got added as a dependency to the rest
of the series which never got merged. Guess they lost interest.
> OTOH, I didn't realize that patch removed the PXA driver. That driver has
> errata workarounds which didn't get integrated into the 8250 core; it seems
> a shame to toss that away.
There was some discussion on errata in the prior versions. One of them
was deemed not needed. Another one is needed, but that's on certain
PXA2xx. So we'll need to pickup that work-around at some point, but it
is not yet needed here because PXA2xx is not enabled for DT.
> [ Sidebar: I did a trial split of 8250_core into a separate 8250 base module
> and an 8250 universal driver. I keep having to rework the split but it's
> pretty close now; the 8250 base module might be just the thing for simplifying
> the pxa driver and getting console/earlycon/dma for free.
> Let me see what I can do about getting that done.
Yes, it would be nice to split the legacy ISA parts from the proper
platform driver. There's way too many kconfig options for the 8250 as
BTW, It appears that the main motivator for a separate driver was to
add DMA support and that's what the out of tree driver adds. But now,
we would never add the PXA DMA API support and the 8250 driver has
learned DMA support.
More information about the linux-arm-kernel