commit | 6268e7c5f0cbbdd75aa2f4d7db3bf8aab361fb33 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jan 17 10:47:53 2023 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 23 18:11:40 2023 -0500 |
tree | 5dde48f554a5b379c1623be9d54c5ba9fabda768 | |
parent | a4bf8f654f55154f1369cd55d0eccd88305fcae7 [diff] |
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>