Luotao Fu wrote: > Hi Wolfgang, > > On Wed, Nov 04, 2009 at 09:30:18AM +0100, Wolfgang Grandegger wrote: >> Luotao Fu wrote: >>> Hi, >>> >>> On Wed, Nov 04, 2009 at 09:13:03AM +0100, Wolfgang Grandegger wrote: >>>> Luotao Fu wrote: >>>>> Hi Wolfgang, >>>>> > .... >>> ? I'm a little confused, just for the record: You called >>> ifconfig can2 down >>> before you brought up the interface? >> No, because the module was just loaded. But even if I do a "ifconfig >> can2 down", it will fail. >> > > init_mode (slprq | initrq) is set while the interface is shut down. This > is the place where the warning comes from. > >>> No. The slprq will eventually fail if there're irregular activities on >>> the bus, like a opposite with wrong baudrate keep resending its stuffs. >> On my board, it always fails! Even without any traffic on the bus. > > This is really strange, I can't reproduce this on my board here. > > # /sbin/ip link set can1 type can bitrate 125000 > [ 215.118944] mpc52xx_can f0000980.can: setting BTR0=0x15 BTR1=0x18 > # ifconfig can1 down > # ifconfig can1 up > # > > Btw. the platform I'm working on is a 1.4 > # cat /proc/cpuinfo | grep revision > revision : 1.4 (pvr 8082 2014) > I will try to do some tests on another mpc5200b hardware here also later > today.
As I already said, I use an old MPC5200 (without *B*). Will try later today with a MPC5200B. > Stupid question: does your board work normally without the patch? The > warning indicates that the slprq didn't get through and slprq bit should > be set then and the controller should be broken as long as itself or the > bus is not restarted. So far, it worked fine without your patch. Wolfgang, _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
