diff options
| author | Andrea Merello <[email protected]> | 2019-10-04 13:53:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-10-05 01:07:45 +0000 |
| commit | ea977d19d918324ad5b66953f051a6ed07d0a3c5 (patch) | |
| tree | d9076da483121f02b41317ea7264c58d8601f817 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | net: ipv4: avoid mixed n_redirects and rate_tokens usage (diff) | |
| download | kernel-ea977d19d918324ad5b66953f051a6ed07d0a3c5.tar.gz kernel-ea977d19d918324ad5b66953f051a6ed07d0a3c5.zip | |
net: phy: allow for reset line to be tied to a sleepy GPIO controller
mdio_device_reset() makes use of the atomic-pretending API flavor for
handling the PHY reset GPIO line.
I found no hint that mdio_device_reset() is called from atomic context
and indeed it uses usleep_range() since long time, so I would assume that
it is OK to sleep there.
This patch switch to gpiod_set_value_cansleep() in mdio_device_reset().
This is relevant if e.g. the PHY reset line is tied to a I2C GPIO
controller.
This has been tested on a ZynqMP board running an upstream 4.19 kernel and
then hand-ported on current kernel tree.
Signed-off-by: Andrea Merello <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
