Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9db0133 authored by Alex Yakavenka's avatar Alex Yakavenka Committed by Gerrit - the friendly Code Review server
Browse files

rh850: fix mtu to CANFD size



MTU defaults to standard CAN frame, however,
since rh850 driver supports CANFD frames MTU
needs to be set accordingly.

CRs-Fixed: 2071638
Change-Id: I5015af6e61ef4b4e021a715a8dec60d42a8a9e5b
Signed-off-by: default avatarAlex Yakavenka <ayakav@codeaurora.org>
parent 998e5be1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1016,6 +1016,8 @@ static int rh850_create_netdev(struct spi_device *spi,
		return -ENOMEM;
	}

	netdev->mtu = CANFD_MTU;

	netdev_priv_data = netdev_priv(netdev);
	netdev_priv_data->rh850_can = priv_data;
	netdev_priv_data->netdev_index = index;