* [PATCH net] net: ipa: fix interconnect enable bug
@ 2020-12-22 15:16 Alex Elder
2020-12-22 16:18 ` Georgi Djakov
0 siblings, 1 reply; 3+ messages in thread
From: Alex Elder @ 2020-12-22 15:16 UTC (permalink / raw)
To: davem, kuba
Cc: evgreen, cpratapa, bjorn.andersson, subashab, netdev,
linux-kernel
When the core clock rate and interconnect bandwidth specifications
were moved into configuration data, a copy/paste bug was introduced,
causing the memory interconnect bandwidth to be set three times
rather than enabling the three different interconnects.
Fix this bug.
Fixes: 91d02f9551501 ("net: ipa: use config data for clocking")
Signed-off-by: Alex Elder <elder@linaro.org>
---
drivers/net/ipa/ipa_clock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ipa/ipa_clock.c b/drivers/net/ipa/ipa_clock.c
index 9dcf16f399b7a..135c393437f12 100644
--- a/drivers/net/ipa/ipa_clock.c
+++ b/drivers/net/ipa/ipa_clock.c
@@ -115,13 +115,13 @@ static int ipa_interconnect_enable(struct ipa *ipa)
return ret;
data = &clock->interconnect_data[IPA_INTERCONNECT_IMEM];
- ret = icc_set_bw(clock->memory_path, data->average_rate,
+ ret = icc_set_bw(clock->imem_path, data->average_rate,
data->peak_rate);
if (ret)
goto err_memory_path_disable;
data = &clock->interconnect_data[IPA_INTERCONNECT_CONFIG];
- ret = icc_set_bw(clock->memory_path, data->average_rate,
+ ret = icc_set_bw(clock->config_path, data->average_rate,
data->peak_rate);
if (ret)
goto err_imem_path_disable;
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: ipa: fix interconnect enable bug
2020-12-22 15:16 [PATCH net] net: ipa: fix interconnect enable bug Alex Elder
@ 2020-12-22 16:18 ` Georgi Djakov
2020-12-23 19:36 ` Jakub Kicinski
0 siblings, 1 reply; 3+ messages in thread
From: Georgi Djakov @ 2020-12-22 16:18 UTC (permalink / raw)
To: Alex Elder, davem, kuba
Cc: evgreen, cpratapa, bjorn.andersson, subashab, netdev,
linux-kernel
On 12/22/20 17:16, Alex Elder wrote:
> When the core clock rate and interconnect bandwidth specifications
> were moved into configuration data, a copy/paste bug was introduced,
> causing the memory interconnect bandwidth to be set three times
> rather than enabling the three different interconnects.
>
> Fix this bug.
>
> Fixes: 91d02f9551501 ("net: ipa: use config data for clocking")
> Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Georgi Djakov <georgi.djakov@linaro.org>
> ---
> drivers/net/ipa/ipa_clock.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ipa/ipa_clock.c b/drivers/net/ipa/ipa_clock.c
> index 9dcf16f399b7a..135c393437f12 100644
> --- a/drivers/net/ipa/ipa_clock.c
> +++ b/drivers/net/ipa/ipa_clock.c
> @@ -115,13 +115,13 @@ static int ipa_interconnect_enable(struct ipa *ipa)
> return ret;
>
> data = &clock->interconnect_data[IPA_INTERCONNECT_IMEM];
> - ret = icc_set_bw(clock->memory_path, data->average_rate,
> + ret = icc_set_bw(clock->imem_path, data->average_rate,
> data->peak_rate);
> if (ret)
> goto err_memory_path_disable;
>
> data = &clock->interconnect_data[IPA_INTERCONNECT_CONFIG];
> - ret = icc_set_bw(clock->memory_path, data->average_rate,
> + ret = icc_set_bw(clock->config_path, data->average_rate,
> data->peak_rate);
> if (ret)
> goto err_imem_path_disable;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: ipa: fix interconnect enable bug
2020-12-22 16:18 ` Georgi Djakov
@ 2020-12-23 19:36 ` Jakub Kicinski
0 siblings, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2020-12-23 19:36 UTC (permalink / raw)
To: Georgi Djakov
Cc: Alex Elder, davem, evgreen, cpratapa, bjorn.andersson, subashab,
netdev, linux-kernel
On Tue, 22 Dec 2020 18:18:31 +0200 Georgi Djakov wrote:
> On 12/22/20 17:16, Alex Elder wrote:
> > When the core clock rate and interconnect bandwidth specifications
> > were moved into configuration data, a copy/paste bug was introduced,
> > causing the memory interconnect bandwidth to be set three times
> > rather than enabling the three different interconnects.
> >
> > Fix this bug.
> >
> > Fixes: 91d02f9551501 ("net: ipa: use config data for clocking")
> > Signed-off-by: Alex Elder <elder@linaro.org>
>
> Reviewed-by: Georgi Djakov <georgi.djakov@linaro.org>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-23 19:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-22 15:16 [PATCH net] net: ipa: fix interconnect enable bug Alex Elder
2020-12-22 16:18 ` Georgi Djakov
2020-12-23 19:36 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).