gianfar.c: Unwanted VLAN tagging on TX frames

2009-08-24 Thread Torsten Fleischer
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 sen

Re: gianfar.c: Unwanted VLAN tagging on TX frames

2009-08-25 Thread Torsten Fleischer
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 reason

spi_mpc8xxx.c: chip select polarity problem

2009-11-16 Thread Torsten Fleischer
etter solution: removing the usage 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

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-17 Thread Torsten Fleischer
e even if they are not initialized at that time? Regards Torsten Fleischer ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-18 Thread Torsten Fleischer
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 de

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-21 Thread Torsten Fleischer
containing the recommended changes. Best Regards Torsten Signed-off-by: Torsten Fleischer --- 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.

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-25 Thread Torsten Fleischer
nsfer to the associated device occurs. Signed-off-by: Torsten Fleischer --- 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/dr

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-26 Thread Torsten Fleischer
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 begin

Re: spi_mpc8xxx.c: chip select polarity problem

2009-12-09 Thread Torsten Fleischer
alue to the associated GPIOs. Signed-off-by: Torsten Fleischer --- diff -ruN linux-2.6.32_orig//drivers/of/of_spi.c linux-2.6.32/drivers/of/of_spi.c --- linux-2.6.32_orig//drivers/of/of_spi.c 2009-12-03 04:51:21.0 +0100 +++ linux-2.6.32/drivers/of/of_spi.c2009-12-09 12:37:01

Re: spi_mpc8xxx.c: chip select polarity problem

2009-12-09 Thread Torsten Fleischer
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); >

Re: spi_mpc8xxx.c: chip select polarity problem

2009-12-14 Thread Torsten Fleischer
. > > This function is used by the spi_mpc8xxx driver to set a proper initial > > value to the associated GPIOs. > > > > > > Signed-off-by: Torsten Fleischer > > I like this better. See comments below. > [...] Hey Grant, below there is a new version of the patch

spi_mpc8xxx: Setting cs_change at the last transfer of a message

2010-01-25 Thread Torsten Fleischer
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 like