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

Commit 73c40b5d authored by Sergio Frades Ruiz De Sola's avatar Sergio Frades Ruiz De Sola Committed by Gerrit - the friendly Code Review server
Browse files

can: rh850 CAN FD backward compatibility



This change enables backward compatibility
for previous versions of VNW framework
to use legacy raw frame mode.

Change-Id: I368b666108feafe820fe259af4090990eba24fc0
CRs-Fixed: 1058981
Signed-off-by: default avatarSergio Frades Ruiz De Sola <csfrade@codeaurora.org>
parent fbaa89c3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -951,8 +951,10 @@ static int rh850_netdev_do_ioctl(struct net_device *netdev,

	switch (cmd) {
	case IOCTL_RELEASE_CAN_BUFFER:
		if (ifr->ifr_data > (void *)0x100) {
			mode = ifr->ifr_data;
			priv_data->driver_mode = *mode;
		}
		LOGDE("rh850_driver_mode  %d\n", priv_data->driver_mode);
		rh850_send_release_can_buffer_cmd(netdev);
		ret = 0;