amd-xgbe: Remove use of comm_owned field
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 May 2018 16:38:29 +0000 (11:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:33:00 +0000 (16:33 -0400)
commit0d2b5255ea7b69f2270e41130ee25346b1f68b7b
tree18a13e3b874b9c87b53306216fe4afc1234d2c1f
parentb93c3ab6006b379f2df238693b6e131cba9b37b3
amd-xgbe: Remove use of comm_owned field

The comm_owned field can hide logic where double locking is attempted
and prevent multiple threads for the same device from accessing the
mutex properly.  Remove the comm_owned field and use the mutex API
exclusively for gaining ownership.  The current driver has been audited
and is obtaining communications ownership properly.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c