diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-06-26 17:58:37 +0900 |
|---|---|---|
| committer | Damien Le Moal <dlemoal@kernel.org> | 2026-07-03 13:44:18 +0900 |
| commit | c0ace4130e813acbabdfaa28d4e94a849c2ffdd7 (patch) | |
| tree | 4a43080d4ebd575d7e22a7f4eddaa41c0f1fa2c4 /arch/nds32/include/asm/git@git.tavy.me:linux.git | |
| parent | 533a0b940f901c15e5cbbd4b5d66e871c209e8ce (diff) | |
ata: sata_gemini: unwind clocks on IDE pinctrl errors
gemini_sata_bridge_init() prepares and enables both SATA PCLKs, then
disables them again while keeping the clocks prepared for later bridge
start and stop operations. If gemini_setup_ide_pins() fails after that,
gemini_sata_probe() returns directly and skips the existing
out_unprep_clk unwind path.
Route the IDE pinctrl failure through out_unprep_clk so the clocks
prepared by gemini_sata_bridge_init() are unprepared before probe
fails.
Fixes: d872ced29d5f ("ata: sata_gemini: Introduce explicit IDE pin control")
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'arch/nds32/include/asm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
