Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1297380

[RFC] spi: dw: support setting tmode dynamically

From Jisheng Zhang <jszhang@marvell.com>
Newsgroups linux.kernel
Subject [RFC] spi: dw: support setting tmode dynamically
Date 2015-12-23 12:30 +0100
Message-ID <qIPMe-vw-23@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi all,

Currently the spi-dw tmode is fixed to SPI_TMOD_TR if cs_control is NULL, but we
need to set it as SPI_TMOD_EPROMREAD to read nor flash, my solution is to add and
export one functions to set the tmode, then the nor flash driver call it
before reading and set back to SPI_TMOD_TR after done.

Is there any elegant solution from SPI framework? Any suggestions are appreciated!

Thanks,
Jisheng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RFC] spi: dw: support setting tmode dynamically Jisheng Zhang <jszhang@marvell.com> - 2015-12-23 12:30 +0100
  Re: [RFC] spi: dw: support setting tmode dynamically Mark Brown <broonie@kernel.org> - 2015-12-23 13:20 +0100
    Re: [RFC] spi: dw: support setting tmode dynamically Jisheng Zhang <jszhang@marvell.com> - 2015-12-23 13:40 +0100

csiph-web