As stated in spi.h (at struct spi_transfer) the driver can keep the chip
select of the last device active if cs_change is set at the last transfer of a
message.
The spi_mpc8xxx driver always deactivates the chip select after completing the
message regardless of cs_change is set or not.
I'd
by the spi_mpc8xxx driver to set a proper initial
value to the associated GPIOs.
Signed-off-by: Torsten Fleischer to-fleisc...@t-online.de
I like this better. See comments below.
[...]
Hey Grant,
below there is a new version of the patch containing the modifications
according to your
.
The following patch adds a function to get the active state of the chip select
of a SPI device by looking for the 'spi-cs-high' property in the associated
device
tree node.
This function is used by the spi_mpc8xxx driver to set a proper initial value
to the associated GPIOs.
Signed-off-by: Torsten
On Wed, Dec 9, 2009 at 18:46:51 Grant Likely wrote:
[...]
+ ret = of_get_spi_cs_active_state(np, i, astate);
+ if (ret) {
+ dev_err(dev, can't get cs active state of device
+ #%d: %d\n, i, ret);
+
On Thu, Nov 26, 2009 at 13:12:04 Anton Vorontsov wrote:
[...]
Ah. I understand what you're doing now. Hmmm. This approach
concerns me because it relies on firmware or platform code to get CS
gpios set up properly before the driver is probed.
Yes, that was said at the very beginning of
occurs.
Signed-off-by: Torsten Fleischer to-fleisc...@t-online.de
---
diff -u -r -N linux-2.6.31.6_orig//drivers/spi/spi_mpc8xxx.c
linux-2.6.31.6/drivers/spi/spi_mpc8xxx.c
--- linux-2.6.31.6_orig//drivers/spi/spi_mpc8xxx.c 2009-11-10
01:32:31.0 +0100
+++ linux-2.6.31.6/drivers/spi
changes.
Best Regards
Torsten
Signed-off-by: Torsten Fleischer to-fleisc...@t-online.de
---
diff -u -r -N linux-2.6.31.6_orig//drivers/spi/spi_mpc8xxx.c
linux-2.6.31.6/drivers/spi/spi_mpc8xxx.c
--- linux-2.6.31.6_orig//drivers/spi/spi_mpc8xxx.c 2009-11-10
01:32:31.0 +0100
On Wen, Nov 18, 2009 00:28:23 Anton Vorontsov wrote:
[...]
So it might be better to fix up initial value in the platform code?
Oh, we actually cannot, because the driver calls
gpio_direction_output().
And since we don't know the mode prior to SPI device's driver
?
Regards
Torsten Fleischer
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
of the alow_flags in
mpc8xxx_spi_cs_control() or the variable 'pol' in mpc8xxx_spi_chipselect()?
Best Regards
Torsten Fleischer
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
On Tuesday 25 August 2009 at 01:32:18, Andy Fleming wrote:
Hmmmhow have you tested this? This looks like it has a bad race
condition. The TCTRL register applies to all packets, which means if you
send a packet with VLAN tags, followed by one without, or visa versa,
there's a reasonable
Hello everyone,
I have the Freescale's MPC8313erdb eval board and run the latest stable linux
kernel version (linux-2.6.30.5).
After creating a VLAN device (e.g. eth0.2) a VLAN tag is also inserted into
frames that don't relate to a VLAN device. This is the case for frames that
are directly
12 matches
Mail list logo