Re: [PATCH] RS485 serial communication on ColdFire

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

 



Hi Greg,

The RS485 mode can be switched on/off from userspace by using the flag
SER_RS485_ENABLED, therefore I've removed those #ifdefs in the patch.

Regards

On Mon, Jan 14, 2013 at 1:33 PM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Jan 14, 2013 at 09:21:52AM +1000, Kevin Nguyen wrote:
>> Hi
>>
>> I've attached the patch that adds support RS485 communication in
>> ColdFire serial driver.
>>
>> As defined in Documentation/serial/serial-rs485.txt, switching between
>> read or write mode can be done by toggling RTS signal that is
>> supported by ColdFire chips.
>>
>> I actually wrote it more than a year ago (on Linux 3.2) but haven't
>> seen any similar patch for ColdFire microcontrollers so that I think
>> it would be useful for someone using this serial driver for RS485
>> communication. It is tested on my MCF5271 board.
>>
>> Your comments are appreciated.
>
> Is there any way to do this so that the option can be enabled at
> runtime, instead of build time?  Also, getting rid of a lot of the
> #ifdefs in the .c file would be great to accomplish.
>
> thanks,
>
> greg k-h



-- 
Quoc-Viet (Kevin) Nguyen

Attachment: 0001-mcf-Add-support-RS485-in-ColdFire-serial-driver.patch
Description: Binary data


[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