experience the HW deasserts CS whenever the output fifo runs
empty.
Lothar Waßmann
--
___
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
be paired with an spi_master_put() call to free the resources.
The kfree() is taken care of by the spi_master_release() function that
is called once the last reference to the underlying struct device has
been released. Thus kfree() must not be called after
spi_alloc_master().
Lothar Waßmann
Hi,
Shawn Guo writes:
On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote:
Hi,
Shawn Guo writes:
spi_imx_devtype_data has already been driver private data. There is
really no need to make a copy in spi_imx_data. Instead, a reference
pointer works perfectly fine
needed and discard everything else
after initialisation.
Lothar Waßmann
--
___
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag
Uwe Kleine-König writes:
On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote:
Hi,
Shawn Guo writes:
spi_imx_devtype_data has already been driver private data. There is
really no need to make a copy in spi_imx_data. Instead, a reference
pointer works perfectly fine
SPI_CS_HIGH)
reg |= MX31_CSPICTRL_SSPOL;
- if (config-cs 0) {
- reg |= (config-cs + 32) MX31_CSPICTRL_CS_SHIFT;
- }
+ if (cs 0)
This can never be true, since an 'int' promoted from 'u8' will always
be positive!
Lothar Waßmann
is wrong here, no? Sascha used spba_clk here, too. I
didn't found out yet how to read that out of the reference manual.
The Freescale BSP used aips_tz2_clk (and spba for cspi1). They should
know what's right. Maybe a copy/paste error from Sascha?
Lothar Waßmann
Hi,
On Thu, Sep 02, 2010 at 05:11:56PM +0200, Lothar Waßmann wrote:
- if (cpu_is_mx25() || cpu_is_mx31() || cpu_is_mx35()) {
+ /* i.MX51 has two eCSPI and one CSPI controllers, eCSPI
controllers are
+* not compatible with existing SPI controllers on other
it belongs (in the arch specific code).
Lothar Waßmann
--
___
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht