]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita23517732aa7ff6439fa41cc7a06545598025b6b
tree7cc89b3e592617ba620121a59817df2c712a7441
parent534cdf2f6c0e54f34ca47777c5d59d2ccec018db
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