msm: ipa4: Fix to disable the napi when rmnet ipa interface going down
Because of napi not disabled during rmnet ipa interface going down, when interface coming up napi will be in wrong state, it leads to device assert. Added changed to disable napi for the rmnet_ipa interface when the interface goes down. Change-Id: Ia6c7cd6fe9f60c58ffd178dbbf877ab3b38a2f4b Acked-by: Praveen Kurapati <pkurapat@qti.qualcomm.com> Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
This commit is contained in:
parent
7260e48be9
commit
6784876c00
1 changed files with 4 additions and 0 deletions
|
@ -1068,8 +1068,12 @@ static int __ipa_wwan_close(struct net_device *dev)
|
|||
*/
|
||||
static int ipa3_wwan_stop(struct net_device *dev)
|
||||
{
|
||||
struct ipa3_wwan_private *wwan_ptr = netdev_priv(dev);
|
||||
|
||||
IPAWANDBG("[%s] ipa3_wwan_stop()\n", dev->name);
|
||||
__ipa_wwan_close(dev);
|
||||
if (ipa3_rmnet_res.ipa_napi_enable)
|
||||
napi_disable(&(wwan_ptr->napi));
|
||||
netif_stop_queue(dev);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue