All of lore.kernel.org
 help / color / mirror / Atom feed
* mcp251x can't drop the can0 Interface
@ 2014-02-07 20:12 John Whitmore
  2014-02-08 17:10 ` Marc Kleine-Budde
  0 siblings, 1 reply; 5+ messages in thread
From: John Whitmore @ 2014-02-07 20:12 UTC (permalink / raw)
  To: linux-can

I guess you might say that I'm playing with an MCP2515 connected to a
RaspberryPi. I've got a problem which I've asked about on the RaspberryPi
forum but have never received an answer, so as a last resort I thought I'd try
here.

Basically I bring up the MCP2515 in listen mode at a certain baud rate. I
wanted to work on auto detetection of baud rate. So after listening for a
period of time at a certain baud rate I try to change the baud rate but I
can't do that with the linux mcp251x driver (I don't think it's the driver's
fault but have no idea whose it is). I've put in some debug statements
to see what happens when I execute "ifconfig can0 down" and basically the
interface goes down momentarily and then gets brough straight back up
again. So when I try to use the "ip" command to set the new baud rate I get an
error that the device is busy. 

Now I'm not sure if the issue is in the linux kernel or in the system
utilities "ifconfig" and "ip", but just wondered if anybody has seen this
behaviour. (I saw that there was a book published in January on linux
networking and must see if it deals with internals or just socket
programming.) If somebody could point me in the correct direction to look I'd
be very grateful. Or if somebody can confirm or deny this behaviour. 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-10 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 20:12 mcp251x can't drop the can0 Interface John Whitmore
2014-02-08 17:10 ` Marc Kleine-Budde
2014-02-10 22:28   ` John Whitmore
2014-02-10 22:34     ` Marc Kleine-Budde
2014-02-10 22:43       ` John Whitmore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.