Message ID | 20181012084825.23697-1-boris.brezillon@bootlin.com (mailing list archive) |
---|---|
Headers | show |
Series | mtd: spi-nor: Proposal for 8-8-8 mode support | expand |
On Fri, Oct 12, 2018 at 10:48:07AM +0200, Boris Brezillon wrote: > First question that might come to mind is why should we support such > stateful modes? If you think about it, the gain of transmitting the > opcode on 8 IO lines is rather small compared to the pain it is to > teach the SPI NOR framework how to deal with that. The problem is, > some SPI NOR manufacturers (Macronix for instance) only implement 1-1-1 > and 8-8-8 (or 8D-8D-8D), and they want to be able to use their NORs in > 8-8-8 mode when the controller supports it. The SPI framework changes definitely look OK to me, if everyone agrees that this is a good way to go from a MTD point of view I'm happy to apply them. I have no strong opinion on the MTD bits of the series.
Hi Mark, On Fri, 19 Oct 2018 13:25:27 +0100 Mark Brown <broonie@kernel.org> wrote: > On Fri, Oct 12, 2018 at 10:48:07AM +0200, Boris Brezillon wrote: > > > First question that might come to mind is why should we support such > > stateful modes? If you think about it, the gain of transmitting the > > opcode on 8 IO lines is rather small compared to the pain it is to > > teach the SPI NOR framework how to deal with that. The problem is, > > some SPI NOR manufacturers (Macronix for instance) only implement 1-1-1 > > and 8-8-8 (or 8D-8D-8D), and they want to be able to use their NORs in > > 8-8-8 mode when the controller supports it. > > The SPI framework changes definitely look OK to me, if everyone agrees > that this is a good way to go from a MTD point of view I'm happy to > apply them. I have no strong opinion on the MTD bits of the series. Actually, Yogesh posted similar patches before me, so maybe you can look at this series [1]. The spi/spi-mem side of things is rather uncontroversial. Feel free to apply them if you think they're good enough to go in. Thanks for your review. Boris [1]http://patchwork.ozlabs.org/project/linux-mtd/list/?series=70822
On Fri, Oct 19, 2018 at 02:59:20PM +0200, Boris Brezillon wrote: > Mark Brown <broonie@kernel.org> wrote: > > The SPI framework changes definitely look OK to me, if everyone agrees > > that this is a good way to go from a MTD point of view I'm happy to > > apply them. I have no strong opinion on the MTD bits of the series. > Actually, Yogesh posted similar patches before me, so maybe you can > look at this series [1]. The spi/spi-mem side of things is rather > uncontroversial. Feel free to apply them if you think they're good > enough to go in. Ugh, unfortunately he didn't send me them so I'll have to try to find them on the list and it looks like there's been no review from any of the other MTD people. It'd be good to get some consensus, yours seems a bit more complete so my inclination would be to go that way.
On Sun, 21 Oct 2018 14:36:00 +0100 Mark Brown <broonie@kernel.org> wrote: > On Fri, Oct 19, 2018 at 02:59:20PM +0200, Boris Brezillon wrote: > > Mark Brown <broonie@kernel.org> wrote: > > > > The SPI framework changes definitely look OK to me, if everyone agrees > > > that this is a good way to go from a MTD point of view I'm happy to > > > apply them. I have no strong opinion on the MTD bits of the series. > > > Actually, Yogesh posted similar patches before me, so maybe you can > > look at this series [1]. The spi/spi-mem side of things is rather > > uncontroversial. Feel free to apply them if you think they're good > > enough to go in. > > Ugh, unfortunately he didn't send me them so I'll have to try to find > them on the list and it looks like there's been no review from any of > the other MTD people. It'd be good to get some consensus, yours seems a > bit more complete so my inclination would be to go that way. Indeed, looks like Yogesh version is not patching spi_setup() to support octal mode. Anyway, it seems unfair to push for my own version while I was clearly aware of Yogesh's patchset before posting my RFC (the only reason I did not use his patches is laziness on my side: I had my own working version, and the RFC was not really about these spi/spi-mem aspects, more the spi-nor side of things :-)). So, if you don't mind, I'll ask him to send a new version addressing this problem (which should make our patches almost identical, except for the naming: OCTAL vs OCTO), and I'll put my R-b.
On Mon, Oct 22, 2018 at 10:21:26AM +0200, Boris Brezillon wrote: > So, if you don't mind, I'll ask him to send a new version addressing > this problem (which should make our patches almost identical, except for > the naming: OCTAL vs OCTO), and I'll put my R-b. That sounds great, I'll apply them on a branch and give you a pull request after the merge window.