[PATCH] Add spi-nor driver for Realtek RTL838x/RTL839x switch SoCs

Chuanhong Guo gch981213 at gmail.com
Sun Dec 20 03:51:50 EST 2020


Hi!

On Sun, Dec 20, 2020 at 7:01 AM Bert Vermeulen <bert at biot.com> wrote:
>
> On 12/16/20 9:30 AM, Tudor.Ambarus at microchip.com wrote:
> > On 12/15/20 11:46 PM, Bert Vermeulen wrote:
> >> This driver supports the spiflash core in all RTL838x/RTL839x SoCs,
> >> and likely some older models as well (RTL8196C).
> >>
> > Can we use SPIMEM and move this under drivers/spi/ instead?
>
> I wasn't aware spimem was the thing to use for new drivers. I will rewrite
> the driver to that API.

Are there any limitations preventing this from being implemented as a
generic SPI controller?
spi-nor and spi-mem are designed for controllers which can only perform
spi-mem/spi-nor specific transfers. I can't find such limitations from
your current driver code.

BTW I found a SPI controller driver for RTL8196C here: [0]
It seems pretty similar to the controller you are working on.

[0]: https://github.com/hackpascal/lede-rtl8196c/blob/realtek/target/linux/realtek/files/drivers/spi/spi-realtek.c

-- 
Regards,
Chuanhong Guo



More information about the linux-mtd mailing list