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

From: Andy Shevchenko
Date: Tue Dec 22 2015 - 05:15:25 EST


On Tue, Dec 22, 2015 at 12:08 PM, Sudip Mukherjee
<sudipm.mukherjee@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/