Skip to content

Commit 0c92c94

Browse files
committed
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 <[email protected]>
2 parents 136065e + f71096d commit 0c92c94

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

Documentation/devicetree/bindings/net/can/rcar_can.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Required properties:
66
"renesas,can-r8a7779" if CAN controller is a part of R8A7779 SoC.
77
"renesas,can-r8a7790" if CAN controller is a part of R8A7790 SoC.
88
"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+
918
- reg: physical base address and size of the R-Car CAN register map.
1019
- interrupts: interrupt specifier for the sole interrupt.
1120
- clocks: phandles and clock specifiers for 3 CAN clock inputs.
@@ -25,7 +34,7 @@ Example
2534
SoC common .dtsi file:
2635

2736
can0: can@e6e80000 {
28-
compatible = "renesas,can-r8a7791";
37+
compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can";
2938
reg = <0 0xe6e80000 0 0x1000>;
3039
interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
3140
clocks = <&mstp9_clks R8A7791_CLK_RCAN0>,

drivers/net/can/rcar_can.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,8 @@ static const struct of_device_id rcar_can_of_table[] __maybe_unused = {
904904
{ .compatible = "renesas,can-r8a7779" },
905905
{ .compatible = "renesas,can-r8a7790" },
906906
{ .compatible = "renesas,can-r8a7791" },
907+
{ .compatible = "renesas,rcar-gen1-can" },
908+
{ .compatible = "renesas,rcar-gen2-can" },
907909
{ }
908910
};
909911
MODULE_DEVICE_TABLE(of, rcar_can_of_table);

drivers/net/can/usb/ems_usb.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,9 @@ static void ems_usb_read_interrupt_callback(struct urb *urb)
281281
switch (urb->status) {
282282
case 0:
283283
dev->free_slots = dev->intr_in_buffer[1];
284-
if(dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH){
285-
if (netif_queue_stopped(netdev)){
286-
netif_wake_queue(netdev);
287-
}
288-
}
284+
if (dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH &&
285+
netif_queue_stopped(netdev))
286+
netif_wake_queue(netdev);
289287
break;
290288

291289
case -ECONNRESET: /* unlink */

0 commit comments

Comments
 (0)