drivers: net: phy: xgene: Add lock to protect mac access
authorQuan Nguyen <qnguyen@apm.com>
Wed, 10 May 2017 20:45:00 +0000 (13:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 15:41:08 +0000 (11:41 -0400)
commit8ec7074a6bf74e12f67c0dc90cdaa7969bb49c74
tree7cc89b3e592617ba620121a59817df2c712a7441
parentae1aed95d0255aafdffc48c3a077c7980adc1168
drivers: net: phy: xgene: Add lock to protect mac access

This patch,

- refactors mac access routine
- adds lock to protect mac indirect access

Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-xgene.c
drivers/net/phy/mdio-xgene.h