]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: freescale: imx8m-pcie: cleanup reset logic
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Wed, 5 Mar 2025 14:43:15 +0000 (15:43 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 Mar 2025 19:42:37 +0000 (01:12 +0530)
commit97e8a2ff28a3dc36ca3cdc94f37359852d7e1c8b
tree42af6bd55cb7f7d5e4f3e9a204f1b4ecf73413ad
parentb02d41d884f64d22d5d5a2a4b35550f5e80bdb3d
phy: freescale: imx8m-pcie: cleanup reset logic

Remove the switch statement and base perst release on whether it is
found in the device tree. The probe function fails without the reset
property, making it mandatory. Therefore, always release reset
independent of the variant.

This does not change the behavior of the driver but reduces driver
complexity and allows for easier future modifications.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250305144355.20364-2-eichest@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c