Re: [PATCH v2 0/3] PCI/MSI: Remove arch_msi_check_device()

2014-09-17 Thread Thomas Petazzoni
evice() For the entire series: Tested-by: Thomas Petazzoni I tested on the Armada XP GP platform, which is particularly affected by PATCH 2/3, as it is using the irq-armada-370-xp irqchip driver. I tested with an igb PCIe NIC that supports MSI and MSI-X, and I verified that MSI-X is still reject

[PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-01 Thread Thomas Petazzoni
6 PCI code. Signed-off-by: Thomas Petazzoni Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: x...@kernel.org C

[PATCHv4 03/11] pci: remove ARCH_SUPPORTS_MSI kconfig option

2013-07-01 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H

Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-01 Thread Thomas Petazzoni
Dear Michael Ellerman, On Tue, 02 Jul 2013 10:53:16 +1000, Michael Ellerman wrote: > On Mon, 2013-07-01 at 15:42 +0200, Thomas Petazzoni wrote: > > Until now, the MSI architecture-specific functions could be overloaded > > using a fairly complex set of #define and compile-time &

Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-05 Thread Thomas Petazzoni
e, will do. Would it be possible to get Tested-by and/or Acked-by from the different architecture maintainers affected by PATCH 02/11 and PATCH 03/11 ? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. h

Re: [PATCHv4 03/11] pci: remove ARCH_SUPPORTS_MSI kconfig option

2013-07-05 Thread Thomas Petazzoni
hes (if needed, I can detail those build time dependencies to help figuring out the best strategy). Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCHv4 03/11] pci: remove ARCH_SUPPORTS_MSI kconfig option

2013-07-06 Thread Thomas Petazzoni
o address Bjorn's last > comments? Yes, indeed. I was waiting to see if Thierry Redding would give some additional feedback on Bjorn's comment, but if he doesn't, I'll resend an updated version, most likely next week. Thanks! Thomas -- Thomas Petazzoni, Free Electrons K

[PATCHv5 02/11] PCI: use weak functions for MSI arch-specific functions

2013-07-15 Thread Thomas Petazzoni
6 PCI code. Signed-off-by: Thomas Petazzoni Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: x...@kernel.org C

[PATCHv5 03/11] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-07-15 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H

[PATCHv6 02/13] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-08-01 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H

[PATCHv6 01/13] PCI: use weak functions for MSI arch-specific functions

2013-08-01 Thread Thomas Petazzoni
6 PCI code. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter An

[PATCHv7 02/13] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-08-07 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Tested-by: Daniel Price Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s

[PATCHv7 01/13] PCI: use weak functions for MSI arch-specific functions

2013-08-07 Thread Thomas Petazzoni
irqs(), as the default behavior is needed by x86 PCI code. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Tested-by: Daniel Price Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com C

[PATCHv8 01/10] PCI: use weak functions for MSI arch-specific functions

2013-08-08 Thread Thomas Petazzoni
irqs(), as the default behavior is needed by x86 PCI code. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Tested-by: Daniel Price Tested-by: Thierry Reding Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens

[PATCHv8 02/10] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-08-08 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Tested-by: Daniel Price Tested-by: Thierry Reding Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux

[PATCHv9 01/10] PCI: use weak functions for MSI arch-specific functions

2013-08-09 Thread Thomas Petazzoni
irqs(), as the default behavior is needed by x86 PCI code. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Acked-by: Benjamin Herrenschmidt Tested-by: Daniel Price Tested-by: Thierry Reding Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin S

[PATCHv9 02/10] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-08-09 Thread Thomas Petazzoni
useless, and this patch gets rid of it. Signed-off-by: Thomas Petazzoni Acked-by: Bjorn Helgaas Acked-by: Benjamin Herrenschmidt Tested-by: Daniel Price Tested-by: Thierry Reding Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Martin Schwidefsky Cc

Re: pci and pcie device-tree binding - range No cells

2012-12-10 Thread Thomas Petazzoni
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/136711.html. Thanks a lot for your comments, Thomas [1] that I hope to extend to cover previous Marvell SoCs as well, they work basically the same way -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-ti

Re: pci and pcie device-tree binding - range No cells

2012-12-12 Thread Thomas Petazzoni
nterfaces, but often, only a few of them are used. So I don't want in the Device Tree to over-allocate hundreds of MB of physical address space if it's not useful. PCIe is dynamic, address window configuration is dynamic. And we should hardco

Re: [PATCH 3/5] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-01-29 Thread Thomas Petazzoni
n_mdio_remove(struct platform_device *pdev) > struct mii_bus *bus = platform_get_drvdata(pdev); > struct orion_mdio_dev *dev = bus->priv; > > + writel(0, dev->regs + MVMDIO_ERR_INT_MASK); > + free_irq(dev->err_interrupt, dev); free_irq() not

Re: [PATCH 1/5] net: mvmdio: unmap base register address at driver removal

2013-01-29 Thread Thomas Petazzoni
_and_ioremap() instead, in order to get automatic unmap on error and in the ->remove() path? But maybe it won't work because this memory range is claimed both by the MDIO driver and the Ethernet driver itself. In that case, you could use devm_ioremap(). Best regards, Thomas -- Thomas Petaz

Re: [PATCH 2/5] net: mvmdio: rename base register cookie from smireg to regs

2013-01-29 Thread Thomas Petazzoni
ingle register of 4 bytes. No > functionnal code change introduced. > > Signed-off-by: Florian Fainelli Acked-by: Thomas Petazzoni -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training

Re: [PATCH 4/5] net: mvmdio: allow Device Tree and platform device to coexist

2013-01-29 Thread Thomas Petazzoni
dev_err(&pdev->dev, "No SMI register address given\n"); > + ret = -ENODEV; > + goto out_free; > + } > + > + dev->err_interrupt = platform_get_irq(pdev, 0); > + } I think you can d

Re: [PATCH 5/5] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-01-29 Thread Thomas Petazzoni
ink the whole point of this work should be to get rid of this MV643XX_ETH_SHARED_NAME driver, no? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com _

Re: [PATCH 5/5] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-01-29 Thread Thomas Petazzoni
do it step by step. Yes, agreed. But I think it would be good to have followed patches that progressively get rid of the shared driver thing, as it will help in bringing a proper DT binding in the mv643xx_eth driver. But it certainly doesn't need to be part of this specific patch. Thank

Re: [PATCH 4/4 v2] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-15 Thread Thomas Petazzoni
e mv643xx_eth driver should probably return -EPROBE_DEFER when it can't find its PHY so that its ->probe() operation gets called once again by the kernel when other drivers (including mvmdio) have been probed. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-tim

Re: [PATCH 0/4 v3] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-22 Thread Thomas Petazzoni
net: mvmdio: rename base register cookie from smireg to regs > net: mvmdio: enhance driver to support SMI error/done interrupts > mv643xx_eth: convert to use the Marvell Orion MDIO driver For the entire series: Tested-by: Thomas Petazzoni tested on: * Armada XP DB, DT-based, which use

Re: [PATCH 24/34] PCI: use weak functions for MSI arch-specific functions

2013-11-21 Thread Thomas Petazzoni
ince 3.12: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/pci/msi.c?id=4287d824f265451cd10f6d20266b27a207a6cdd7. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://fre

Re: [PATCH 13/36] dt-bindings: arm: Convert PMU binding to json-schema

2018-11-08 Thread Thomas Petazzoni
interrupt controller. However the Armada 38x has both a GIC and a MPIC, and indeed the parent interrupts of the MPIC towards the GIC is: interrupts = ; Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com

Re: [PATCH v2 3/4] PCI: mvebu: Include explicitly

2022-10-25 Thread Thomas Petazzoni
ly to remove this implicit dependency. > > Signed-off-by: Bjorn Helgaas > --- > drivers/pci/controller/pci-mvebu.c | 1 + > 1 file changed, 1 insertion(+) Acked-by: Thomas Petazzoni Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com

Re: [PATCH net 11/16] net: ethernet: marvell: mvneta: fix fixed-link phydev leaks

2016-11-28 Thread Thomas Petazzoni
> Signed-off-by: Johan Hovold > --- > drivers/net/ethernet/marvell/mvneta.c | 5 + > 1 file changed, 5 insertions(+) Reviewed-by: Thomas Petazzoni Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com