ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
PATCH 1/1 ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge() was added in 2017 by the initial commit be4e456ed3a5 ("ata: Add driver for Faraday Technology FTIDE010") but has never been used.
Remove it.
--- drivers/ata/sata_gemini.c | 12 ------------ drivers/ata/sata_gemini.h | 1 - 2 files changed, 13 deletions(-)
drivers/ata/sata_gemini.c +0 -12
@@ -224,18 +224,6 @@ void gemini_sata_stop_bridge(struct sata_gemini *sg, unsigned int bridge) }EXPORT_SYMBOL (gemini_sata_stop_bridge); -int gemini_sata_reset_bridge (struct sata_gemini *sg, -unsigned int bridge) -{ -if (bridge ==0 ) -reset_control_reset (sg->sata0_reset); -else -reset_control_reset (sg->sata1_reset); -msleep (10 ); -return gemini_sata_setup_bridge (sg, bridge); -} -EXPORT_SYMBOL (gemini_sata_reset_bridge); -static int gemini_sata_bridge_init (struct sata_gemini *sg) {struct device *dev = sg->dev;
drivers/ata/sata_gemini.h +0 -1
@@ -17,6 +17,5 @@ bool gemini_sata_bridge_enabled(struct sata_gemini *sg, bool is_ata1);enum gemini_muxmode gemini_sata_get_muxmode (struct sata_gemini *sg);int gemini_sata_start_bridge (struct sata_gemini *sg,unsigned int bridge);void gemini_sata_stop_bridge (struct sata_gemini *sg,unsigned int bridge); -int gemini_sata_reset_bridge (struct sata_gemini *sg,unsigned int bridge);#endif
Signature · 1 line
2.47.1
Quoted 9 lines · On 12/11/24 10:12 AM, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge()was added in 2017 by the initial commitbe4e456ed3a5("ata: Add driver for Faraday Technology FTIDE010") but has never been used.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Applied to for-6.14. Thanks !
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 9 lines · On Wed, Dec 11, 2024 at 2:12 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge()was added in 2017 by the initial commitbe4e456ed3a5("ata: Add driver for Faraday Technology FTIDE010") but has never been used.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Right it was never used because the corresponding reset in the low-level PATA driver didn't work so I patched it out before submitting.
But should you not also remove sata0_reset and sata1_reset from struct sata_gemini and the code fetching the two reset lines? And even #include <linux/reset.h>?
Yours,
Linus Walleij
Quoted 8 lines · * Linus Walleij ([email protected]) wrote:
Quoted 6 lines · On Wed, Dec 11, 2024 at 2:12 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge()was added in 2017 by the initial commitbe4e456ed3a5("ata: Add driver for Faraday Technology FTIDE010") but has never been used.
Quoted 7 lines
Quoted 3 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Right it was never used because the corresponding reset in the low-level PATA driver didn't work so I patched it out before submitting.
Ah right.
Quoted 3 lines
But should you not also remove
sata0_resetandsata1_resetfrom structsata_geminiand the code fetching the two reset lines? And even #include <linux/reset.h>?
Oh I see, I was just looking for entirely unreferenced functions but that takes a little more following to notice.
I'm happy to do that; are you OK with it as a follow up patch or do you want a v2? (And can you test it, I don't have the hardware).
Dave
Quoted 2 lines
Yours,
Linus Walleij
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Damien Le Moal
maintainerQuoted 23 lines · Dr. David Alan Gilbert
Quoted 8 lines · * Linus Walleij ([email protected]) wrote:
Quoted 6 lines · On Wed, Dec 11, 2024 at 2:12 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge()was added in 2017 by the initial commitbe4e456ed3a5("ata: Add driver for Faraday Technology FTIDE010") but has never been used.Quoted 7 lines
Quoted 3 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Right it was never used because the corresponding reset in the low-level PATA driver didn't work so I patched it out before submitting.
Ah right.
Quoted 3 lines
But should you not also remove
sata0_resetandsata1_resetfrom structsata_geminiand the code fetching the two reset lines? And even #include <linux/reset.h>?
Quoted 5 lines
Oh I see, I was just looking for entirely unreferenced functions but that takes a little more following to notice.
I'm happy to do that; are you OK with it as a follow up patch or do you want a v2? (And can you test it, I don't have the hardware).
I already applied your previous patch. But I can replace it. So either an incremental patch or a v2 is fine with me. Thanks.
Quoted 5 lines
Dave
Quoted 2 lines
Yours,
Linus Walleij
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 24 lines · * Damien Le Moal ([email protected]) wrote:
Quoted 23 lines · Dr. David Alan Gilbert
Quoted 8 lines · * Linus Walleij ([email protected]) wrote:
Quoted 6 lines · On Wed, Dec 11, 2024 at 2:12 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gemini_sata_reset_bridge()was added in 2017 by the initial commitbe4e456ed3a5("ata: Add driver for Faraday Technology FTIDE010") but has never been used.Quoted 7 lines
Quoted 3 lines
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Right it was never used because the corresponding reset in the low-level PATA driver didn't work so I patched it out before submitting.
Ah right.
Quoted 3 lines
But should you not also remove
sata0_resetandsata1_resetfrom structsata_geminiand the code fetching the two reset lines? And even #include <linux/reset.h>?
Quoted 8 lines
Quoted 5 lines
Oh I see, I was just looking for entirely unreferenced functions but that takes a little more following to notice.
I'm happy to do that; are you OK with it as a follow up patch or do you want a v2? (And can you test it, I don't have the hardware).
I already applied your previous patch. But I can replace it. So either an incremental patch or a v2 is fine with me. Thanks.
Follow up patch posted as
Subject: [PATCH] ata: sata_gemini: Remove remaining reset glue
Date: Wed, 11 Dec 2024 23:52:50 +0000
Message-ID: <[email protected]>
Thanks,
Dave
Quoted 11 lines
Quoted 6 lines
Dave
Quoted 2 lines
Yours,
Linus WalleijSignature · 2 lines
Damien Le Moal Western Digital Research
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/