All of lore.kernel.org
 help / color / mirror / Atom feed
* D_CAN problems after devm_ioremap_resource conversion.
@ 2013-09-25 20:36 T Thayer
  2013-09-26  3:26 ` Tushar Behera
  2013-09-26  7:12 ` Marc Kleine-Budde
  0 siblings, 2 replies; 3+ messages in thread
From: T Thayer @ 2013-09-25 20:36 UTC (permalink / raw)
  To: tushar.behera; +Cc: linux-can, mkl, wg, davem

Hello.

I've run into a problem with the Altera CycloneV SoCFPGA D_CAN driver
implementation after the devm_request_and_ioremap() to
devm_ioremap_resources() change (git commit
32766fff24a761079636bb96c389411d24a334c6. As another data point, I do
not have problems with 3.10 (which did not have the
devm_ioremap_resources() change).

I looked through the CAN mailing list archives but could not find any
issues that matched my symptoms.

Board #1 running 3.11 (git commit
d25903f894849fa799141e774c4ad34199e3e6a1) that I configure as:
canconfig can0 bitrate 500000
canconfig can0 start
candump can0


Board #2 running 3.10 that I configure as:
canconfig can0 bitrate 500000
canconfig can0 start
cansend can0 -i 0x123 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88

But nothing appears on the Board#1 dump.

The strange thing is that if I type something (ie. the letter "A") in
Board#1's terminal window and then change to Board#2's terminal window
and do another
cansend can0 -i 0x123 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88

then 2 messages show up on the candump (the original one and the one
just sent). From then on, typing
cansend can0 -i 0x123 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88

shows up on Board#1. It almost seems like typing any character in
Board#1's terminal (which is waiting for data via candump) frees up
the candump buffer printout.

I don't know if this is an issue with candump or with the CAN driver.
It doesn't seem like a candump issue because it works OK if I revert
and rebuild the kernel before the above commit.  (and it breaks if I
update my tree to after the above commit and rebuild).

Thank you for any insight you may have,

Thor

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

end of thread, other threads:[~2013-09-26  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 20:36 D_CAN problems after devm_ioremap_resource conversion T Thayer
2013-09-26  3:26 ` Tushar Behera
2013-09-26  7:12 ` Marc Kleine-Budde

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.