From 986546c1b529503289b9e2d145b164e2a97f65fb Mon Sep 17 00:00:00 2001 From: Ravinder Konka Date: Sun, 18 Jan 2015 10:47:57 +0530 Subject: net: msm_rmnet: Add an IOCTL definition to deregister a net device Platform drivers may be registered on driver startup for multiple channels which may cause probe and remove events to be called corresponding to driver events. It is possible that not all channels need to be enumerated for normal device operation. The unused channels also add unnecessary delay during sub system restart. Add an extended IOCTL which provides user space an option to unregister a platform driver. Change-Id: Ifa6284563551ecdd297ae457ea2b35027f60844e Acked-by: Nagarjuna Chaganti Signed-off-by: Ravinder Konka Signed-off-by: Subash Abhinov Kasiviswanathan --- include/uapi/linux/msm_rmnet.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_rmnet.h b/include/uapi/linux/msm_rmnet.h index 2ee7087255c3..936b4373d09f 100644 --- a/include/uapi/linux/msm_rmnet.h +++ b/include/uapi/linux/msm_rmnet.h @@ -58,7 +58,8 @@ enum rmnet_ioctl_extended_cmds_e { RMNET_IOCTL_GET_SUPPORTED_QOS_MODES = 0x0013, /* Get QoS modes */ RMNET_IOCTL_SET_SLEEP_STATE = 0x0014, /* Set sleep state */ RMNET_IOCTL_SET_XLAT_DEV_INFO = 0x0015, /* xlat dev name */ - RMNET_IOCTL_EXTENDED_MAX = 0x0016 + RMNET_IOCTL_DEREGISTER_DEV = 0x0016, /* Dereg a net dev */ + RMNET_IOCTL_EXTENDED_MAX = 0x0017 }; /* Return values for the RMNET_IOCTL_GET_SUPPORTED_FEATURES IOCTL */ -- cgit v1.2.3