Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
devm_ioremap_resource() provides its own error messages so all explicit
error messages can be removed from the failure code paths.
Signed-off-by: Thierry
* David Brownell wrote:
> On Tuesday 28 April 2009, Florian Fainelli wrote:
> > > > Is this the http://www.opencores.org/?do=project&who=spi core?
> > >
> > > Yes, it is.
> > >
> > > > Its summary says "Variable length of transfer word up to 32 bits";
> > > > does that mean "configurable when core
* David Brownell wrote:
> On Tuesday 28 April 2009, Thierry Reding wrote:
> > > > I couldn't really find a way to implement per-transfer overrides for the
> > > > word size because the controller simply has no concept of word sizes.
> > > > Is it
>
* David Brownell wrote:
> On Tuesday 28 April 2009, Thierry Reding wrote:
> > This second version is pretty much a rewrite.
>
> That happens sometimes...
>
>
> > Some notes about the most
> > important changes:
> >
> > * uses per-chip stat
* Thierry Reding wrote:
> This patch adds a platform device driver that supports the OpenCores SPI
> controller.
>
> The driver expects two resources: an IORESOURCE_MEM resource defining the
> core's memory-mapped registers and an IORESOURCE_IRQ for the associated
> interr
", used to compute the
clock divider.
Signed-off-by: Thierry Reding
---
drivers/spi/Kconfig |5 +
drivers/spi/Makefile |1 +
drivers/spi/spioc.c | 633 ++
3 files changed, 639 insertions(+), 0 deletions(-)
diff --git a/drivers/spi/Kc
", used to compute the
clock divider.
Signed-off-by: Thierry Reding
---
drivers/spi/Kconfig |5 +
drivers/spi/Makefile |1 +
drivers/spi/spioc.c | 528 +
include/linux/spi/spioc.h | 25 +++
4 files changed, 559 insertions(
This patch adds support for the OpenCores SPI controller.
Signed-off-by: Thierry Reding
---
drivers/spi/Kconfig |5 +
drivers/spi/Makefile |1 +
drivers/spi/spioc.c | 529 +
include/linux/spi/spioc.h | 25 +++
4 files