]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Add ability to turn off 1shot MSI
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 31 Aug 2011 11:44:50 +0000 (11:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 01:38:18 +0000 (09:38 +0800)
commit16c0078233f8a3cf5c838b1a2c887b55bdd3cf0b
tree998a6b8185194a44db11acfbb24735ececee1934
parentde455f0107ca90f58f53b00b7b5ce5a8363d92f4
tg3: Add ability to turn off 1shot MSI

In older devices, 1-shot MSI mode had to be enabled by the code.  In
newer devices however, 1-shot MSI mode is enabled by default; code would
be needed to disable it.

Disabling 1-shot MSI mode is useful when debugging.  This patch changes
the code so that the TG3_FLAG_1SHOT_MSI accurately reflects (and
controls) the state of 1-shot MSI mode.

(cherry picked from commit 7f23073515c83e8a7261462329b6f26f211126d7)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c