Re: [PATCH 2/2] serial: of_serial: Handle fifosize property

2013-03-21 Thread Ley Foon Tan
On Thu, 2013-03-21 at 12:48 +0200, Heikki Krogerus wrote: > fifosize property is already used with a number of serial > devices. This should reduce the need for extra types in > 8250.c just in case the fifosize differs from the standard. > > Signed-off-by: Heikki Krogerus > --- > Documentation/d

Re: [PATCH] of/fdt: Add FDT address translation

2013-06-14 Thread Ley Foon Tan
Any comment or feedback for this patch? On Fri, 2013-05-24 at 17:36 +0800, Ley Foon Tan wrote: > This patch adds address translation to fdt. It is needed when the early > console is connected to a simple-bus (bridge) that has address translation > enabled. > > Walter Goossens

Re: [PATCH 2/2] serial: of_serial: Handle fifosize property

2013-03-21 Thread Ley Foon Tan
On Thu, 2013-03-21 at 15:24 +0200, Heikki Krogerus wrote: > Hi, > > On Thu, Mar 21, 2013 at 07:41:39PM +0800, Ley Foon Tan wrote: > > On Thu, 2013-03-21 at 12:48 +0200, Heikki Krogerus wrote: > > > + /* Check for fifo size */ > > > + if (of_property_rea

Re: [PATCHv2 2/2] serial: of_serial: Handle fifo-size property

2013-03-22 Thread Ley Foon Tan
On Fri, 2013-03-22 at 10:05 +0200, Heikki Krogerus wrote: > This will reduce the need for extra types in 8250.c just > in case the fifo size differs from the standard. Besides the fifo size, we need to have hardware flow control setting from device tree as well. Thanks. > > Signed-off-by: Heikki K

[PATCH 1/1] drivers/misc: Add Altera System ID driver

2013-03-03 Thread Ley Foon Tan
This patch is to add Altera System ID driver. User can obtain the system ID and timestamp of the system by reading the sysfs entry. Usage: cat /sys/bus/platform/devices/[addr].sysid/sysid/id cat /sys/bus/platform/devices/[addr].sysid/sysid/timestamp Signed-off-by: Ley Foon Tan

Re: [PATCH 1/1] drivers/misc: Add Altera System ID driver

2013-03-04 Thread Ley Foon Tan
On Mon, 2013-03-04 at 11:44 +0800, Greg Kroah-Hartman wrote: > On Mon, Mar 04, 2013 at 03:32:19AM +, Arnd Bergmann wrote: > > On Monday 04 March 2013, Ley Foon Tan wrote: > > > This patch is to add Altera System ID driver. > > > User can obtain the system ID and

Re: [PATCH 1/1] drivers/misc: Add Altera System ID driver

2013-03-05 Thread Ley Foon Tan
On Mon, 2013-03-04 at 12:55 +, Arnd Bergmann wrote: > On Monday 04 March 2013, Ley Foon Tan wrote: > > This IP core is not in the SoC. This core is in the FPGA and can be > > accessed by the Nios II processor or accessed by SOCFPGA processor (ARM > > based) via its inte

Linux kernel support -O0 optimization flag?

2013-04-15 Thread Ley Foon Tan
Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as below. Is the Linux kernel support -O0 optimization flag? Note, I have tried 2 architecture compilers and got the same error. In function 'zap_pmd_range', inlined from 'zap_pud_range' at mm/memory.c:1288:8, inli

Re: Linux kernel support -O0 optimization flag?

2013-04-15 Thread Ley Foon Tan
On Mon, 2013-04-15 at 13:16 +0200, richard -rw- weinberger wrote: > No. If I'm not mistaken we need this to make sure that the compiler > inlines some functions. > > In your case the compiler failed to compute the BUILD_BUG() macro correctly. > It depends also on optimization. > Thank you. So, t

[PATCH] of/fdt: Add FDT address translation

2013-05-24 Thread Ley Foon Tan
enhancements on translation functions. Reviewed-by: Walter Goossens Signed-off-by: Ley Foon Tan --- drivers/of/fdt.c | 188 include/linux/of_fdt.h |2 + 2 files changed, 190 insertions(+), 0 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of

Generic syscall ABI support

2013-03-27 Thread Ley Foon Tan
Need advise regarding the generic syscall ABI support. We are planning to upstream our Nios II kernel (arch/nios2) to mainline. But it doesn't support generic syscall ABI yet (It requires an updated Glibc port as well). The question is, is it a requirement for new arch to support generic syscall

Re: Generic syscall ABI support

2013-03-28 Thread Ley Foon Tan
On Thu, 2013-03-28 at 07:44 +, Arnd Bergmann wrote: > Yes, absolutely. What a couple of the previous architectures have done is > to keep out of tree patches for their old ABI for a while, and to submit > only code that follows the generic ABI upstream. Usually it doesn't take > long for users

Re: Generic syscall ABI support

2013-03-28 Thread Ley Foon Tan
On Thu, 2013-03-28 at 10:40 +, Arnd Bergmann wrote: > On Thursday 28 March 2013, Ley Foon Tan wrote: > > We will working on generic ABI for kernel and Glibc. This might take > > some times. > > Ok. Don't let that hold you up from submitting the kernel p

Re: Generic syscall ABI support

2013-03-29 Thread Ley Foon Tan
On Thu, 2013-03-28 at 21:53 -0700, H. Peter Anvin wrote: > On 03/28/2013 09:41 PM, Rob Landley wrote: > > > > You don't need a new glibc port, you need a new klibc or musl port. > > > > http://www.openwall.com/lists/musl/2012/07/08/1 > > > > Way less work than getting glibc working for your ba

[PATCH] tty/serial: Add support for Altera serial port

2013-03-06 Thread Ley Foon Tan
Add support for Altera 8250/16550 compatible serial port. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/tty/serial/of-serial.txt |3 ++ drivers/tty/serial/8250/8250.c | 23 +++- drivers/tty/serial/of_serial.c |6

Re: [PATCH 1/1] drivers/misc: Add Altera System ID driver

2013-03-08 Thread Ley Foon Tan
On Tue, 2013-03-05 at 21:59 +, Arnd Bergmann wrote: > On Tuesday 05 March 2013, Ley Foon Tan wrote: > > The sysid give the unique system ID and system generation timestamp of > > the system. > > > > CASE 1: > > SOCFPGA SoC + Sysid component in FPGA > >

Re: [PATCH 0/2] PCI: altera: fix link retrain

2016-07-21 Thread Ley Foon Tan
On Tue, Jul 12, 2016 at 6:19 PM, Ley Foon Tan wrote: > > On Tue, Jun 21, 2016 at 4:53 PM, Ley Foon Tan wrote: > > > > This 2 patches fix the issue before and after retrain link. > > > > Ley Foon Tan (2): > > PCI: altera: check link status before retrain link

[PATCH 1/2] PCI: altera: check link status before retrain link

2016-06-21 Thread Ley Foon Tan
Checking for link up status before retrain link. Note, moves altera_pcie_link_is_up() and its dependency functions to top of file. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff

[PATCH 2/2] PCI: altera: Polling for link up status after retrain the link

2016-06-21 Thread Ley Foon Tan
Some PCIe devices take longer time to reach link up state after retrain. This patch polling for link up status after retrain the link. This is to make sure the link is stable and up before we access to configuration space registers after this. Signed-off-by: Ley Foon Tan --- drivers/pci/host

[PATCH 0/2] PCI: altera: fix link retrain

2016-06-21 Thread Ley Foon Tan
This 2 patches fix the issue before and after retrain link. Ley Foon Tan (2): PCI: altera: check link status before retrain link PCI: altera: Polling for link up status after retrain the link drivers/pci/host/pcie-altera.c | 48 +++--- 1 file changed, 31

Re: [PATCH v4 0/2] PCI: altera: Retrain link in rootport mode only

2016-08-31 Thread Ley Foon Tan
On Fri, Aug 26, 2016 at 9:47 AM, Ley Foon Tan wrote: > Altera PCIe IP can be configured as rootport or device and they might have > same vendor ID. It will cause the system hang issue if Altera PCIe is in > endpoint mode and work with other PCIe rootport that from other vendors. > &

Re: [PATCH v2] PCI: altera: Retrain link in rootport mode only

2016-08-24 Thread Ley Foon Tan
On Mon, Aug 22, 2016 at 11:47 PM, Bjorn Helgaas wrote: > On Fri, Aug 19, 2016 at 04:24:38PM +0800, Ley Foon Tan wrote: >> Altera PCIe IP can be configured as rootport or device and they might have >> same vendor ID. It will cause the system hang issue if Altera PCIe is in >&

Re: [PATCH v2] PCI: altera: Retrain link in rootport mode only

2016-08-24 Thread Ley Foon Tan
On Thu, Aug 25, 2016 at 1:54 AM, Bjorn Helgaas wrote: > [+cc Ray, Scott, Jon, bcm-kernel-feedback-list] > > On Wed, Aug 24, 2016 at 03:07:52PM +0800, Ley Foon Tan wrote: >> On Mon, Aug 22, 2016 at 11:47 PM, Bjorn Helgaas wrote: >> > On Fri, Aug 19, 2016 at 04:24:38PM +

[PATCH v3] PCI: altera: Retrain link in rootport mode only

2016-08-24 Thread Ley Foon Tan
_altera_pcie_cfg_read() and _altera_pcie_cfg_write() to use struct altera_pcie as argument instead of struct pci_bus. Signed-off-by: Ley Foon Tan --- v2: change to check PCIe type is PCI_EXP_TYPE_ROOT_PORT v3: Move retrain function to before pci_scan_root_bus and remove _FIXUP --- drivers/pci/host

Re: [PATCH v3] PCI: altera: Retrain link in rootport mode only

2016-08-25 Thread Ley Foon Tan
On Thu, Aug 25, 2016 at 9:56 PM, Bjorn Helgaas wrote: > On Thu, Aug 25, 2016 at 01:59:56PM +0800, Ley Foon Tan wrote: >> Altera PCIe IP can be configured as rootport or device and they might have >> same vendor ID. It will cause the system hang issue if Altera PCIe is in >> e

[PATCH v4 2/2] PCI: altera: Move retrain from _FIXUP to altera_pcie_host_init()

2016-08-25 Thread Ley Foon Tan
-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 151 + 1 file changed, 91 insertions(+), 60 deletions(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 34e6258..4ca50a2 100644 --- a/drivers/pci/host/pcie-altera.c

[PATCH v4 0/2] PCI: altera: Retrain link in rootport mode only

2016-08-25 Thread Ley Foon Tan
_FIXUP to altera_pcie_host_init(). History: v2: change to check PCIe type is PCI_EXP_TYPE_ROOT_PORT v3: Move retrain function to before pci_scan_root_bus and remove _FIXUP v4: Split patch to 2 patches Ley Foon Tan (2): PCI: altera: Rework configs accessors PCI: altera: Move retrain from

Re: [Nios2-dev] [PATCH] nios2: use of_property_read_bool

2016-08-25 Thread Ley Foon Tan
On Wed, Aug 10, 2016 at 8:27 PM, Tobias Klauser wrote: > Use of_property_read_bool instead of open-coding it as fpcu_has. Convert > the members of struct cpuinfo from u32 to bool accordingly as they are > only used as boolean anyhow. > > Signed-off-by: Tobias Klauser Acked-b

[PATCH v4 1/2] PCI: altera: Rework configs accessors

2016-08-25 Thread Ley Foon Tan
Rework configs accessors so a future patch can use them in _probe() with struct altera_pcie instead of struct pci_bus. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 64 +++--- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a

[PATCH v6 0/6] Altera PCIe host controller driver with MSI support

2015-09-01 Thread Ley Foon Tan
or ID [1]: https://lkml.org/lkml/2015/7/23/172 History: --- [v1]: https://lkml.org/lkml/2015/7/28/395 [v2]: https://lkml.org/lkml/2015/7/31/267 [v3]: http://www.kernelhub.org/?msg=811940&p=2 [v4]: https://lkml.org/lkml/2015/8/17/141 [v5]: https://lkml.org/lkml/2015/8/25/238 Ley Foon Tan (6): arm

[PATCH v6 1/6] arm: add msi.h to Kbuild

2015-09-01 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v6 2/6] pci: add Altera PCI vendor ID

2015-09-01 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index fcff8f8..9e62bcc 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

[PATCH v6 3/6] pci:host: Add Altera PCIe host controller driver

2015-09-01 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 593 + 3 files changed, 602 insertions(+) create mode

[PATCH v6 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-09-01 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v6 4/6] pci: altera: Add Altera PCIe MSI driver

2015-09-01 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

[PATCH v6 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-09-01 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b60e2b2..d70fe18 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7780,6 +7780,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

Re: [PATCH v8 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-13 Thread Ley Foon Tan
On Mon, Oct 12, 2015 at 8:03 PM, Arnd Bergmann wrote: > > On Friday 09 October 2015 18:15:40 Bjorn Helgaas wrote: > > > > I don't know if this should be a kernel taint, a simple warning in > > dmesg, or what. I guess the tainting mechanism is probably too > > general-purpose for this, and add_tai

[PATCH v9 0/6] Altera PCIe host controller driver with MSI support

2015-10-13 Thread Ley Foon Tan
/31/267 [v3]: http://www.kernelhub.org/?msg=811940&p=2 [v4]: https://lkml.org/lkml/2015/8/17/141 [v5]: https://lkml.org/lkml/2015/8/25/238 [v6]: https://lkml.org/lkml/2015/9/1/177 [v7]: https://lkml.org/lkml/2015/9/20/193 [v8]: http://www.kernelhub.org/?msg=853553&p=2 Ley Foon Tan (6): arm

[PATCH v9 2/6] pci: add Altera PCI vendor ID

2015-10-13 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

[PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-13 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 592 + 3 files changed, 600

[PATCH v9 4/6] pci: altera: Add Altera PCIe MSI driver

2015-10-13 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

[PATCH v9 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-13 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5f46784..0f55f38 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7943,6 +7943,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v9 1/6] arm: add msi.h to Kbuild

2015-10-13 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v9 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-13 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v2 1/4] asm-generic: add pci required defines and functions

2015-10-13 Thread Ley Foon Tan
Add the generic #define and functions that required by the PCI framework. Architecture pci.h can overwrite with their implementation if needed. Signed-off-by: Ley Foon Tan --- include/asm-generic/pci.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a

[PATCH v2 0/4] Add PCI support on nios2 architecture

2015-10-13 Thread Ley Foon Tan
set IO_SPACE_LIMIT to 0x - nios2: remove arch/nios2/include/asm/pci.h and use asm-generic pci.h - pci: add include to pci.c - asm-generic: add pci generic functions/defines to pci.h History --- [v1]: https://lkml.org/lkml/2015/9/22/44 Ley Foon Tan (4): asm-generic: add pci required defi

[PATCH v2 2/4] pci: add include

2015-10-13 Thread Ley Foon Tan
Include explicitly, it depends on architecture's pci.h to include it before this. It cause compilation error when we move to asm-generic pci. Signed-off-by: Ley Foon Tan --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c

[PATCH v2 3/4] PCI: Build setup-irq.o for nios2

2015-10-13 Thread Ley Foon Tan
nios2 requires setup-irq.o to provide pci_fixup_irqs() implementation. Signed-off-by: Ley Foon Tan --- drivers/pci/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index be3f631..282b1b4 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci

[PATCH v2 4/4] nios2: Add architectural support for PCIe

2015-10-13 Thread Ley Foon Tan
This patch add pcie support on nios2 platform. Signed-off-by: Ley Foon Tan --- arch/nios2/Kconfig| 21 + arch/nios2/include/asm/Kbuild | 1 + arch/nios2/include/asm/io.h | 12 ++-- arch/nios2/kernel/Makefile| 1 + arch/nios2/kernel/pci.c

Re: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-14 Thread Ley Foon Tan
On Wed, Oct 14, 2015 at 4:20 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 10:41:29 Ley Foon Tan wrote: >> +static int altera_pcie_remove(struct platform_device *pdev) >> +{ >> + struct altera_pcie *pcie = platform_get_drvdata(pdev); >> + >> +

Re: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-14 Thread Ley Foon Tan
On Wed, Oct 14, 2015 at 5:09 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 16:32:25 Ley Foon Tan wrote: >> On Wed, Oct 14, 2015 at 4:20 PM, Arnd Bergmann wrote: >> > On Wednesday 14 October 2015 10:41:29 Ley Foon Tan wrote: >> >> +static int altera_pcie

Re: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-14 Thread Ley Foon Tan
On Wed, Oct 14, 2015 at 5:36 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 17:28:45 Ley Foon Tan wrote: >> On Wed, Oct 14, 2015 at 5:09 PM, Arnd Bergmann wrote: >> > On Wednesday 14 October 2015 16:32:25 Ley Foon Tan wrote: >> >> On Wed, Oct 14, 2015 at

Re: [PATCH v6 3/6] pci:host: Add Altera PCIe host controller driver

2015-09-08 Thread Ley Foon Tan
On Tue, Sep 8, 2015 at 5:19 PM, Lorenzo Pieralisi wrote: > On Fri, Sep 04, 2015 at 09:29:14AM +0100, Ley Foon Tan wrote: >> On Wed, Sep 2, 2015 at 12:33 AM, Lorenzo Pieralisi >> wrote: > > [...] > >> > > +static bool altera_pcie_v

[GIT PULL] arch/nios2 update for 4.3-rc1

2015-09-09 Thread Ley Foon Tan
pdate nios2 git repo Bernd Weiberg (2): nios2: fixed variable imm16 to s16 nios2: remove unused statistic counters Chee Nouk Phoon (2): nios2: Add Max10 device tree nios2: add Max10 defconfig Ley Foon Tan (1

Re: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-16 Thread Ley Foon Tan
On Wed, Oct 14, 2015 at 9:32 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 18:01:46 Ley Foon Tan wrote: >> On Wed, Oct 14, 2015 at 5:36 PM, Arnd Bergmann wrote: >> > On Wednesday 14 October 2015 17:28:45 Ley Foon Tan wrote: >> >> On Wed, Oct 14, 2015 at

Re: [PATCH v2 0/4] Add PCI support on nios2 architecture

2015-10-21 Thread Ley Foon Tan
On Thu, Oct 22, 2015 at 4:44 AM, Bjorn Helgaas wrote: > Hi Ley, > > I'm ignoring this series for now because of the build errors reported by > the kbuild test robot. > > Bjorn > Hi Bjorn I'm working on the newer version to fix the build errors. Thanks. Regards Ley Foon -- To unsubscribe from thi

[PATCH v11 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-22 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b8577ad9..96b9fac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7958,6 +7958,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v11 2/6] pci: add Altera PCI vendor ID

2015-10-22 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

[PATCH v11 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-22 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v11 0/6] Altera PCIe host controller driver with MSI support

2015-10-22 Thread Ley Foon Tan
v10]: https://lkml.org/lkml/2015/10/19/139 Ley Foon Tan (6): arm: add msi.h to Kbuild pci: add Altera PCI vendor ID pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI driver Documentation: dt-bindings: pci: altera pcie device tree binding MAINTAINERS: Add Alte

[PATCH v11 4/6] pci: altera: Add Altera PCIe MSI driver

2015-10-22 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

[PATCH v11 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-22 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 579 + 3 files changed, 588

[PATCH v11 1/6] arm: add msi.h to Kbuild

2015-10-22 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

Re: [PATCH v6 3/6] pci:host: Add Altera PCIe host controller driver

2015-09-04 Thread Ley Foon Tan
On Wed, Sep 2, 2015 at 12:33 AM, Lorenzo Pieralisi wrote: > > On Tue, Sep 01, 2015 at 11:30:05AM +0100, Ley Foon Tan wrote: > > [...] > > > +static void altera_pcie_retrain(struct pci_dev *dev) > > +{ > > + u16 linkcap, linkstat; > > + > > +

[PATCH v10 2/6] pci: add Altera PCI vendor ID

2015-10-19 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

[PATCH v10 1/6] arm: add msi.h to Kbuild

2015-10-19 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v10 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-19 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b8577ad9..96b9fac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7958,6 +7958,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v10 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-19 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v10 4/6] pci: altera: Add Altera PCIe MSI driver

2015-10-19 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

[PATCH v10 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-19 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 581 + 3 files changed, 589

[PATCH v10 0/6] Altera PCIe host controller driver with MSI support

2015-10-19 Thread Ley Foon Tan
/20/193 [v8]: http://www.kernelhub.org/?msg=853553&p=2 [v9]: https://lkml.org/lkml/2015/10/13/998 Ley Foon Tan (6): arm: add msi.h to Kbuild pci: add Altera PCI vendor ID pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI driver Documentation: dt-bi

Re: [PATCH v11 2/6] pci: add Altera PCI vendor ID

2015-10-22 Thread Ley Foon Tan
On Fri, Oct 23, 2015 at 6:13 AM, Bjorn Helgaas wrote: > On Thu, Oct 22, 2015 at 05:27:27PM +0800, Ley Foon Tan wrote: >> Signed-off-by: Ley Foon Tan >> --- >> include/linux/pci_ids.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/include/li

Re: [PATCH v11 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-22 Thread Ley Foon Tan
On Fri, Oct 23, 2015 at 1:31 PM, Bjorn Helgaas wrote: > Hi Ley, > > On Thu, Oct 22, 2015 at 05:27:28PM +0800, Ley Foon Tan wrote: >> This patch adds the Altera PCIe host controller driver. > >> +static void altera_pcie_fixups(struct pci_bus *bus) >> +

[PATCH v12 1/6] arm: add msi.h to Kbuild

2015-10-23 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v12 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-23 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 580 + 3 files changed, 589

[PATCH v12 0/6] Altera PCIe host controller driver with MSI support

2015-10-23 Thread Ley Foon Tan
]: http://www.kernelhub.org/?msg=853553&p=2 [v9]: https://lkml.org/lkml/2015/10/13/998 [v10]: https://lkml.org/lkml/2015/10/19/139 [v11]: https://lkml.org/lkml/2015/10/22/206 Ley Foon Tan (6): arm: add msi.h to Kbuild pci: add Altera PCI vendor ID pci:host: Add Altera PCIe host controller driver

[PATCH v12 4/6] pci: altera: Add Altera PCIe MSI driver

2015-10-23 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

[PATCH v12 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-23 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b8577ad9..96b9fac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7958,6 +7958,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v12 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-23 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan Acked-by: Rob Herring --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49

[PATCH v12 2/6] pci: add Altera PCI vendor ID

2015-10-23 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

Re: [PATCH] nios2: Fix unused variable warning

2015-10-01 Thread Ley Foon Tan
; >>^ >> >> Signed-off-by: Marek Vasut > > Reviewed-by: Tobias Klauser > -- Acked-by: Ley Foon Tan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] nios2: Switch to generic __xchg()

2015-10-01 Thread Ley Foon Tan
> Signed-off-by: Marek Vasut Acked-by: Ley Foon Tan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] asm-generic: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations

2015-10-01 Thread Ley Foon Tan
On Sat, Sep 19, 2015 at 12:42 PM, Marek Vasut wrote: > This change is similar to e001bbae7147b111fe1aa42beaf835635f3c016e > ARM: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations > > A recent change in kernel/acct.c added a new warning for many > configurations using generic __xchg

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-02 Thread Ley Foon Tan
On Tue, Sep 29, 2015 at 1:31 AM, Rob Herring wrote: > On Mon, Sep 28, 2015 at 12:38 AM, Ley Foon Tan wrote: >> On Sat, Sep 26, 2015 at 11:55 AM, Rob Herring wrote: >>> >>> On 09/20/2015 09:13 PM, Ley Foon Tan wrote: >>> > This patch adds the bindings for

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-02 Thread Ley Foon Tan
On Tue, Sep 29, 2015 at 3:38 AM, Arnd Bergmann wrote: > On Monday 28 September 2015 12:31:36 Rob Herring wrote: >> >> > + >> >> > +Required properties: >> >> > +- compatible : should contain "altr,pcie-root-port-1.0" >> >> > +- reg: a list of physical base address and length fo

Re: [PATCH v7 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-04 Thread Ley Foon Tan
On Sat, Oct 3, 2015 at 5:56 AM, Arnd Bergmann wrote: > On Friday 02 October 2015 15:53:44 Ley Foon Tan wrote: >> > Strictly speaking, if you have undocumented bindings downstream that >> > is your problem and we don't have to accept them as-is upstream. I'm >>

Re: [PATCH v2] PCI: controller: Move PCI_DOMAINS selection to arch Kconfig

2018-06-22 Thread Ley Foon Tan
d it can manually select it and move the > > > > PCI_DOMAINS selection from PCI controllers configuration file > > > > to ARM > > > > sub-arch config entries that currently require it, fixing the > > > > issue. > > > > > > > >

Re: [PATCH v4] MAINTAINERS: Add file patterns for nios2 device tree bindings

2018-06-24 Thread Ley Foon Tan
t;   - No changes. > > Impact on "scripts/get_maintainer.pl -f > Documentation/devicetree/bindings/nios2/": > > -Rob Herring (maintainer:OPEN FIRMWARE AND > FLATTENED DEVICE TREE > BINDINGS,commit_signer:2/2=100%,authored:1/2=50%) > +Ley Foon Tan (maintainer:N

Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ley Foon Tan
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct > device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by: Rob Herrin

[GIT PULL] arch/nios2 update for v4.19-rc2

2018-08-28 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 update for v4.19-rc2. Please consider pulling. Regards Ley Foon The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3:   Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at:   git://git.kernel.org/pub/scm/lin

Re: [PATCH 3/3] nios2: switch to NO_BOOTMEM

2018-08-02 Thread Ley Foon Tan
 memblock_reserve(dram_start, memory_start - dram_start); >  #ifdef CONFIG_BLK_DEV_INITRD > if (initrd_start) { > -       reserve_bootmem(virt_to_phys((void *)initrd_start), > -   initrd_end - initrd_start, > BOOTMEM_DEFAULT); > +   memblock_reserve(virt_to_phys((void *)initrd_start), > +   initrd_end - initrd_start); > } >  #endif /* CONFIG_BLK_DEV_INITRD */ > > -- > 2.7.4 Acked-by: Ley Foon Tan

Re: [PATCH 2/3] nios2: use generic early_init_dt_add_memory_arch

2018-08-02 Thread Ley Foon Tan
>  #include >  #include >  #include > @@ -147,6 +148,7 @@ void __init setup_arch(char **cmdline_p) > > console_verbose(); > > +   memory_size = memblock_phys_mem_size(); > memory_start = PAGE_ALIGN((unsigned long)__pa(_end)); > memory_end = (unsigned long) CONFIG_NIOS2_MEM_BASE + > memory_size; > > -- Acked-by: Ley Foon Tan

[GIT PULL] arch/nios2 update for v4.12

2017-05-11 Thread Ley Foon Tan
: implement flush_dcache_mmap_lock/unlock Ley Foon Tan (1):   nios2: use generic strncpy_from_user() and strnlen_user() Marek Vasut (3):   nios2: Add NIOS2_ARCH_REVISION to select between R1 and R2   nios2: Add BMX support   nios2: Add CDX support Tobias Klauser (5):   nios2: add

Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet

2018-01-21 Thread Ley Foon Tan
se; > u32 ctrl; >         u32 reg0, reg1; > u32 comp_status = 1; > -- > 2.7.4 Acked-by: Ley Foon Tan

[GIT PULL] arch/nios2 update for v4.17-rc1

2018-04-11 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.17-rc1. Please consider pulling. Regards Ley Foon The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda:   Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the git repository at:   git://git.kernel.org/pub/scm/linux/kernel/gi

Re: [PATCH] nios2: ksyms: Add missing symbol exports

2018-11-09 Thread Ley Foon Tan
ined! > > The problem is seen with gcc 7.3.0. > > Export the missing symbols. > > Fixes: 2fc8483fdcde ("nios2: Build infrastructure") > Signed-off-by: Guenter Roeck Acked-by: Ley Foon Tan > --- >  arch/nios2/kernel/nios2_ksyms.c | 12 >  1 file ch

Re: [PATCH] nios2: remove redundant 'default n' from Kconfig-s

2018-11-09 Thread Ley Foon Tan
isn't > selected/implied). > That might make it clearer to people that a bare 'default n' is > redundant. > ... > > Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Ley Foon Tan > --- >  arch/nios2/Kconfig 

Re: [PATCH] nios2: kconfig: remove duplicate DEBUG_STACK_USAGE symbol defintions

2018-08-20 Thread Ley Foon Tan
On Tue, 2018-08-21 at 01:15 +0900, Masahiro Yamada wrote: > 2018-08-16 16:05 GMT+09:00 Tobias Klauser : > > > > DEBUG_STACK_USAGE is already defined in lib/Kconfig.debug > > > > Signed-off-by: Tobias Klauser > > Reviewed-by: Masahiro

[PATCH v2 0/2] Add Stratix10 PCIe Root Port support

2018-12-31 Thread Ley Foon Tan
rom checkpatch.pl. - Rename StratixXX to stratix10. History: [v1]: https://lkml.org/lkml/2018/12/26/68 Ley Foon Tan (2): pci: altera: Add Stratix10 PCIe support Documentation: dt-bindings: pci: altera: Add altr,pcie-root-port-2.0 .../devicetree/bindings/pci/altera-pcie.txt|

[PATCH v2 1/2] pci: altera: Add Stratix10 PCIe support

2018-12-31 Thread Ley Foon Tan
Add PCIe Root Port support for Stratix10 device. Main differences: - HIP interface to access Root Port configuration register. - TLP programming flow: - One REG0 register - Don't need to check alignment Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig |2 +- dr

  1   2   3   4   5   6   7   >