aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-03-01 15:18:58 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-01 15:18:58 -0500
commit0c92c9490be49acbdb9accedc411b8c07a2cf937 (patch)
tree1e6925c7352e82df6e73b4dba6283dff9b68dfe0
parent136065e67da6d6956c5ce8c647c27cc5cd56d7ee (diff)
parentf71096dfd129e4ad1ae80cd10d5ac050e5730f8a (diff)
Merge tag 'linux-can-next-for-4.6-20160226' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
Marc Kleine-Budde says: ==================== pull-request: can-next 2016-02-26 this is a pull request of 3 patch for net-next/master. There are two patches by Simon Horman, in which the device tree support for the rcar_can driver is improved. One patch by me fixes the bad coding style of the ems_usb driver which was introduced recently. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--Documentation/devicetree/bindings/net/can/rcar_can.txt11
-rw-r--r--drivers/net/can/rcar_can.c2
-rw-r--r--drivers/net/can/usb/ems_usb.c8
3 files changed, 15 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt
index 002d8440bf66..65edc055722f 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_can.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_can.txt
@@ -6,6 +6,15 @@ Required properties:
6 "renesas,can-r8a7779" if CAN controller is a part of R8A7779 SoC. 6 "renesas,can-r8a7779" if CAN controller is a part of R8A7779 SoC.
7 "renesas,can-r8a7790" if CAN controller is a part of R8A7790 SoC. 7 "renesas,can-r8a7790" if CAN controller is a part of R8A7790 SoC.
8 "renesas,can-r8a7791" if CAN controller is a part of R8A7791 SoC. 8 "renesas,can-r8a7791" if CAN controller is a part of R8A7791 SoC.
9 "renesas,can-r8a7792" if CAN controller is a part of R8A7792 SoC.
10 "renesas,can-r8a7793" if CAN controller is a part of R8A7793 SoC.
11 "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC.
12 "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device.
13 "renesas,rcar-gen2-can" for a generic R-Car Gen2 compatible device.
14 When compatible with the generic version, nodes must list the
15 SoC-specific version corresponding to the platform first
16 followed by the generic version.
17
9- reg: physical base address and size of the R-Car CAN register map. 18- reg: physical base address and size of the R-Car CAN register map.
10- interrupts: interrupt specifier for the sole interrupt. 19- interrupts: interrupt specifier for the sole interrupt.
11- clocks: phandles and clock specifiers for 3 CAN clock inputs. 20- clocks: phandles and clock specifiers for 3 CAN clock inputs.
@@ -25,7 +34,7 @@ Example
25SoC common .dtsi file: 34SoC common .dtsi file:
26 35
27 can0: can@e6e80000 { 36 can0: can@e6e80000 {
28 compatible = "renesas,can-r8a7791"; 37 compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can";
29 reg = <0 0xe6e80000 0 0x1000>; 38 reg = <0 0xe6e80000 0 0x1000>;
30 interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>; 39 interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
31 clocks = <&mstp9_clks R8A7791_CLK_RCAN0>, 40 clocks = <&mstp9_clks R8A7791_CLK_RCAN0>,
diff --git a/drivers/net/can/rcar_can.c b/drivers/net/can/rcar_can.c
index bc46be39549d..ad3d2e0cb191 100644
--- a/drivers/net/can/rcar_can.c
+++ b/drivers/net/can/rcar_can.c
@@ -904,6 +904,8 @@ static const struct of_device_id rcar_can_of_table[] __maybe_unused = {
904 { .compatible = "renesas,can-r8a7779" }, 904 { .compatible = "renesas,can-r8a7779" },
905 { .compatible = "renesas,can-r8a7790" }, 905 { .compatible = "renesas,can-r8a7790" },
906 { .compatible = "renesas,can-r8a7791" }, 906 { .compatible = "renesas,can-r8a7791" },
907 { .compatible = "renesas,rcar-gen1-can" },
908 { .compatible = "renesas,rcar-gen2-can" },
907 { } 909 { }
908}; 910};
909MODULE_DEVICE_TABLE(of, rcar_can_of_table); 911MODULE_DEVICE_TABLE(of, rcar_can_of_table);
diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c
index eb7192fab593..3400fd1cada7 100644
--- a/drivers/net/can/usb/ems_usb.c
+++ b/drivers/net/can/usb/ems_usb.c
@@ -281,11 +281,9 @@ static void ems_usb_read_interrupt_callback(struct urb *urb)
281 switch (urb->status) { 281 switch (urb->status) {
282 case 0: 282 case 0:
283 dev->free_slots = dev->intr_in_buffer[1]; 283 dev->free_slots = dev->intr_in_buffer[1];
284 if(dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH){ 284 if (dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH &&
285 if (netif_queue_stopped(netdev)){ 285 netif_queue_stopped(netdev))
286 netif_wake_queue(netdev); 286 netif_wake_queue(netdev);
287 }
288 }
289 break; 287 break;
290 288
291 case -ECONNRESET: /* unlink */ 289 case -ECONNRESET: /* unlink */