* [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
@ 2024-12-11 1:12 linux
2024-12-11 4:23 ` Damien Le Moal
2024-12-11 10:34 ` Linus Walleij
0 siblings, 2 replies; 6+ messages in thread
From: linux @ 2024-12-11 1:12 UTC (permalink / raw)
To: linus.walleij, dlemoal, cassel
Cc: p.zabel, linux-ide, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
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.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/ata/sata_gemini.c | 12 ------------
drivers/ata/sata_gemini.h | 1 -
2 files changed, 13 deletions(-)
diff --git a/drivers/ata/sata_gemini.c b/drivers/ata/sata_gemini.c
index d040799bf9cb..821ca31effe7 100644
--- a/drivers/ata/sata_gemini.c
+++ b/drivers/ata/sata_gemini.c
@@ -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;
diff --git a/drivers/ata/sata_gemini.h b/drivers/ata/sata_gemini.h
index 6f6e691d6007..b6e4a5c86e01 100644
--- a/drivers/ata/sata_gemini.h
+++ b/drivers/ata/sata_gemini.h
@@ -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
--
2.47.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
2024-12-11 1:12 [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge() linux
@ 2024-12-11 4:23 ` Damien Le Moal
2024-12-11 10:34 ` Linus Walleij
1 sibling, 0 replies; 6+ messages in thread
From: Damien Le Moal @ 2024-12-11 4:23 UTC (permalink / raw)
To: linux, linus.walleij, cassel; +Cc: p.zabel, linux-ide, linux-kernel
On 12/11/24 10:12 AM, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 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.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Applied to for-6.14. Thanks !
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
2024-12-11 1:12 [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge() linux
2024-12-11 4:23 ` Damien Le Moal
@ 2024-12-11 10:34 ` Linus Walleij
2024-12-11 21:49 ` Dr. David Alan Gilbert
1 sibling, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2024-12-11 10:34 UTC (permalink / raw)
To: linux; +Cc: dlemoal, cassel, p.zabel, linux-ide, linux-kernel
On Wed, Dec 11, 2024 at 2:12 AM <linux@treblig.org> wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 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.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
2024-12-11 10:34 ` Linus Walleij
@ 2024-12-11 21:49 ` Dr. David Alan Gilbert
2024-12-11 22:53 ` Damien Le Moal
0 siblings, 1 reply; 6+ messages in thread
From: Dr. David Alan Gilbert @ 2024-12-11 21:49 UTC (permalink / raw)
To: Linus Walleij; +Cc: dlemoal, cassel, p.zabel, linux-ide, linux-kernel
* Linus Walleij (linus.walleij@linaro.org) wrote:
> On Wed, Dec 11, 2024 at 2:12 AM <linux@treblig.org> wrote:
>
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >
> > 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.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>
> 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.
> 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>?
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
> Yours,
> Linus Walleij
--
-----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 |_______/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
2024-12-11 21:49 ` Dr. David Alan Gilbert
@ 2024-12-11 22:53 ` Damien Le Moal
2024-12-11 23:53 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 6+ messages in thread
From: Damien Le Moal @ 2024-12-11 22:53 UTC (permalink / raw)
To: Dr. David Alan Gilbert, Linus Walleij
Cc: cassel, p.zabel, linux-ide, linux-kernel
On 12/12/24 06:49, Dr. David Alan Gilbert wrote:
> * Linus Walleij (linus.walleij@linaro.org) wrote:
>> On Wed, Dec 11, 2024 at 2:12 AM <linux@treblig.org> wrote:
>>
>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>>>
>>> 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.
>>>
>>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>>
>> 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.
>
>> 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>?
>
> 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.
>
> Dave
>
>> Yours,
>> Linus Walleij
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge()
2024-12-11 22:53 ` Damien Le Moal
@ 2024-12-11 23:53 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 6+ messages in thread
From: Dr. David Alan Gilbert @ 2024-12-11 23:53 UTC (permalink / raw)
To: Damien Le Moal; +Cc: Linus Walleij, cassel, p.zabel, linux-ide, linux-kernel
* Damien Le Moal (dlemoal@kernel.org) wrote:
> On 12/12/24 06:49, Dr. David Alan Gilbert wrote:
> > * Linus Walleij (linus.walleij@linaro.org) wrote:
> >> On Wed, Dec 11, 2024 at 2:12 AM <linux@treblig.org> wrote:
> >>
> >>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >>>
> >>> 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.
> >>>
> >>> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> >>
> >> 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.
> >
> >> 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>?
> >
> > 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: <20241211235250.136985-1-linux@treblig.org>
Thanks,
Dave
> >
> > Dave
> >
> >> Yours,
> >> Linus Walleij
>
>
> --
> Damien Le Moal
> Western Digital Research
--
-----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 |_______/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-12-11 23:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 1:12 [PATCH] ata: sata_gemini: Remove unused gemini_sata_reset_bridge() linux
2024-12-11 4:23 ` Damien Le Moal
2024-12-11 10:34 ` Linus Walleij
2024-12-11 21:49 ` Dr. David Alan Gilbert
2024-12-11 22:53 ` Damien Le Moal
2024-12-11 23:53 ` Dr. David Alan Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox