Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410134
| From | Michal Suchanek <hramrach@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/5] RFC spi: sun4i: add DMA support |
| Date | 2016-05-31 12:50 +0200 |
| Message-ID | <rEPpg-1AT-17@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <rEtyq-3wi-19@gated-at.bofh.it> <rEukN-44d-1@gated-at.bofh.it> <rEwZk-5PN-41@gated-at.bofh.it> <rExiF-5ZF-7@gated-at.bofh.it> <rExLI-6b9-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 30 May 2016 at 17:50, Mark Brown <broonie@kernel.org> wrote: > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal Suchanek wrote: >> On 30 May 2016 at 17:03, Mark Brown <broonie@kernel.org> wrote: > >> > I really don't think it's worth caring too much about cases where the >> > DMA driver hasn't been compiled in, it's not like SPI is the only thing > >> It's what the driver did to start with and it was requested to fall >> back to non-DMA in the case DMA is not available. > > Why? I really can't see any sensible use case for this that doesn't > have a better solution available. Of course, the solution is to compile in the DMA driver. It's been argued that some drivers which use only short transfers will just work. > >> It's possible to add a parameter like require_dma which could be used >> to load the driver without dma if unset. If it was set by default then >> driver ordering is not important so long as dma driver is loaded >> eventually. Also an informative print that such parameter exists when >> probing the driver is deferred would be helpful. It would probably >> create quite a bit of log spam, however. The driver can be deferred >> several times during boot. > > That seems fairly hacky, if we were going to do anything like that it > should be the other way around so that we default to trying to use > resources and even then it seems like something that should be handled > at a framework level rather than having random options in individual > drivers to ignore things. Having things behave inconsistently between > different drivers is going to lead to a worse user experience and if > this is a good idea for one driver it seems like it'd be a good idea for > all of them. Hacky but doable if desirable. It's awesome for testing SPI transfer fragmentation with different drivers ;-) The previous discussion of this driver is here http://thread.gmane.org/gmane.linux.kernel/2162327 Thanks Michal
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-05-30 13:30 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-30 14:20 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-05-30 17:10 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Michal Suchanek <hramrach@gmail.com> - 2016-05-30 17:30 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-05-30 18:00 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Michal Suchanek <hramrach@gmail.com> - 2016-05-31 12:50 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-05-31 15:30 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Michal Suchanek <hramrach@gmail.com> - 2016-05-31 16:30 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-02 10:20 +0200
Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-01 20:10 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Priit Laes <plaes@plaes.org> - 2016-06-02 06:50 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-06-02 11:20 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Michal Suchanek <hramrach@gmail.com> - 2016-06-02 14:20 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-06-02 16:30 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Michal Suchanek <hramrach@gmail.com> - 2016-06-05 13:30 +0200
Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support Mark Brown <broonie@kernel.org> - 2016-06-06 13:40 +0200
csiph-web