Radhey Shyam Pandey
6800ad7417
ata: ahci_ceva: fix error handling for Xilinx GT PHY support
...
[ Upstream commit 26c8404e162b43dddcb037ba2d0cb58c0ed60aab ]
Platform clock and phy error resources are not cleaned up in Xilinx GT PHY
error path.
To fix introduce the function ceva_ahci_platform_enable_resources() which
is a customized version of ahci_platform_enable_resources() and inline with
SATA IP programming sequence it does:
- Assert SATA reset
- Program PS GTR phy
- Bring SATA by de-asserting the reset
- Wait for GT lane PLL to be locked
ceva_ahci_platform_enable_resources() is also used in the resume path
as the same SATA programming sequence (as in probe) should be followed.
Also cleanup the mixed usage of ahci_platform_enable_resources() and custom
implementation in the probe function as both are not required.
Fixes: 9a9d3abe24 ("ata: ahci: ceva: Update the driver to support xilinx GT phy")
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com >
Reviewed-by: Damien Le Moal <dlemoal@kernel.org >
Signed-off-by: Niklas Cassel <cassel@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-03-01 13:21:58 +01:00
..
2022-12-31 13:14:06 +01:00
2023-10-06 13:18:11 +02:00
2024-03-01 13:21:58 +01:00
2024-03-01 13:21:58 +01:00
2024-03-01 13:21:58 +01:00
2022-10-29 10:12:54 +02:00
2019-05-30 11:26:41 -07:00
2020-10-09 12:47:56 -06:00
2017-03-06 15:40:59 -05:00
2019-05-24 17:27:12 +02:00
2022-12-31 13:14:06 +01:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2021-06-14 08:26:54 -06:00
2021-04-11 20:35:08 -06:00
2023-10-06 13:18:01 +02:00
2024-03-01 13:21:44 +01:00
2024-03-01 13:21:58 +01:00
2021-03-30 20:21:26 -06:00
2019-11-06 20:34:25 -07:00
2021-07-10 09:22:44 -07:00
2024-03-01 13:21:58 +01:00
2023-10-06 13:18:01 +02:00
2022-12-31 13:14:06 +01:00
2023-10-25 11:58:59 +02:00
2023-10-25 11:59:00 +02:00
2020-03-26 10:28:19 -06:00
2021-03-12 07:28:30 -07:00
2023-10-06 13:18:11 +02:00
2023-10-06 13:18:22 +02:00
2022-12-31 13:14:06 +01:00
2019-05-21 11:28:46 +02:00
2023-10-06 13:18:24 +02:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2023-10-06 13:18:24 +02:00
2020-03-26 10:28:19 -06:00
2021-03-30 20:21:26 -06:00
2021-03-12 07:28:30 -07:00
2021-03-12 07:28:30 -07:00
2023-09-19 12:22:28 +02:00
2021-03-12 07:28:30 -07:00
2021-06-16 06:50:25 -06:00
2020-08-23 17:36:59 -05:00
2018-03-01 13:59:03 -08:00
2019-08-23 06:58:50 -06:00
2020-10-02 17:51:30 -06:00
2019-05-21 10:50:45 +02:00
2021-06-16 06:50:25 -06:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2021-06-16 08:52:38 -06:00
2019-05-21 10:50:45 +02:00
2022-12-31 13:14:06 +01:00
2023-09-19 12:23:01 +02:00
2023-09-19 12:23:01 +02:00
2018-03-19 07:41:36 -07:00
2021-03-12 07:28:31 -07:00
2019-08-26 13:58:59 -06:00
2022-03-08 19:12:33 +01:00
2021-03-12 07:28:30 -07:00
2021-01-31 08:05:46 -07:00
2018-08-24 13:20:33 -07:00
2023-12-03 07:31:21 +01:00
2021-03-30 20:21:25 -06:00
2019-05-21 10:50:45 +02:00
2022-12-31 13:14:06 +01:00
2021-03-12 07:28:31 -07:00
2022-11-10 18:15:28 +01:00
2021-06-16 06:50:26 -06:00
2022-04-27 14:38:58 +02:00
2018-02-18 05:23:25 -08:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2023-08-03 10:22:39 +02:00
2022-12-31 13:14:06 +01:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:26 -06:00
2021-03-12 07:28:31 -07:00
2019-06-19 17:09:55 +02:00
2020-01-29 20:54:51 -07:00
2021-03-30 20:21:25 -06:00
2021-03-12 07:28:31 -07:00
2021-03-30 20:21:25 -06:00
2021-04-06 09:27:30 -06:00
2019-11-01 08:50:51 -06:00
2019-05-21 10:50:45 +02:00
2021-06-24 18:49:01 -06:00
2019-05-21 11:28:46 +02:00
2019-05-21 10:50:45 +02:00
2022-12-31 13:14:06 +01:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:00 +02:00
2021-06-16 06:50:26 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2019-11-01 08:50:51 -06:00
2022-04-13 20:59:23 +02:00
2021-12-08 09:04:42 +01:00
2023-09-19 12:23:01 +02:00
2017-11-02 11:10:55 +01:00
2022-12-31 13:14:06 +01:00
2022-12-31 13:14:06 +01:00
2021-10-25 08:53:04 +09:00
2021-06-16 06:50:25 -06:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-11-01 08:50:51 -06:00
2022-12-31 13:14:06 +01:00
2021-06-16 06:50:25 -06:00
2019-11-01 08:50:51 -06:00
2019-05-21 11:28:46 +02:00
2022-12-31 13:14:06 +01:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2022-12-31 13:14:06 +01:00
2017-11-02 11:10:55 +01:00