]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: use IRQ_NOAUTOEN to avoid irq is enabled due to request_irq
authorBarry Song <song.bao.hua@hisilicon.com>
Fri, 11 Sep 2020 01:55:10 +0000 (13:55 +1200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Sep 2020 00:40:28 +0000 (17:40 -0700)
commit7e9b2216f9907ea3a482106048b20054ffe56148
tree3f06d8a91da7db60d849a3dfcf4cab672bb77cac
parent429d45d909a73e08b3e55a6fe9b1bdf9a5981d32
net: hns: use IRQ_NOAUTOEN to avoid irq is enabled due to request_irq

Rather than doing request_irq and then disabling the irq immediately, it
should be safer to use IRQ_NOAUTOEN flag for the irq. It removes any gap
between request_irq() and disable_irq().

Cc: Salil Mehta <salil.mehta@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c