forked from rubenslte/android_kernel_samsung_msm8226
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. CRs-Fixed: 738039 Change-Id: Ifa6284563551ecdd297ae457ea2b35027f60844e Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com> Signed-off-by: Ravinder Konka <rkonka@codeaurora.org> Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user