Init issue with rtcan_flexcan
Hi,
some days ago I have posted a patch for the rtcan_flexcan to be correctly probed on the iMX6q
It is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once before.
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
Regards
Thierry
Quoted 9 lines · Thierry Bultel
Hi,
some days ago I have posted a patch for thertcan_flexcanto be correctly probed on the iMX6qIt is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once before.
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
It would be nice if you could port the missing patches from the mainline Linux kernel to rtcan_flexcan.
Thanks,
Wolfgang.
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Thierry Bultel
Hi,
some days ago I have posted a patch for thertcan_flexcanto be correctly probed on the iMX6qIt is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once
Quoted 8 lines
before.
Quoted 3 lines
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
It would be nice if you could port the missing patches from the mainline Linux kernel to
rtcan_flexcan.
I have ported code from the mainline linux flexcan driver that fixes the behavior described by Thierry. Please find attached:
0001-make-rtcan_flexcan-driver-compatible-with-non-OpenFi.patch 0002-Fix-rtcan_flexcan-for-mx6-for-OpenFirmware-platforms.patch
The attached patches can be applied to the current mainline xenomai git (anywhere after commit-3ddc61cda095a9ae51277608d7fd4e9c2c481625). They make Thierry's patch obsolete.
I have tested the rtcan_flexcan driver in the non-CONFIG_OF configuration only. On a wandboard with iMX6Solo using the freescale 3.0 kernel. I only compile tested the CONFIG_OF configuration for the current ipipe master (3.8) because wandboard solo is not yet supported by OpenFirmware. It would be great if someone could test the OF version.
Thanks,
Henri
Quoted 10 lines
Thanks,
Wolfgang.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-make-rtcan_flexcan-driver-compatible-with-non-OpenFi.patch
Type: application/octet-stream
Size: 4683 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130605/276cd6fe/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-rtcan_flexcan-for-mx6-for-OpenFirmware-platforms.patch
Type: application/octet-stream
Size: 8590 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130605/276cd6fe/attachment-0001.obj>
Hi Henri,
Quoted 27 lines · Henri Roosen
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Thierry Bultel
Hi,
some days ago I have posted a patch for thertcan_flexcanto be correctly probed on the iMX6qIt is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once
Quoted 8 lines
before.
Quoted 3 lines
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
It would be nice if you could port the missing patches from the mainline Linux kernel to
rtcan_flexcan.I have ported code from the mainline linux flexcan driver that fixes the behavior described by Thierry. Please find attached:
0001-make-rtcan_flexcan-driver-compatible-with-non-OpenFi.patch 0002-Fix-rtcan_flexcan-for-mx6-for-OpenFirmware-platforms.patchThe attached patches can be applied to the current mainline xenomai git (anywhere after commit-3ddc61cda095a9ae51277608d7fd4e9c2c481625). They make Thierry's patch obsolete.
Quoted 5 lines
I have tested the
rtcan_flexcandriver in the non-CONFIG_OF configuration only. On a wandboard with iMX6Solo using the freescale 3.0 kernel. I only compile tested theCONFIG_OFconfiguration for the current ipipe master (3.8) because wandboard solo is not yet supported by OpenFirmware. It would be great if someone could test the OF version.
Thanks for your contribution. Looks good at a first glance. Just need to check back- (and forward-) compatibility. I will also try to get access to boards using Flexcan. Hope to find some time over the WE.
Wolfgang.
Hi Henri,
Quoted 36 lines · Wolfgang Grandegger
Hi Henri,
Quoted 27 lines · Henri Roosen
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Thierry Bultel
Hi,
some days ago I have posted a patch for thertcan_flexcanto be correctly probed on the iMX6qIt is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once
Quoted 8 lines
before.
Quoted 3 lines
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
It would be nice if you could port the missing patches from the mainline Linux kernel to
rtcan_flexcan.I have ported code from the mainline linux flexcan driver that fixes the behavior described by Thierry. Please find attached:
0001-make-rtcan_flexcan-driver-compatible-with-non-OpenFi.patch 0002-Fix-rtcan_flexcan-for-mx6-for-OpenFirmware-platforms.patchThe attached patches can be applied to the current mainline xenomai git (anywhere after commit-3ddc61cda095a9ae51277608d7fd4e9c2c481625). They make Thierry's patch obsolete.
Quoted 5 lines
I have tested the
rtcan_flexcandriver in the non-CONFIG_OF configuration only. On a wandboard with iMX6Solo using the freescale 3.0 kernel. I only compile tested theCONFIG_OFconfiguration for the current ipipe master (3.8) because wandboard solo is not yet supported by OpenFirmware. It would be great if someone could test the OF version.
Quoted 3 lines
Thanks for your contribution. Looks good at a first glance. Just need to check back- (and forward-) compatibility. I will also try to get access to boards using Flexcan. Hope to find some time over the WE.
So far I didn't get a chance to test you driver modifications. Anyway, the patch looks good. Gilles, could you please add my
"Acked-by: Wolfgang Grandegger <[email protected]>"
and apply the patch, thanks.
Thanks for your contribution,
Wolfgang.
Gilles Chanteperdrix
AppliedQuoted 43 lines · Wolfgang Grandegger
Hi Henri,
Quoted 36 lines · Wolfgang Grandegger
Hi Henri,
Quoted 27 lines · Henri Roosen
Quoted 7 lines · Wolfgang Grandegger
Quoted 6 lines · Thierry Bultel
Hi,
some days ago I have posted a patch for thertcan_flexcanto be correctly probed on the iMX6qIt is functional, but I have not tested it enough, I am sorry about that. It only works if the linux flexcan driver module has been used once
Quoted 8 lines
before.
Quoted 3 lines
Else I have got IRQs but no packet go to the upper layer, I think it is stuck in passive state, I am investigating on it.
It would be nice if you could port the missing patches from the mainline Linux kernel to
rtcan_flexcan.I have ported code from the mainline linux flexcan driver that fixes the behavior described by Thierry. Please find attached:
0001-make-rtcan_flexcan-driver-compatible-with-non-OpenFi.patch 0002-Fix-rtcan_flexcan-for-mx6-for-OpenFirmware-platforms.patchThe attached patches can be applied to the current mainline xenomai git (anywhere after commit-3ddc61cda095a9ae51277608d7fd4e9c2c481625). They make Thierry's patch obsolete.
Quoted 5 lines
I have tested the
rtcan_flexcandriver in the non-CONFIG_OF configuration only. On a wandboard with iMX6Solo using the freescale 3.0 kernel. I only compile tested theCONFIG_OFconfiguration for the current ipipe master (3.8) because wandboard solo is not yet supported by OpenFirmware. It would be great if someone could test the OF version.Quoted 3 lines
Thanks for your contribution. Looks good at a first glance. Just need to check back- (and forward-) compatibility. I will also try to get access to boards using Flexcan. Hope to find some time over the WE.
Quoted 6 lines
So far I didn't get a chance to test you driver modifications. Anyway, the patch looks good. Gilles, could you please add my
"Acked-by: Wolfgang Grandegger<[email protected]>"
and apply the patch, thanks.
Merged, thanks.
Signature · 1 line
Gilles.