* Re: [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware"
[not found] <20220224151718.7679-1-kabel@kernel.org>
@ 2022-02-24 15:37 ` Lorenzo Pieralisi
0 siblings, 0 replies; 2+ messages in thread
From: Lorenzo Pieralisi @ 2022-02-24 15:37 UTC (permalink / raw)
To: Marek Behún; +Cc: pali, linux-pci, Vinod Koul, Miquel Raynal
On Thu, Feb 24, 2022 at 04:17:18PM +0100, Marek Behún wrote:
> From: Pali Rohár <pali@kernel.org>
>
> This reverts commit b0c6ae0f8948a2be6bf4e8b4bbab9ca1343289b6.
>
> Armada 3720 phy driver (phy-mvebu-a3700-comphy.c) does not return
> -EOPNOTSUPP from phy_power_on() callback anymore.
>
> So remove dead code which handles -EOPNOTSUPP return value.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Signed-off-by: Marek Behún <kabel@kernel.org>
> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> Dear Lorenzo,
>
> could you please give your Ack for this, so that Vinod can apply it
> with the rest of the comphy series?
> The series can be found at
> https://lore.kernel.org/linux-phy/20220203214444.1508-1-kabel@kernel.org/
>
> Marek
> ---
> drivers/pci/controller/pci-aardvark.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
> index 4f5b44827d21..6bae688852a5 100644
> --- a/drivers/pci/controller/pci-aardvark.c
> +++ b/drivers/pci/controller/pci-aardvark.c
> @@ -1482,9 +1482,7 @@ static int advk_pcie_enable_phy(struct advk_pcie *pcie)
> }
>
> ret = phy_power_on(pcie->phy);
> - if (ret == -EOPNOTSUPP) {
> - dev_warn(&pcie->pdev->dev, "PHY unsupported by firmware\n");
> - } else if (ret) {
> + if (ret) {
> phy_exit(pcie->phy);
> return ret;
> }
> --
> 2.34.1
>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH phy v4 0/5] Armada 3720 comphy native implementation
@ 2022-02-03 21:44 Marek Behún
2022-02-03 21:44 ` [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Marek Behún
0 siblings, 1 reply; 2+ messages in thread
From: Marek Behún @ 2022-02-03 21:44 UTC (permalink / raw)
To: Vinod Koul; +Cc: linux-phy, Kishon Vijay Abraham I, pali, Marek Behún
Hello Vinod,
this is v4 of series converting A3720 comphy to native kernel
implementation.
Tested on Turris MOX and ESPRESSObin (tested all supported PHY modes:
ethernet, PCIe, USB3, SATA).
Changes since v3:
- addressed Vinod's comments, see
https://lore.kernel.org/linux-phy/20220203223913.41e9f375@thinkpad/T/#u
- changed comment of step 12 in mvebu_a3700_comphy_ethernet_power_on()
a little
Changes since v2:
- removed device-tree changing patch, Gregory applied it on mvebu/dt64
- changed raw spin lock to ordinary spin lock
- fixed indentation of gbe_phy_init_fix
- use FIELD_PREP() macro
Changes since v1 (all changes in patch 2/6):
- refactored to use GENMASK()
- fixed various register names to conform to Functional Specification
- refactored various register names to have uniform naming
- refactored register access into one function, which decides whether
the access should be direct or indirect, so as to not have all these
checks done everywhere in the code
- moved around one register definition to have the registers sorted
according to their offset
- added comments to some register definitions
- added support for PHY reset() method
- when changing PHY mode, the driver now resets the PHY and its
registers to put the PHY in known state
- fixed the power_off() method
- added spinlock guard when accessing PHY Selector register, since it
is shared between the PHYs and so the PHY mutex is insufficient
- upon driver probe changed the calls to power_off() to reset()
The original cover letter said:
The RPC calling to ARM Trusted Firmware implementation of Armada 3720
comphy driver caused quite a number of issues (explained more in patch 2).
This series fixes those issues by reimplementing the driver to native
kernel implementation.
The last 3 commits revert commits in AHCI, USB, and PCI drivers, that were
introduced there because of those issues.
Pali Rohár (5):
phy: marvell: phy-mvebu-a3700-comphy: Remove port from driver
configuration
phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation
Revert "ata: ahci: mvebu: Make SATA PHY optional for Armada 3720"
Revert "usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada
3720"
Revert "PCI: aardvark: Fix initialization with old Marvell's Arm
Trusted Firmware"
drivers/ata/ahci.h | 2 -
drivers/ata/ahci_mvebu.c | 2 +-
drivers/ata/libahci_platform.c | 2 +-
drivers/pci/controller/pci-aardvark.c | 4 +-
drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 1350 ++++++++++++++++--
drivers/usb/host/xhci-mvebu.c | 42 -
drivers/usb/host/xhci-mvebu.h | 6 -
drivers/usb/host/xhci-plat.c | 20 +-
drivers/usb/host/xhci-plat.h | 1 -
9 files changed, 1226 insertions(+), 203 deletions(-)
--
2.34.1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware"
2022-02-03 21:44 [PATCH phy v4 0/5] Armada 3720 comphy native implementation Marek Behún
@ 2022-02-03 21:44 ` Marek Behún
0 siblings, 0 replies; 2+ messages in thread
From: Marek Behún @ 2022-02-03 21:44 UTC (permalink / raw)
To: Vinod Koul
Cc: linux-phy, Kishon Vijay Abraham I, pali, Marek Behún,
Miquel Raynal
From: Pali Rohár <pali@kernel.org>
This reverts commit b0c6ae0f8948a2be6bf4e8b4bbab9ca1343289b6.
Armada 3720 phy driver (phy-mvebu-a3700-comphy.c) does not return
-EOPNOTSUPP from phy_power_on() callback anymore.
So remove dead code which handles -EOPNOTSUPP return value.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
drivers/pci/controller/pci-aardvark.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
index 4f5b44827d21..6bae688852a5 100644
--- a/drivers/pci/controller/pci-aardvark.c
+++ b/drivers/pci/controller/pci-aardvark.c
@@ -1482,9 +1482,7 @@ static int advk_pcie_enable_phy(struct advk_pcie *pcie)
}
ret = phy_power_on(pcie->phy);
- if (ret == -EOPNOTSUPP) {
- dev_warn(&pcie->pdev->dev, "PHY unsupported by firmware\n");
- } else if (ret) {
+ if (ret) {
phy_exit(pcie->phy);
return ret;
}
--
2.34.1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-24 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220224151718.7679-1-kabel@kernel.org>
2022-02-24 15:37 ` [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Lorenzo Pieralisi
2022-02-03 21:44 [PATCH phy v4 0/5] Armada 3720 comphy native implementation Marek Behún
2022-02-03 21:44 ` [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Marek Behún
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox