Commit 70278b5d authored by David S. Miller's avatar David S. Miller

Merge tag 'linux-can-next-for-4.10-20161201' of...

Merge tag 'linux-can-next-for-4.10-20161201' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next

Marc Kleine-Budde says:

====================
pull-request: can-next 2016-12-01

this is a pull request of 4 patches for net-next/master.

There are two patches by Chris Paterson for the rcar_can and rcar_canfd
device tree binding documentation. And a patch by Geert Uytterhoeven
that corrects the order of interrupt specifiers.

The fourth patch by Colin Ian King fixes a spelling error in the
kvaser_usb driver.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents b91dce4c 0d8f8efd
...@@ -10,6 +10,7 @@ Required properties: ...@@ -10,6 +10,7 @@ Required properties:
"renesas,can-r8a7793" if CAN controller is a part of R8A7793 SoC. "renesas,can-r8a7793" if CAN controller is a part of R8A7793 SoC.
"renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC. "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC.
"renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC. "renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC.
"renesas,can-r8a7796" if CAN controller is a part of R8A7796 SoC.
"renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device. "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device.
"renesas,rcar-gen2-can" for a generic R-Car Gen2 compatible device. "renesas,rcar-gen2-can" for a generic R-Car Gen2 compatible device.
"renesas,rcar-gen3-can" for a generic R-Car Gen3 compatible device. "renesas,rcar-gen3-can" for a generic R-Car Gen3 compatible device.
...@@ -24,11 +25,12 @@ Required properties: ...@@ -24,11 +25,12 @@ Required properties:
- pinctrl-0: pin control group to be used for this controller. - pinctrl-0: pin control group to be used for this controller.
- pinctrl-names: must be "default". - pinctrl-names: must be "default".
Required properties for "renesas,can-r8a7795" compatible: Required properties for "renesas,can-r8a7795" and "renesas,can-r8a7796"
In R8A7795 SoC, "clkp2" can be CANFD clock. This is a div6 clock and can be compatible:
used by both CAN and CAN FD controller at the same time. It needs to be scaled In R8A7795 and R8A7796 SoCs, "clkp2" can be CANFD clock. This is a div6 clock
to maximum frequency if any of these controllers use it. This is done using and can be used by both CAN and CAN FD controller at the same time. It needs to
the below properties. be scaled to maximum frequency if any of these controllers use it. This is done
using the below properties:
- assigned-clocks: phandle of clkp2(CANFD) clock. - assigned-clocks: phandle of clkp2(CANFD) clock.
- assigned-clock-rates: maximum frequency of this clock. - assigned-clock-rates: maximum frequency of this clock.
......
...@@ -5,13 +5,14 @@ Required properties: ...@@ -5,13 +5,14 @@ Required properties:
- compatible: Must contain one or more of the following: - compatible: Must contain one or more of the following:
- "renesas,rcar-gen3-canfd" for R-Car Gen3 compatible controller. - "renesas,rcar-gen3-canfd" for R-Car Gen3 compatible controller.
- "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller. - "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller.
- "renesas,r8a7796-canfd" for R8A7796 (R-Car M3) compatible controller.
When compatible with the generic version, nodes must list the When compatible with the generic version, nodes must list the
SoC-specific version corresponding to the platform first, followed by the SoC-specific version corresponding to the platform first, followed by the
family-specific and/or generic versions. family-specific and/or generic versions.
- reg: physical base address and size of the R-Car CAN FD register map. - reg: physical base address and size of the R-Car CAN FD register map.
- interrupts: interrupt specifier for the Global & Channel interrupts - interrupts: interrupt specifiers for the Channel & Global interrupts
- clocks: phandles and clock specifiers for 3 clock inputs. - clocks: phandles and clock specifiers for 3 clock inputs.
- clock-names: 3 clock input name strings: "fck", "canfd", "can_clk". - clock-names: 3 clock input name strings: "fck", "canfd", "can_clk".
- pinctrl-0: pin control group to be used for this controller. - pinctrl-0: pin control group to be used for this controller.
...@@ -23,11 +24,12 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each ...@@ -23,11 +24,12 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each
child node supports the "status" property only, which is used to child node supports the "status" property only, which is used to
enable/disable the respective channel. enable/disable the respective channel.
Required properties for "renesas,r8a7795-canfd" compatible: Required properties for "renesas,r8a7795-canfd" and "renesas,r8a7796-canfd"
In R8A7795 SoC, canfd clock is a div6 clock and can be used by both CAN compatible:
and CAN FD controller at the same time. It needs to be scaled to maximum In R8A7795 and R8A7796 SoCs, canfd clock is a div6 clock and can be used by both
frequency if any of these controllers use it. This is done using the CAN and CAN FD controller at the same time. It needs to be scaled to maximum
below properties. frequency if any of these controllers use it. This is done using the below
properties:
- assigned-clocks: phandle of canfd clock. - assigned-clocks: phandle of canfd clock.
- assigned-clock-rates: maximum frequency of this clock. - assigned-clock-rates: maximum frequency of this clock.
......
...@@ -459,7 +459,7 @@ struct kvaser_usb { ...@@ -459,7 +459,7 @@ struct kvaser_usb {
struct usb_endpoint_descriptor *bulk_in, *bulk_out; struct usb_endpoint_descriptor *bulk_in, *bulk_out;
struct usb_anchor rx_submitted; struct usb_anchor rx_submitted;
/* @max_tx_urbs: Firmware-reported maximum number of oustanding, /* @max_tx_urbs: Firmware-reported maximum number of outstanding,
* not yet ACKed, transmissions on this device. This value is * not yet ACKed, transmissions on this device. This value is
* also used as a sentinel for marking free tx contexts. * also used as a sentinel for marking free tx contexts.
*/ */
...@@ -2027,7 +2027,7 @@ static int kvaser_usb_probe(struct usb_interface *intf, ...@@ -2027,7 +2027,7 @@ static int kvaser_usb_probe(struct usb_interface *intf,
((dev->fw_version >> 16) & 0xff), ((dev->fw_version >> 16) & 0xff),
(dev->fw_version & 0xffff)); (dev->fw_version & 0xffff));
dev_dbg(&intf->dev, "Max oustanding tx = %d URBs\n", dev->max_tx_urbs); dev_dbg(&intf->dev, "Max outstanding tx = %d URBs\n", dev->max_tx_urbs);
err = kvaser_usb_get_card_info(dev); err = kvaser_usb_get_card_info(dev);
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment