RE: [PATCH] spi: spi-ep93xx: simplify GPIO chip selects

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

 



On Wednesday, February 15, 2017 12:02 PM, Mark Brown wrote:
> On Wed, Feb 15, 2017 at 09:44:22AM -0700, H Hartley Sweeten wrote:
>> This driver requires a GPIO line to be used for the chip select of
>> each SPI device.
>> 
>> Remove the ep93xx_spi_chip_ops definition from the platform data
>> and just pass the required GPIO line as the controller_data for
>> each spi_board_info entry. Then handle the gpio directly in the
>> driver.
>
> Why not also use the core GPIO handling?

Mark,

Unless I'm missing something, I don't think I can use the core GPIO
handling with the spi-ep93xx driver.

spi_set_cs() is only called to enable the chip select by the default
implementation of transfer_one_message() and the spi-ep93xx
driver does not use that.

Regards,
Hartley

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



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux