r8169: add helper rtl_pci_commit
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 15 Feb 2020 13:50:29 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:36:06 +0000 (19:36 -0800)
commit711463f8342769c4cad7c3b54a6cfc2b006c1e42
tree33ec08e75a8d4f932f1ace7d58e3e23ed027e64d
parent9aab78290a0f8b0c053b53a07925b6af7dc6ff1f
r8169: add helper rtl_pci_commit

In few places we do a PCI commit by reading an arbitrary chip register.
It's not always obvious that the read is meant to be a PCI commit,
therefore add a helper for it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c