summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-sh.c
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-09-05 09:57:12 +0800
committerDavid S. Miller <davem@davemloft.net>2019-09-06 15:04:57 +0200
commit6e1cdedcf0362fed3aedfe051d46bd7ee2a85fe1 (patch)
tree03a79bfefc7b054b3777efeb404a653fd8fad85c /drivers/spi/spi-sh.c
parent7bdf4de1267780aa194b3a28c85a6c4d617b0bdb (diff)
net: sonic: return NETDEV_TX_OK if failed to map buffer
NETDEV_TX_BUSY really should only be used by drivers that call netif_tx_stop_queue() at the wrong moment. If dma_map_single() is failed to map tx DMA buffer, it might trigger an infinite loop. This patch use NETDEV_TX_OK instead of NETDEV_TX_BUSY, and change printk to pr_err_ratelimited. Fixes: d9fb9f384292 ("*sonic/natsemi/ns83829: Move the National Semi-conductor drivers") Signed-off-by: Mao Wenan <maowenan@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/spi/spi-sh.c')
0 files changed, 0 insertions, 0 deletions