RE: [PATCH v6] tty: serial: add Freescale lpuart driver support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>-----Original Message-----
>From: Fabio Estevam [mailto:festevam@xxxxxxxxx]
>Sent: Tuesday, June 04, 2013 11:09 AM
>To: Lu Jingchang-B35083
>Cc: linux-serial@xxxxxxxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx;
>s.hauer@xxxxxxxxxxxxxx; shawn.guo@xxxxxxxxxx; linux-arm-
>kernel@xxxxxxxxxxxxxxxxxxx
>Subject: Re: [PATCH v6] tty: serial: add Freescale lpuart driver support
>
>On Tue, Jun 4, 2013 at 12:08 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
>> On Tue, Jun 4, 2013 at 12:02 AM, Lu Jingchang-B35083
>> <B35083@xxxxxxxxxxxxx> wrote:
>>
>>> [Lu Jingchang-B35083]
>>>   SERIAL_FSL_LPUART_CONSOLE depends on SERIAL_FSL_LPUART=y in the patch
>as below, when SERIAL_FSL_LPUART is configured as module, it can't be
>configured as console. Thanks!
>>
>> Why to prevent using the console of the driver is built as module?
>
>I meant "if the driver is built as module"
[Lu Jingchang-B35083] 
  From your patch of " serial: imx: Allow module build", I think the code between #ifdef CONFIG_SERIAL_IMX_CONSOLE ... #else in imx.c won't be built because the configuration is CONFIG_SERIAL_IMX_CONSOLE_MODULE now. So it is the same as if disable CONFIG_SERIAL_IMX_CONSOLE when built the driver as a module, isn't it?
 On other hand, if enable CONFIG_SERIAL_X_CONSOLE option when the driver is configured as module, the build will fail with message like ERROR: "uart_console_device" [drivers/tty/serial/**.ko] undefined! Stephen Rothwel gives the solution once at url:
http://www.linuxhorizon.com/9-linux/42b33a65f64d95a2.htm
  I have checked drivers/tty/serial/Kconfig to make sure that other serial drivers indeed did this way. 
  Thanks!
��.n��������+%������w��{.n�����{��ǫ����{ay�ʇڙ���f���h������_�(�階�ݢj"��������G����?���&��





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux