diff options
author | Pali Rohár <[email protected]> | 2020-04-30 10:06:18 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2020-05-18 14:40:38 +0100 |
commit | 5169a9851daaa2782a7bd2bb83d5b1bd224b2879 (patch) | |
tree | 0bc0605f958b1e4b213e0b1fa9d40b428bc37342 /drivers/fpga/fpga-bridge.c | |
parent | 43fc679ced18006b12d918d7a8a4af392b7fbfe7 (diff) |
PCI: aardvark: Issue PERST via GPIO
Add support for issuing PERST via GPIO specified in 'reset-gpios'
property (as described in PCI device tree bindings).
Some buggy cards (e.g. Compex WLE900VX or WLE1216) are not detected
after reboot when PERST is not issued during driver initialization.
If bootloader already enabled link training then issuing PERST has no
effect for some buggy cards (e.g. Compex WLE900VX) and these cards are
not detected. We therefore clear the LINK_TRAINING_EN register before.
It was observed that Compex WLE900VX card needs to be in PERST reset
for at least 10ms if bootloader enabled link training.
Tested on Turris MOX.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Tomasz Maciej Nowak <[email protected]>
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Thomas Petazzoni <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions