Re: [PATCH 3/3] spi: psdev: add passive serial driver
Alexander Shiyan
shc_work at mail.ru
Wed Mar 12 13:54:48 EDT 2014
Среда, 12 марта 2014, 16:53 +01:00 от Michael Grzeschik <m.grzeschik at pengutronix.de>:
> This patch introduces the psdev driver. It is used to communicate to an
> Altera passive serial connected FPGA by writing into an character
> device.
>
> It simply initates the protocol on open and clocks the data into the
> FPGA by using the underlying SPI bus on write. The used SPI bus can also
> be an bitbang SPI bus. On close it will check for the response of the
> FPGA and tells if the write process was successful.
As a suggestion, I want to advise you to use GPIO functions based on
descriptors (xx_gpiod_xx()) for the new drivers.
This will simplify code a bit, allows you to use the driver for non-DT boards
without creating any new global headers for platform_data and eliminate
the possible confusion with active levels for these GPIOs in the future.
---
More information about the linux-arm-kernel
mailing list