summaryrefslogtreecommitdiff
path: root/include/linux/can
diff options
context:
space:
mode:
authorJoakim Zhang <qiangqing.zhang@nxp.com>2018-10-18 13:06:19 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:43 +0800
commit2fe3a436eab38178d074ad5e1d01c827207dc1a4 (patch)
tree593e38c3a50c78976d7cc611ee8def32c396774a /include/linux/can
parentaa984877f4c464c0fe4fd75c20178c785dfbbc72 (diff)
MLK-19787 can: flexcan: fix CAN can't receive remote request frame
The flexcan driver allocates canfd-skb no matter whether use CAN FD mode or not, it's unreasonable due to it will affect the parse of the remote request frame. To fix the issue, allocating can-skb with "alloc_can_skb()" in normal mode and canfd-skb with "alloc_canfd_skb()" in fd mode. Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Diffstat (limited to 'include/linux/can')
-rw-r--r--include/linux/can/rx-offload.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/can/rx-offload.h b/include/linux/can/rx-offload.h
index e4b11186cfa4..6448e7dfc170 100644
--- a/include/linux/can/rx-offload.h
+++ b/include/linux/can/rx-offload.h
@@ -35,6 +35,8 @@ struct can_rx_offload {
struct napi_struct napi;
bool inc;
+
+ bool is_canfd;
};
int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload);