VFIO: platform: reset: AMD xgbe reset module
authorEric Auger <eric.auger@linaro.org>
Tue, 3 Nov 2015 18:20:57 +0000 (18:20 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 3 Nov 2015 19:55:21 +0000 (12:55 -0700)
commit0990822c98661bd625033f0d523b5c33566657ef
treefc7c9e0c3f3e53b83f2bcaab54c962a7b5f42cdc
parentdaac3bbedb8aba714a082d00e2292d462fa24397
VFIO: platform: reset: AMD xgbe reset module

This patch introduces a module that registers and implements a low-level
reset function for the AMD XGBE device.

it performs the following actions:
- reset the PHY
- disable auto-negotiation
- disable & clear auto-negotiation IRQ
- soft-reset the MAC

Those tiny pieces of code are inherited from the native xgbe driver.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/reset/Kconfig
drivers/vfio/platform/reset/Makefile
drivers/vfio/platform/reset/vfio_platform_amdxgbe.c [new file with mode: 0644]