]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: Fix MRU mismatch issue which may lead to data connection lost
authorSlark Xiao <slark_xiao@163.com>
Sat, 15 Jan 2022 02:34:30 +0000 (10:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jan 2022 22:40:52 +0000 (22:40 +0000)
commit38ef391f5ff9ca84afec31008f81543b7a95dfd3
tree1ad01924a78dfc0bcb34920c096bcb68b2cebbea
parent6c3a1b097db62dfda1351cdacd452999a0fb5a1b
net: wwan: Fix MRU mismatch issue which may lead to data connection lost

In pci_generic.c there is a 'mru_default' in struct mhi_pci_dev_info.
This value shall be used for whole mhi if it's given a value for a specific product.
But in function mhi_net_rx_refill_work(), it's still using hard code value MHI_DEFAULT_MRU.
'mru_default' shall have higher priority than MHI_DEFAULT_MRU.
And after checking, this change could help fix a data connection lost issue.

Fixes: ebb88623dc50 ("bus: mhi: pci-generic: configurable network interface MRU")
Signed-off-by: Shujun Wang <wsj20369@163.com>
Signed-off-by: Slark Xiao <slark_xiao@163.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/mhi_wwan_mbim.c