Simon Glass 2b3ebf2013 ata: Don't try to use non-existent ports
The controller indicates the number of ports but also has a port map
which specifies which ports are actually valid. Make use of this to
avoid trying to send commands to an invalid port.

This avoids a crash on some controllers.

Signed-off-by: Simon Glass <sjg@chromium.org>
2023-01-23 18:11:40 -05:00
..
2021-01-31 23:55:56 +00:00
2022-09-16 11:05:16 -04:00
2022-09-25 08:30:05 -06:00