Re: R-Car E2 Can interface receive issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 30, 2016 at 1:36 PM, Roopesh K P <roopeshkp@xxxxxxxxxxxxxxx> wrote:
> I'm trying to use native (real hardware) interfaces like can0 in R-CAR E2
> based board (RTP0RC7794SEB00011S - ALT board). I am able to configure the
> CAN interfaces (can0 and can1). While testing, CAN driver seems to be able
> to send the CAN packets but not able to receive CAN packets from bus. Please
> help me to fix this issue.
>
> I had made the following changes.
>
> 1) Built the AGL kernel (3.10.31-ltsi) with CAN (SOCKET CAN) support by
> changing the configuration using menuconfig utility.
> 2) Added can0 and can1 pins details at the end of 'pfc' block in
> r8a7794-silk.dts file. Also added can0 and can1 block in the same file.
> 3) Modified the r8a7794.dtsi file and add can0 and can1 interface support.
> Also modified 'mstp9_clks' section to add can0 and can1 clock.
> 4) Added 'R8A7794_CLK_RCAN1' and 'R8A7794_CLK_RCAN0' clocks macros in
> 'includes/dt-bindings/clock/r8a7794-clock.h' file
> 5) Added R-CAR E2 in compatibility list in 'drivers/net/can/rcar_can.c' file

At first sight, all of these look OK.

> After booting 'dmesg | grep -i can' shows
>     pinmux core: sh-pfc does not support function can0
>     sh-pfc e6060000.pfc: invalid function can0 in map table
>     pinmux core: sh-pfc does not support function can1
>     sh-pfc e6060000.pfc: invalid function can1 in map table

The pfc-r8a7794.c driver lacks support for CAN functions.

> 1) I couldn't see r8a7794 in the CAN compatibility list. R-CAR CAN driver is
> able to supports R-CAR E2 CAN interface ?

I assume it can, but no one has added the compatible value to the driver yet.

> 2) Is there any additional modifications are needed in any of the driver
> source like pfc for supporting receive functionality (Rx)?
> 3) Is there any errors in the modifications I have done ?  Showing the
> following warnings/error while booting
>        a) pinmux core: sh-pfc does not support function can0
>        b) sh-pfc e6060000.pfc: invalid function can0 in map table

Indeed, CAN support should be added to the pfc-r8a7794.c driver.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux