[PATCH v8 1/5] dt-bindings: can: m_can: Document new can transceiver binding

2018-01-16 Thread Faiz Abbas
m> Signed-off-by: Sekhar Nori <nsek...@ti.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- Documentation/devicetree/bindings/net/can/m_can.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree

[PATCH v8 3/5] can: m_can: Move allocation of net device to probe

2018-01-16 Thread Faiz Abbas
With the version no longer required to allocate the net device, it can be moved to probe and the alloc_m_can_dev() function can be simplified. Therefore, move the allocation of net device to probe and change alloc_m_can_dev() to setup_m_can_dev(). Signed-off-by: Faiz Abbas <faiz_ab...@ti.

[PATCH v8 0/5] Add MCAN Support for Dra76 platform

2018-01-16 Thread Faiz Abbas
e hclk as the interface clock using pm_runtime calls must still provide a hclk in the clocks property. Support higher speed CAN-FD bitrate: The community decided that data sampling point be used for the secondary sampling point here https://patchwork.kernel.org/patch/9909845/ Faiz Abbas (2): can:

[PATCH v8 5/5] can: m_can: Support higher speed CAN-FD bitrates

2018-01-16 Thread Faiz Abbas
ence 2013 indicates that this TDC mode is only needed for data bit rates above 2.5 Mbps. Therefore, only enable this mode when the data bit rate is above 2.5 Mbps. Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas &

[PATCH v8 4/5] can: m_can: Add PM Support

2018-01-16 Thread Faiz Abbas
SoCs that have the MCAN IP to work with this driver. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- drivers/net/can/m_can/m_can.c | 100 ++ 1 file changed, 62 insertions(+), 38 deletions(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can

[PATCH v8 2/5] dt-bindings: can: can-transceiver: Document new binding

2018-01-16 Thread Faiz Abbas
r Nori <nsek...@ti.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- .../bindings/net/can/can-transceiver.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/net

Re: [PATCH v7 5/8] can: m_can: Add PM Support

2018-01-16 Thread Faiz Abbas
Hi, On Monday 15 January 2018 07:25 PM, Marc Kleine-Budde wrote: > On 01/10/2018 11:55 AM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> Add support for CONFIG_PM which is the new way to handle managing clocks. >> >> Move th

Re: [PATCH v7 4/8] can: m_can: Move allocation of net device to probe

2018-01-16 Thread Faiz Abbas
Hi, On Monday 15 January 2018 07:22 PM, Marc Kleine-Budde wrote: > On 01/10/2018 11:55 AM, Faiz Abbas wrote: >> With the version no longer required to allocate the net device, it can >> be moved to probe and the alloc_m_can_dev() function can be simplified. >> >> The

Re: [PATCH v7 7/8] dt-bindings: can: m_can: Document new can transceiver binding

2018-01-11 Thread Faiz Abbas
Hi Rob, On Friday 12 January 2018 01:50 AM, Rob Herring wrote: > On Wed, Jan 10, 2018 at 4:55 AM, Faiz Abbas <faiz_ab...@ti.com> wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> Add information regarding can-transceiver binding. This is especially &

[PATCH v7 2/8] can: m_can: Add call to of_can_transceiver

2018-01-10 Thread Faiz Abbas
; Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- drivers/net/can/m_can/m_can.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index f4947a7..f72116e 100644 --- a/drivers/net

[PATCH v7 1/8] can: dev: Add support for limiting configured bitrate

2018-01-10 Thread Faiz Abbas
so add support for reading bitrate_max via the netlink interface. Reviewed-by: Suman Anna <s-a...@ti.com> Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> [nsek...@ti.com: fix build error with !CONFIG_OF] Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz

[PATCH v7 0/8] Add MCAN Support for Dra76 platform

2018-01-10 Thread Faiz Abbas
/patch/9909845/ Faiz Abbas (2): can: m_can: Remove check for version when allocating m_can net device can: m_can: Move allocation of net device to probe Franklin S Cooper Jr (6): can: dev: Add support for limiting configured bitrate can: m_can: Add call to of_can_transceiver can: m_can:

[PATCH v7 3/8] can: m_can: Remove check for version when allocating m_can net device

2018-01-10 Thread Faiz Abbas
allocating the net device. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- drivers/net/can/m_can/m_can.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index f72116e..893edbb 100644 --- a/drivers/net/can

[PATCH v7 4/8] can: m_can: Move allocation of net device to probe

2018-01-10 Thread Faiz Abbas
With the version no longer required to allocate the net device, it can be moved to probe and the alloc_m_can_dev() function can be simplified. Therefore, move the allocation of net device to probe and change alloc_m_can_dev() to setup_m_can_dev(). Signed-off-by: Faiz Abbas <faiz_ab...@ti.

[PATCH v7 5/8] can: m_can: Add PM Support

2018-01-10 Thread Faiz Abbas
Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- drivers/net/can/m_can/m_can.c | 95 --- 1 file changed, 62 insertions(+), 33 deletions(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c

[PATCH v7 6/8] can: m_can: Support higher speed CAN-FD bitrates

2018-01-10 Thread Faiz Abbas
ence 2013 indicates that this TDC mode is only needed for data bit rates above 2.5 Mbps. Therefore, only enable this mode when the data bit rate is above 2.5 Mbps. Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas &

[PATCH v7 8/8] dt-bindings: can: can-transceiver: Document new binding

2018-01-10 Thread Faiz Abbas
r Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- .../bindings/net/can/can-transceiver.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/can-transceiver.txt diff --git a/

[PATCH v7 7/8] dt-bindings: can: m_can: Document new can transceiver binding

2018-01-10 Thread Faiz Abbas
m> Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- Documentation/devicetree/bindings/net/can/m_can.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/m_can.txt b/Documentation/dev

Re: [PATCH v6 3/6] can: m_can: Add PM Runtime

2018-01-04 Thread Faiz Abbas
Hi, On Wednesday 03 January 2018 08:47 PM, Marc Kleine-Budde wrote: > On 01/03/2018 04:06 PM, Faiz Abbas wrote: >> Hi, >> >> On Wednesday 03 January 2018 07:55 PM, Marc Kleine-Budde wrote: >>> On 01/03/2018 01:39 PM, Faiz Abbas wrote: >>>> On Tuesday 0

Re: [PATCH v6 3/6] can: m_can: Add PM Runtime

2018-01-03 Thread Faiz Abbas
Hi, On Wednesday 03 January 2018 07:55 PM, Marc Kleine-Budde wrote: > On 01/03/2018 01:39 PM, Faiz Abbas wrote: >> On Tuesday 02 January 2018 09:37 PM, Marc Kleine-Budde wrote: >>> On 12/22/2017 02:31 PM, Faiz Abbas wrote: >>>> From: Franklin S Cooper Jr <fcoo

Re: [PATCH v6 4/6] can: m_can: Support higher speed CAN-FD bitrates

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 07:05 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> During test transmitting using CAN-FD at high bitrates (> 2 Mbps) >> would fail. Scoping the sign

Re: [PATCH v6 3/6] can: m_can: Add PM Runtime

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 09:37 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> Add support for PM Runtime which is the new way to handle managing clocks. >> However, to avoid b

Re: [PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2018-01-03 Thread Faiz Abbas
Hi, On Tuesday 02 January 2018 09:45 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the CAN no

Re: [PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2018-01-03 Thread Faiz Abbas
Hi Marc, On Tuesday 02 January 2018 06:30 PM, Marc Kleine-Budde wrote: > On 12/22/2017 02:31 PM, Faiz Abbas wrote: >> From: Franklin S Cooper Jr <fcoo...@ti.com> >> >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the C

[PATCH v6 1/6] can: dev: Add support for limiting configured bitrate

2017-12-22 Thread Faiz Abbas
ed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> [nsek...@ti.com: fix build error with !CONFIG_OF] Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- v6 changes: fix build error with !CONFIG_OF driv

[PATCH v6 6/6] dt-bindings: can: can-transceiver: Document new binding

2017-12-22 Thread Faiz Abbas
r Nori <nsek...@ti.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- .../bindings/net/can/can-transceiver.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/net

[PATCH v6 0/6] Add M_CAN Support for Dra76 platform

2017-12-22 Thread Faiz Abbas
This patch series adds support for M_CAN on the TI Dra76 platform. Device tree patches will be sent separately. A bunch of patches were sent before by Franklin Cooper . I have clubbed the series together and rebased to the latest kernel. v6 changes: Dropped the patches to make

[PATCH v6 4/6] can: m_can: Support higher speed CAN-FD bitrates

2017-12-22 Thread Faiz Abbas
ence 2013 indicates that this TDC mode is only needed for data bit rates above 2.5 Mbps. Therefore, only enable this mode when the data bit rate is above 2.5 Mbps. Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas &

[PATCH v6 5/6] dt-bindings: can: m_can: Document new can transceiver binding

2017-12-22 Thread Faiz Abbas
m> Signed-off-by: Sekhar Nori <nsek...@ti.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- Documentation/devicetree/bindings/net/can/m_can.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree

[PATCH v6 2/6] can: m_can: Add call to of_can_transceiver

2017-12-22 Thread Faiz Abbas
; Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- drivers/net/can/m_can/m_can.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index f4947a7..f72116e 100644 --- a/drivers/net

[PATCH v6 3/6] can: m_can: Add PM Runtime

2017-12-22 Thread Faiz Abbas
gement. Therefore, this allows future Texas Instruments SoCs that have the MCAN IP to work with this driver. Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> [nsek...@ti.com: handle pm_runtime_get_sync() failure, fix some bugs] Signed-off-by: Sekhar Nori <nsek...@ti.com> Signed-off-by: F