* [PATCH] PCI: mediatek-gen3: Remove leftover mac_reset assert for Airoha EN7581 SoC.
@ 2025-01-15 17:58 Lorenzo Bianconi
2025-01-16 9:13 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Lorenzo Bianconi @ 2025-01-15 17:58 UTC (permalink / raw)
To: Ryder Lee, Jianjun Wang, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Bjorn Helgaas, Philipp Zabel, Matthias Brugger,
AngeloGioacchino Del Regno
Cc: linux-pci, linux-mediatek, linux-arm-kernel, Lorenzo Bianconi
Remove a leftover assert for mac_reset line in mtk_pcie_en7581_power_up().
This is not armful since EN7581 does not requires mac_reset and
mac_reset is not defined in EN7581 device tree.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/pci/controller/pcie-mediatek-gen3.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
index aa24ac9aaecc749b53cfc4faf6399913d20cdbf2..0f64e76e2111468e6a453889ead7fbc75804faf7 100644
--- a/drivers/pci/controller/pcie-mediatek-gen3.c
+++ b/drivers/pci/controller/pcie-mediatek-gen3.c
@@ -940,7 +940,6 @@ static int mtk_pcie_en7581_power_up(struct mtk_gen3_pcie *pcie)
*/
reset_control_bulk_assert(pcie->soc->phy_resets.num_resets,
pcie->phy_resets);
- reset_control_assert(pcie->mac_reset);
/* Wait for the time needed to complete the reset lines assert. */
msleep(PCIE_EN7581_RESET_TIME_MS);
---
base-commit: d02e16e4e05d5d2530a4836ca92318c6a6b21b01
change-id: 20250115-pcie-en7581-remove-mac_reset-d5a8e9f18dc1
Best regards,
--
Lorenzo Bianconi <lorenzo@kernel.org>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI: mediatek-gen3: Remove leftover mac_reset assert for Airoha EN7581 SoC.
2025-01-15 17:58 [PATCH] PCI: mediatek-gen3: Remove leftover mac_reset assert for Airoha EN7581 SoC Lorenzo Bianconi
@ 2025-01-16 9:13 ` Philipp Zabel
2025-01-16 10:33 ` Lorenzo Bianconi
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Zabel @ 2025-01-16 9:13 UTC (permalink / raw)
To: Lorenzo Bianconi, Ryder Lee, Jianjun Wang, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Bjorn Helgaas, Matthias Brugger, AngeloGioacchino Del Regno
Cc: linux-pci, linux-mediatek, linux-arm-kernel
On Mi, 2025-01-15 at 18:58 +0100, Lorenzo Bianconi wrote:
> Remove a leftover assert for mac_reset line in mtk_pcie_en7581_power_up().
> This is not armful since EN7581 does not requires mac_reset and
^ harmful
> mac_reset is not defined in EN7581 device tree.
>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> drivers/pci/controller/pcie-mediatek-gen3.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
> index aa24ac9aaecc749b53cfc4faf6399913d20cdbf2..0f64e76e2111468e6a453889ead7fbc75804faf7 100644
> --- a/drivers/pci/controller/pcie-mediatek-gen3.c
> +++ b/drivers/pci/controller/pcie-mediatek-gen3.c
> @@ -940,7 +940,6 @@ static int mtk_pcie_en7581_power_up(struct mtk_gen3_pcie *pcie)
> */
> reset_control_bulk_assert(pcie->soc->phy_resets.num_resets,
> pcie->phy_resets);
> - reset_control_assert(pcie->mac_reset);
Is it ok to keep the mac_reset assert in mtk_pcie_power_down() ?
> /* Wait for the time needed to complete the reset lines assert. */
> msleep(PCIE_EN7581_RESET_TIME_MS);
>
> ---
> base-commit: d02e16e4e05d5d2530a4836ca92318c6a6b21b01
I can't find this commit, which tree is it on?
regards
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI: mediatek-gen3: Remove leftover mac_reset assert for Airoha EN7581 SoC.
2025-01-16 9:13 ` Philipp Zabel
@ 2025-01-16 10:33 ` Lorenzo Bianconi
0 siblings, 0 replies; 3+ messages in thread
From: Lorenzo Bianconi @ 2025-01-16 10:33 UTC (permalink / raw)
To: Philipp Zabel
Cc: Ryder Lee, Jianjun Wang, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Bjorn Helgaas, Matthias Brugger, AngeloGioacchino Del Regno,
linux-pci, linux-mediatek, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]
> On Mi, 2025-01-15 at 18:58 +0100, Lorenzo Bianconi wrote:
> > Remove a leftover assert for mac_reset line in mtk_pcie_en7581_power_up().
> > This is not armful since EN7581 does not requires mac_reset and
> ^ harmful
ack, I will fix it.
>
> > mac_reset is not defined in EN7581 device tree.
> >
>
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> > drivers/pci/controller/pcie-mediatek-gen3.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
> > index aa24ac9aaecc749b53cfc4faf6399913d20cdbf2..0f64e76e2111468e6a453889ead7fbc75804faf7 100644
> > --- a/drivers/pci/controller/pcie-mediatek-gen3.c
> > +++ b/drivers/pci/controller/pcie-mediatek-gen3.c
> > @@ -940,7 +940,6 @@ static int mtk_pcie_en7581_power_up(struct mtk_gen3_pcie *pcie)
> > */
> > reset_control_bulk_assert(pcie->soc->phy_resets.num_resets,
> > pcie->phy_resets);
> > - reset_control_assert(pcie->mac_reset);
>
> Is it ok to keep the mac_reset assert in mtk_pcie_power_down() ?
yes, since it is in common between mtk chipset and airoha one.
reset_control_assert() just returns if rstc is NULL.
>
> > /* Wait for the time needed to complete the reset lines assert. */
> > msleep(PCIE_EN7581_RESET_TIME_MS);
> >
> > ---
> > base-commit: d02e16e4e05d5d2530a4836ca92318c6a6b21b01
>
> I can't find this commit, which tree is it on?
it is in next tree:
commit d02e16e4e05d5d2530a4836ca92318c6a6b21b01
Merge: 07eecfa5d467 9dfc6850cfa4
Author: Krzysztof Wilczyński <kwilczynski@kernel.org>
Date: Wed Jan 15 13:56:57 2025 +0000
Merge branch 'resource'
* resource:
PCI: Encourage resource request API users to supply driver name
Regards,
Lorenzo
>
> regards
> Philipp
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-16 10:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 17:58 [PATCH] PCI: mediatek-gen3: Remove leftover mac_reset assert for Airoha EN7581 SoC Lorenzo Bianconi
2025-01-16 9:13 ` Philipp Zabel
2025-01-16 10:33 ` Lorenzo Bianconi
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).