Re: [PATCH 1/3] spi: add xtfpga SPI controller driver

From: Mark Brown
Date: Tue Mar 11 2014 - 21:11:32 EST


On Wed, Mar 12, 2014 at 04:59:47AM +0400, Max Filippov wrote:

> And tlv320aic23 has the following regmap:

> const struct regmap_config tlv320aic23_regmap = {
> .reg_bits = 7,
> .val_bits = 9,

> and its SPI interface accordingly does the following in .probe:

> spi->bits_per_word = 16
> spi->mode = SPI_MODE_0;
> ret = spi_setup(spi);

So I just looked again - the SPI code isn't in mainline, there must
be some out of tree patches here that can't have been tested since the
driver was converted to regmap (or the byte swapping you're doing in the
controller is buggy for 16 bits per word).

Attachment: signature.asc
Description: Digital signature