Flexcan driver build broken since 3.11 - also in upstream?
Hi all,
just noticed a build breakage in Xenomai 2: ksrc/drivers/can/flexcan.c is looking for linux/can/platform/flexcan.h which was removed in baffd2e8d9. But both the Xenomai driver and upstream's flexcan.c still use the flexcan_platform_data structure which I do not find anywhere in the kernel. Does anyone know what happened there?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 7 lines · Jan Kiszka
Hi all,
just noticed a build breakage in Xenomai 2:
ksrc/drivers/can/flexcan.cis looking forlinux/can/platform/flexcan.hwhich was removed inbaffd2e8d9. But both the Xenomai driver and upstream'sflexcan.cstill use theflexcan_platform_datastructure which I do not find anywhere in the kernel. Does anyone know what happened there?
I just cloned Linus's kernel tree and do *not* see that any CAN driver is still including "linux/can/platform/flexcan":
$ grep -r '/platform/flexcan.h' linux/drivers/net/can/ $
Will have a closer look later today.
Wolfgang.
Quoted 10 lines · Wolfgang Grandegger
Quoted 7 lines · Jan Kiszka
Hi all,
just noticed a build breakage in Xenomai 2:
ksrc/drivers/can/flexcan.cis looking forlinux/can/platform/flexcan.hwhich was removed inbaffd2e8d9. But both the Xenomai driver and upstream'sflexcan.cstill use theflexcan_platform_datastructure which I do not find anywhere in the kernel. Does anyone know what happened there?
Quoted 7 lines
I just cloned Linus's kernel tree and do *not* see that any CAN driver is still including "linux/can/platform/flexcan":
$ grep -r '/platform/flexcan.h' linux/drivers/net/can/ $Will have a closer look later today.
Also try "git grep flexcan_platform_data" - confuses me...
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Wolfgang Grandegger
Quoted 7 lines · Jan Kiszka
Hi all,
just noticed a build breakage in Xenomai 2:
ksrc/drivers/can/flexcan.cis looking forlinux/can/platform/flexcan.hwhich was removed inbaffd2e8d9. But both the Xenomai driver and upstream'sflexcan.cstill use theflexcan_platform_datastructure which I do not find anywhere in the kernel. Does anyone know what happened there?I just cloned Linus's kernel tree and do *not* see that any CAN driver is still including "linux/can/platform/flexcan":
Quoted 6 lines
Quoted 4 lines
$ grep -r '/platform/flexcan.h' linux/drivers/net/can/ $Will have a closer look later today.
Also try "git grep
flexcan_platform_data" - confuses me...
Well, the driver never uses the contents of the pointer to this structure, so, it does not really need the structure to be defined... Or am I missing something? Anyway, it would seem the driver has been converted to device tree:
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
Signature · 1 line
Gilles.
Quoted 18 lines · Gilles Chanteperdrix
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Wolfgang Grandegger
Quoted 7 lines · Jan Kiszka
Hi all,
just noticed a build breakage in Xenomai 2:
ksrc/drivers/can/flexcan.cis looking forlinux/can/platform/flexcan.hwhich was removed inbaffd2e8d9. But both the Xenomai driver and upstream'sflexcan.cstill use theflexcan_platform_datastructure which I do not find anywhere in the kernel. Does anyone know what happened there?I just cloned Linus's kernel tree and do *not* see that any CAN driver is still including "linux/can/platform/flexcan":
$ grep -r '/platform/flexcan.h' linux/drivers/net/can/ $
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Will have a closer look later today.
Also try "git grep
flexcan_platform_data" - confuses me...Well, the driver never uses the contents of the pointer to this structure, so, it does not really need the structure to be defined...
Indeed, dead code...
Quoted 5 lines
Or am I missing something? Anyway, it would seem the driver has been converted to device tree:
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
Then we need to convert the RT driver as well, right?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 4 lines · Jan Kiszka
Quoted 3 lines · Gilles Chanteperdrix
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Wolfgang Grandegger
On Mon, 08 Sep 2014 08:37:14 +0200, Jan Kiszka
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines · wrote:
Hi all,
just noticed a build breakage in Xenomai 2:
ksrc/drivers/can/flexcan.c
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
is looking for
linux/can/platform/flexcan.hwhich was removed inbaffd2e8d9. But both the Xenomai driver and upstream'sflexcan.c
still
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
use the
flexcan_platform_datastructure which I do not find anywhere in
the kernel. Does anyone know what happened there?I just cloned Linus's kernel tree and do *not* see that any CAN
driver
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
is
still including "linux/can/platform/flexcan":$ grep -r '/platform/flexcan.h' linux/drivers/net/can/ $Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Will have a closer look later today.
Also try "git grep
flexcan_platform_data" - confuses me...Well, the driver never uses the contents of the pointer to this structure, so, it does not really need the structure to be defined...
Indeed, dead code...
Quoted 7 lines
Quoted 5 lines
Or am I missing something? Anyway, it would seem the driver has been converted to device tree:
Documentation/devicetree/bindings/net/can/fsl-flexcan.txtThen we need to convert the RT driver as well, right?
Yes... while still being compatible with old(er) kernel versions. And there are various other improvements and most likely bug fixes. Unfortunately I do currently not have Flexcan hardware at hand.
Wolfgang.