net/bnxt: cleanup NQ doorbell
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 17 Jul 2019 10:41:33 +0000 (16:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit4af9d0c729414670ffc152d7516e54f0e2e22b85
treec806f59ebbd8e18b34dcfa59d2393bc216110ebd
parentff9c0ca47e81176b5721c0f60dfc411330d205c6
net/bnxt: cleanup NQ doorbell

Simplify nq doorbell handling code by removing redundant db
parameter and consolidating NQ doorbell macro into the inline
function that uses it.

Add "enable interrupt" variant of nq write. This will be used
in a subsequent commit.

When initializing nq doorbell, don't assume that only the
"disable interrupt" form will be used.

Fixes: f8168ca0e690 ("net/bnxt: support thor controller")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ring.c
drivers/net/bnxt/bnxt_ring.h