RE: SC16IS762 SPI interface Driver

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

 




----------------------------------------
> Date: Tue, 28 Apr 2015 12:12:49 +0200
> From: moorray3@xxxxx
> To: indrakanti_ram@xxxxxxxxxxx
> CC: linux-serial@xxxxxxxxxxxxxxx
> Subject: Re: SC16IS762 SPI interface Driver
>
> On Tue, 28 Apr 2015 14:42:42 +0530, ram kiran wrote:
>> Hi,
>
> Hi Ram, thanks for reposting :)
>
>> SC16IS762, has two interfaces i2c/spi, and I see that the current
>> driver preset in main line kernel 4.0, supports only i2c.
>> Is it available over SPI interface ?
>
> Current mainline driver is not available on SPI, but it uses generic
> regmap interface to access the registers so it shouldn't be hard to
> make it work with SPI (you would just have to write the .probe()
> routines).
>
yes, i did do have a KCONFIG in the same file, to split either for existing i2c and SPI.
 

>> I have a tested SPI interface based SC16IS762 chip driver.
>> Would like to know if I can contribute the code to main line kernel.
>
> I think you mean the sc16is7x2.c driver by Manuel Stahl and others.
> I'm pretty sure we don't want to have two drivers for the same device
> in mainline, especially that the current one uses that generic register
> API.
>
> However, both of those drivers have issues with locking (uart uses
> spinlocks but I2C/SPI transfers are asynchronous) it would be nice
> to somehow merge them together to get the best of both.

would you mean we can have the I2c and SPI co-exist,  to resolve on this ?

> --
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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