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:
Mohammed 2018-11-06 19:36:20 +05:30 committed by Gerrit - the friendly Code Review server
parent 7260e48be9
commit 6784876c00

View file

@ -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;
}