Skip to content

Commit

Permalink
can: xilinx_can: Fix flags field initialization for axi can and canps
Browse files Browse the repository at this point in the history
AXI CAN IP and CANPS IP supports tx fifo empty feature, this patch updates
the flags field for the same.

Signed-off-by: Appana Durga Kedareswara rao <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
kedareswararao authored and marckleinebudde committed Jul 24, 2019
1 parent c942a57 commit 3281b38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/can/xilinx_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,13 +1426,15 @@ static const struct dev_pm_ops xcan_dev_pm_ops = {
};

static const struct xcan_devtype_data xcan_zynq_data = {
.flags = XCAN_FLAG_TXFEMP,
.bittiming_const = &xcan_bittiming_const,
.btr_ts2_shift = XCAN_BTR_TS2_SHIFT,
.btr_sjw_shift = XCAN_BTR_SJW_SHIFT,
.bus_clk_name = "pclk",
};

static const struct xcan_devtype_data xcan_axi_data = {
.flags = XCAN_FLAG_TXFEMP,
.bittiming_const = &xcan_bittiming_const,
.btr_ts2_shift = XCAN_BTR_TS2_SHIFT,
.btr_sjw_shift = XCAN_BTR_SJW_SHIFT,
Expand Down

0 comments on commit 3281b38

Please sign in to comment.