Re: [PATCH v3] serial: 8250: add gpio support to exar

Andy Shevchenko
2015-12-22T10:15:21Z

On Tue, Dec 22, 2015 at 12:08 PM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
> On Tue, Dec 22, 2015 at 11:58:17AM +0200, Andy Shevchenko wrote:

>> > The only downside is
>> > that the module gets loaded even if the device is not there.
>>
>> How is that?
>
> Alan explained that in https://lkml.org/lkml/2015/12/20/103
>
> Quoting from his mail "you reference the methods in it so it will
> always be dragged in".
>
> And I wanted to verify that so I tested today morning after removing the
> card from my local system and after booting I saw having 8250_gpi loaded.

Ah, it is in case "exar as a library".

In case "exar as a separate driver" other way around: it will drag
methods from 8250_pci if any.

--
With Best Regards,
Andy Shevchenko