[PATCH] rio: warn_unused_result warnings fix

2009-04-28 Thread Li Yang
warning: ignoring return value of 'device_add', declared with attribute warn_unused_result warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result Signed-off-by: Li Yang --- drivers/rapidio/rio-scan.c |5 - drivers

[PATCH] rionet: add memory access to simulated Ethernet over rapidio

2009-04-28 Thread Li Yang
Through the newly added IO memory access of Rapidio, sender can write directly to recipient's rx buffer, either by cpu or DMA engine. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- drivers/net/Kconfig | 10 ++ drivers/net/rionet.c |

[PATCH 0/5] rapidio: adding memory mapping IO support and misc fixes

2009-04-28 Thread Li Yang
The patch series add MMIO support to Linux rapidio and fix a few nits. The patches cross rapidio, netdev, powerpc sub-systems. It will be good for them to go through one tree. Probably Andrew? As the previous rapidio patches are mostly merged by you. - Leo _

Re: [PATCH] rapidio: add common mapping APIs for RapidIO memory access

2009-04-29 Thread Li Yang
On Tue, Apr 28, 2009 at 7:39 PM, David Miller wrote: > > Please number your patches. :-/ > > There is no way for anyone to be able to tell in what order > your changes should be applied. Sorry for that. I thought I have added -n when doing the git-format-patch, but it turns out not the case. :(

[PATCH 0/6] rapidio: adding memory mapping IO support and misc fixes

2009-05-12 Thread Li Yang
This is a re-post of patch series which adds MMIO support to Linux RapidIO and fixes a few nits. - Leo ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 3/6] powerpc: add memory map support to Freescale RapidIO block

2009-05-12 Thread Li Yang
The RIO memory map functions are used to support direct IO memory access to RapidIO space. The patch adds its support for Freescale RapidIO block driver. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c | 217 - 1 files

[PATCH 2/6] powerpc/fsl_rio: use LAW address from device tree

2009-05-12 Thread Li Yang
Instead of fixed address in old code. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index abdb124..fa0720f 100644 --- a/arch/powerpc

[PATCH 6/6] rio: fix section mismatch

2009-05-12 Thread Li Yang
Signed-off-by: Li Yang --- drivers/rapidio/rio-scan.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 0838fb2..e29be3c 100644 --- a/drivers/rapidio/rio-scan.c +++ b/drivers/rapidio/rio-scan.c @@ -296,7

[PATCH 4/6] rionet: add memory access to simulated Ethernet over rapidio

2009-05-12 Thread Li Yang
Through the newly added IO memory access of RapidIO, sender can write directly to recipient's rx buffer, either by cpu or DMA engine. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- drivers/net/Kconfig | 10 ++ drivers/net/rionet.c |

[PATCH 5/6] rio: warn_unused_result warnings fix

2009-05-12 Thread Li Yang
Adding failure path for the following two cases. warning: ignoring return value of 'device_add', declared with attribute warn_unused_result warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result Signed-off-by: Li Yang ---

[PATCH 1/6] rapidio: add common mapping APIs for RapidIO memory access

2009-05-12 Thread Li Yang
Add the mapping functions used to support direct IO memory access of rapidIO. Signed-off-by: Zhang Wei Signed-off-by: Li Yang --- drivers/rapidio/rio.c | 95 +++ include/linux/rio.h | 25 include/linux/rio_drv.h | 24

Re: [PATCH] [PowerPC] MPC8272ADS: fix device tree for 8 MB flash size

2009-05-13 Thread Li Yang
On Wed, May 13, 2009 at 3:06 AM, Wolfgang Denk wrote: > The current device tree for the MPC8272ADS assumes a mapping of 32 MB > of NOR flash at 0xFE00., while there are actually only 8 MB on > the boards, mapped at 0xFF80.. When booting an uImage with such a > device tree, the kernel crash

Re: RapidIO - general questions

2009-05-13 Thread Li Yang
cc'ed LKML On Tue, May 12, 2009 at 5:17 PM, Jan Neskudla wrote: > Hallo > > we'd likes to use a RapidIO as a general communication bus on our new > product, and so I have some questions about general design of Linux RIO > subsystem. I did not find any better mailing list for RapidIO > discussion.

Re: RapidIO - general questions

2009-05-15 Thread Li Yang
On Fri, May 15, 2009 at 3:33 PM, Jan Neskudla wrote: > On Wed, 2009-05-13 at 18:57 +0800, ext Li Yang wrote: >> cc'ed LKML >> >> On Tue, May 12, 2009 at 5:17 PM, Jan Neskudla >> wrote: >> > Hallo >> > >> > we'd likes to use a Rap

Re: [PATCH 3/6] powerpc: add memory map support to Freescale RapidIO block

2009-05-21 Thread Li Yang
On Wed, May 13, 2009 at 6:05 AM, Andrew Morton wrote: > On Tue, 12 May 2009 16:36:00 +0800 > Li Yang wrote: > >> +     align = (size < 0x1000) ? 0x1000 : 1 << (__ilog2(size - 1) + 1); >> + >> +     /* Align the size */ >> +     if ((lstart + s

Re: [PATCH] freescale: beyond ARRAY_SIZE of fdev->chan

2009-05-22 Thread Li Yang
On Wed, May 20, 2009 at 7:17 AM, Roel Kluin wrote: > Do not go beyond ARRAY_SIZE of fdev->chan > > Signed-off-by: Roel Kluin Indeed, thanks. But I would like the title and description of this patch be changed to like this: fsldma: fix check on potential fdev->chan[] overflow Fix the check of

Re: [PATCH] fsldma: fix memory leak on error path in fsl_dma_prep_memcpy()

2009-05-22 Thread Li Yang
On Sat, May 16, 2009 at 12:59 AM, Ira Snyder wrote: > When preparing a memcpy operation, if the kernel fails to allocate memory > for a link descriptor after the first link descriptor has already been > allocated, then some memory will never be released. Fix the problem by > walking the list of al

[GIT PULL] fsldma driver fixes

2009-05-22 Thread Li Yang
fsldma: fix memory leak on error path in fsl_dma_prep_memcpy() Li Yang (1): fsldma: update mailling list address in MAINTAINERS Roel Kluin (1): fsldma: fix check on potential fdev->chan[] overflow MAINTAINERS |2 +- driv

Re: [GIT PULL] fsldma driver fixes

2009-05-27 Thread Li Yang
On Wed, May 27, 2009 at 7:59 AM, Dan Williams wrote: > On Fri, May 22, 2009 at 3:47 AM, Li Yang wrote: >> Hi Dan, >> >> Here are fixes for Freescale DMA engine driver. >> >> Thanks, >> - Leo >> >> >> The following changes since commit 580

Re: Net: ucc_geth ethernet driver optimization space

2009-05-27 Thread Li Yang
On Wed, May 27, 2009 at 1:08 PM, Liu Dave-R63238 wrote: > Guys, > > The ucc_geth ethernet driver have dozens of strong sync read/write > operation, such as in_be32/16/8, out_be32/16/8. > > all of them is sync read/write, it is very expensive for performance. > Totally agree. That's one of my con

[PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-15 Thread Li Yang
when calling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 30 +- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..71

[PATCH 2/4] fsl_msi: enable msi allocation in all banks

2010-04-15 Thread Li Yang
From: Zhao Chenhui Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 29 ++--- arch/powerpc/sysdev/fsl_msi.h

[PATCH 3/4] fsl_msi: enable msi sharing through AMP OSes

2010-04-15 Thread Li Yang
From: Zhao Chenhui Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c|8 +++- arch/powerpc/sysdev/msi_bitmap.c |4

[PATCH 4/4] mpc8572ds: change camp dtses for MSI sharing

2010-04-16 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15

Re: [PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-18 Thread Li Yang
On 4/19/2010 10:40 AM, Michael Ellerman wrote: On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: From: Zhao Chenhui In fsl_of_msi_probe(), the virt_msir's chip_data have been stored the pointer to struct mpic. We add a struct fsl_msi_cascade_data to store the pointer to struct fsl_ms

Re: [PATCH 3/4] fsl_msi: enable msi sharing through AMP OSes

2010-04-18 Thread Li Yang
On Mon, Apr 19, 2010 at 10:34 AM, Michael Ellerman wrote: > On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >> From: Zhao Chenhui >> >> Make a single PCIe MSI bank shareable through CAMP OSes. The number of >> MSI used by each core can be configured by dts file

Re: [PATCH 2/4] fsl_msi: enable msi allocation in all banks

2010-04-18 Thread Li Yang
On Mon, Apr 19, 2010 at 10:46 AM, Michael Ellerman wrote: > On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >> From: Zhao Chenhui >> >> Put all fsl_msi banks in a linked list. The list of banks then can be >> traversed when allocating new msi interrupts. > >

Re: [PATCH 1/4] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-19 Thread Li Yang
On Mon, Apr 19, 2010 at 8:19 PM, Kumar Gala wrote: > > On Apr 18, 2010, at 11:50 PM, Li Yang wrote: > >> On 4/19/2010 10:40 AM, Michael Ellerman wrote: >>> On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote: >>> >>>> From: Zhao Chenhui >>>> &

[PATCH v2 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-20 Thread Li Yang
lling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..93

[PATCH v2 2/5] fsl_msi: enable msi allocation in all banks

2010-04-20 Thread Li Yang
Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 16 +--- arch/powerpc/sysdev

[PATCH v2 3/5] fsl_msi: enable msi sharing through AMP OSes

2010-04-20 Thread Li Yang
Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH v2 4/5] mpc8572ds: change camp dtses for MSI sharing

2010-04-20 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15

[PATCH v2 5/5] fsl_msi: add remove path and probe failing path

2010-04-20 Thread Li Yang
Also cleanup the probe function. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 35 +-- arch/powerpc/sysdev/fsl_msi.h |1 + 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev

[PATCH v3 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-22 Thread Li Yang
lling eoi() of the irq. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ad453ca..93

[PATCH v3 2/5] fsl_msi: enable msi allocation in all banks

2010-04-22 Thread Li Yang
Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 14 +++--- arch/powerpc/sysdev

[PATCH v3 3/5] fsl_msi: enable msi sharing through AMP OSes

2010-04-22 Thread Li Yang
Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH v3 4/5] mpc8572ds: change camp dtses for MSI sharing

2010-04-22 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15

[PATCH v3 5/5] fsl_msi: add removal path and probe failing path

2010-04-22 Thread Li Yang
Also cleanup the probe function. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_msi.c | 36 ++-- arch/powerpc/sysdev/fsl_msi.h |1 + 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev

Re: Page fault on vmalloc'ed memory

2010-05-05 Thread Li Yang
On Wed, May 5, 2010 at 7:51 PM, Timur Tabi wrote: > On Wed, May 5, 2010 at 12:19 AM, Li Yang-R58472 wrote: >> I got a weird page fault oops on vmalloc'ed area.  Digging into the powerpc >> do_page_fault(), I found there is no handling of address in kernel space >> u

Re: Page fault on vmalloc'ed memory

2010-05-06 Thread Li Yang
On Fri, May 7, 2010 at 1:38 PM, Paul Mackerras wrote: > On Thu, May 06, 2010 at 12:28:44PM +0800, Li Yang wrote: > >> The root cause of this oops might not be related with the vmalloc'ed >> area processing in Instruction Storage Interrupt.  But x86 does have >> the co

[PATCH] pte_fsl_booke: fix instruction TLB error permission check

2010-05-07 Thread Li Yang
: Li Yang Signed-off-by: Jin Qing --- arch/powerpc/kernel/head_fsl_booke.S | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 78aac7b..61b6687 100644 --- a/arch/powerpc/kernel

[PATCH 1/3] fsl_rio: fix compile errors

2010-06-17 Thread Li Yang
Fixes the following compile problem on E500 platforms: arch/powerpc/sysdev/fsl_rio.c: In function 'fsl_rio_mcheck_exception': arch/powerpc/sysdev/fsl_rio.c:248: error: 'MCSR_MASK' undeclared (first use in this function) Also fixes the compile problem on non-E500 platforms

[PATCH 2/3] fsl_rio: fix machine check exception for e500mc

2010-06-17 Thread Li Yang
The original code only covers e500 v1/v2. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index f908ba6..954a754 100644 --- a/arch/powerpc/sysdev

[PATCH 3/3] fsl_rio: fix non-standard HID1 register access

2010-06-17 Thread Li Yang
The access to HID1 register is only legitimate for e500 v1/v2 cores. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index 954a754..785a882

[PATCH v2 1/4] fsl_rio: fix compile errors

2010-06-17 Thread Li Yang
Fixes the following compile problem on E500 platforms: arch/powerpc/sysdev/fsl_rio.c: In function 'fsl_rio_mcheck_exception': arch/powerpc/sysdev/fsl_rio.c:248: error: 'MCSR_MASK' undeclared (first use in this function) Also fixes the compile problem on non-E500 platforms

[PATCH v2 2/4] fsl_rio: fix machine check exception for e500mc

2010-06-17 Thread Li Yang
The original code only covers e500 v1/v2. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index f908ba6..954a754 100644 --- a/arch/powerpc/sysdev

[PATCH v2 4/4] fsl_rio: fix non-standard HID1 register access

2010-06-17 Thread Li Yang
The access to HID1 register is only legitimate for e500 v1/v2 cores. Also fixes magic number. Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_rio.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c

[PATCH v2 3/4] powerpc: add e500 HID1 bit definition

2010-06-17 Thread Li Yang
Also make 74xx HID1 definition conditional. Signed-off-by: Li Yang --- arch/powerpc/include/asm/reg.h |2 ++ arch/powerpc/include/asm/reg_booke.h | 16 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc

[PATCH] powerpc: disable SPARSE_IRQ by default

2010-06-29 Thread Li Yang
The SPARSE_IRQ considerably adds overhead to critical path of IRQ handling. However it doesn't benefit much in space for most systems with limited IRQ_NR. Should be disabled unless really necessary. Signed-off-by: Li Yang --- arch/powerpc/Kconfig |4 ++-- 1 files changed, 2 inser

Re: [PATCH] fsldma: use PCI Read Multiple command

2009-06-12 Thread Li Yang
g Kumar to the CC: list, since he might pick up the patch. >>>> >>> >>> Acked-by: Dan Williams >>> >>> I agree with taking this through Kumar's tree. >> >> I'm going through patches for .31.. Should I still pick this up?  Going >

Re: [PATCH 1/6] rapidio: add common mapping APIs for RapidIO memory access

2009-06-12 Thread Li Yang
On Thu, Jun 11, 2009 at 9:32 PM, Kumar Gala wrote: > > On Jun 11, 2009, at 4:47 AM, Li Yang-R58472 wrote: > >>> On May 12, 2009, at 3:35 AM, Li Yang wrote: >>> >>>> Add the mapping functions used to support direct IO memory access of >>>> rapid

Re: [PATCH 1/6] rapidio: add common mapping APIs for RapidIO memory access

2009-06-15 Thread Li Yang
On Fri, Jun 12, 2009 at 9:58 PM, Kumar Gala wrote: > > On Jun 12, 2009, at 8:27 AM, Li Yang wrote: > >> On Thu, Jun 11, 2009 at 9:32 PM, Kumar Gala >> wrote: >>> >>> On Jun 11, 2009, at 4:47 AM, Li Yang-R58472 wrote: >>> >>>>> O

Re: [PATCH v3 2/2] fsldma: Add DMA_SLAVE support

2009-06-23 Thread Li Yang
> >> The other two small patches I posted earlier are very helpful in testing >> this functionality. They make the fsldma driver leave the BWC (bandwidth >> control) bits alone on the 83xx controller, as well as making the >> external start feature available on 83xx. >

[PATCH] net/gianfar: add missing set_mac_address hook

2009-06-24 Thread Li Yang
Add the missing ndo_set_mac_address function to enable changing MAC address. Also remove the unnecessary gfar_set_mac_address function. Signed-off-by: Li Yang Acked-by: Andy Fleming --- drivers/net/gianfar.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff

[PATCH] gianfar: fix coalescing setup in ethtool support

2009-07-29 Thread Li Yang
From: Jiajun Wu Parameter order for using mk_ic_value(count, time) was reversed, the patch fixes this. Signed-off-by: Jiajun Wu Signed-off-by: Li Yang --- drivers/net/gianfar_ethtool.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net

[PATCH] usb/gadget: Update Freescale UDC entry in MAINTAINERS

2009-08-10 Thread Li Yang
Change the F entry for file rename, and make it also cover fsl_qe_udc driver. Update the name accordingly. Signed-off-by: Li Yang --- Liakhovetski, Is it ok that it also covers your fsl_mx3_udc.c file. It's much easier to use the wildcard. MAINTAINERS |4 ++-- 1 files chang

Re: [PATCH] USB: fsl_qe_udc: Add fsl,mpc8323-qe-usb compatible entry

2009-08-18 Thread Li Yang
On Wed, Aug 19, 2009 at 6:23 AM, Anton Vorontsov wrote: > Current bindings specify that "fsl,mpc8323-qe-usb" compatible entry > should be used as a base match for QE UDCs, so update the driver to > comply with the bindings. > > Signed-off-by: Anton Vorontsov

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

2018-08-28 Thread Li Yang
On Mon, Aug 27, 2018 at 8:57 PM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. Please forgive my ignorance, but what is this format specifier do exactly? I cannot find anything listed in th

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

2018-08-28 Thread Li Yang
On Tue, Aug 28, 2018 at 5:16 PM Tyrel Datwyler wrote: > > On 08/28/2018 11:48 AM, Li Yang wrote: > > On Mon, Aug 27, 2018 at 8:57 PM Rob Herring wrote: > >> > >> In preparation to remove the node name pointer from struct device_node, > >> convert printf

Re: [PATCH 1/2] soc: fsl: qbman: qman_portal: defer probing when qman is not available

2018-08-28 Thread Li Yang
On Fri, Aug 24, 2018 at 9:54 AM Roy Pledge wrote: > > On 8/23/2018 5:36 PM, Alexandre Belloni wrote: > > If the qman driver (qman_ccsr) doesn't probe or fail to probe before > > qman_portal, qm_ccsr_start will be either NULL or a stale pointer to an > > unmapped page. > > > > This leads to a crash

Re: [PATCH] fsl/qe: ucc: copy and paste bug in ucc_get_tdm_sync_shift()

2018-08-29 Thread Li Yang
On Wed, Aug 29, 2018 at 4:42 AM Dan Carpenter wrote: > > On Mon, Jun 04, 2018 at 02:06:45PM +0200, Mathieu Malaterre wrote: > > Where did the original go ? > > > > https://patchwork.ozlabs.org/patch/868158/ > > > > > > Btw, we still haven't pushed a patch for this bug. I will combine Zhao Qiang's

Re: [PATCH] soc: fsl/qe: Use of_get_child_by_name helper

2018-08-30 Thread Li Yang
oc: fsl/qe: Use of_get_child_by_name helper > > > > Use the of_get_child_by_name() helper instead of open coding searching for > > the > > 'firmware' child node. This removes directly accessing the name pointer as > > well. > > > > Cc:

Re: [PATCH] fsl: remove redundant pointer 'priv'

2018-08-30 Thread Li Yang
On Wed, Aug 29, 2018 at 4:29 AM Colin King wrote: > > From: Colin Ian King > > Pointer 'priv' is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > variable 'priv' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Colin Ian Ki

Re: [PATCH 3/3] soc: fsl: add RCPM driver

2018-09-04 Thread Li Yang
On Tue, Sep 4, 2018 at 9:58 PM Wang, Dongsheng wrote: > > Please change your comments style. Although this doesn't get into the Linux kernel coding style documentation yet, Linus seems changed his mind to prefer // than /* */ comment style now. https://lkml.org/lkml/2017/11/25/133 So the // st

Re: [PATCH 3/3] soc: fsl: add RCPM driver

2018-09-07 Thread Li Yang
On Fri, Sep 7, 2018 at 4:51 AM Ran Wang wrote: > > Hi Leo, > > On September 05, 2018 at 11:22 Yang Li wrote: > > -Original Message- > > From: Li Yang > > Sent: Wednesday, September 05, 2018 11:22 > > To: dongsheng.w...@hxt-semitech.com > > Cc:

Re: [PATCH 2/3] Documentation: dt: binding: fsl: update property description for RCPM

2018-09-11 Thread Li Yang
On Mon, Sep 10, 2018 at 3:46 AM Ran Wang wrote: > > Hi Scott, > > On 2018/9/8 4:23, Scott Wood wrote: > > > > On Fri, 2018-08-31 at 11:52 +0800, Ran Wang wrote: > > > +Optional properties: > > > + - big-endian : Indicate RCPM registers is big-endian. A RCPM node > > > + that doesn't have this pr

Re: [PATCH -next] fsl/qe: Fix copy-paste error in ucc_get_tdm_sync_shift

2018-09-17 Thread Li Yang
On Sat, Sep 15, 2018 at 6:11 AM YueHaibing wrote: > > if 'mode' is COMM_DIR_TX, 'shift' should use TX_SYNC_SHIFT_BASE > > Fixes: bb8b2062aff3 ("fsl/qe: setup clock source for TDM mode") > Signed-off-by: YueHaibing Thanks for submitting the patch, but there is already the same fix in the queue fr

Re: [PATCH 2/4] soc/fsl/qbman: Add 64 bit DMA addressing requirement to QBMan

2018-09-20 Thread Li Yang
On Thu, Sep 20, 2018 at 10:09 AM Madalin Bucur wrote: > > From: Roy Pledge > > The QBMan block is memory mapped on SoCs above a 32 bit (4 Gigabyte) > boundary so enabling 64 bit DMA addressing is needed for QBMan to > be usable. > > Signed-off-by: Roy Pledge > Signed-off-by: Madalin Bucur > ---

Re: [PATCH 1/4] soc/fsl/qbman: Check if CPU is offline when initializing portals

2018-09-21 Thread Li Yang
On Thu, Sep 20, 2018 at 10:09 AM Madalin Bucur wrote: > > From: Roy Pledge > > If the affine portal for a specific CPU is offline at boot time > affine its interrupt to CPU 0. If the CPU is later brought online > the hotplug handler will correctly adjust the affinity. Although this does provide

Re: [PATCH 1/2] soc: fsl: qbman: qman_portal: defer probing when qman is not available

2018-09-25 Thread Li Yang
On Tue, Sep 25, 2018 at 2:47 PM Olof Johansson wrote: > > Hi, > > > On Thu, Aug 23, 2018 at 11:36 PM Alexandre Belloni > wrote: > > > > If the qman driver (qman_ccsr) doesn't probe or fail to probe before > > qman_portal, qm_ccsr_start will be either NULL or a stale pointer to an > > unmapped pag

Re: [PATCH 1/2] soc: fsl: qbman: qman_portal: defer probing when qman is not available

2018-09-26 Thread Li Yang
On Wed, Sep 26, 2018 at 4:28 AM Alexandre Belloni wrote: > > On 25/09/2018 21:45:56+0200, Olof Johansson wrote: > > Hi, > > > > > > On Thu, Aug 23, 2018 at 11:36 PM Alexandre Belloni > > wrote: > > > > > > If the qman driver (qman_ccsr) doesn't probe or fail to probe before > > > qman_portal, qm_

Re: [PATCH 1/2] soc: fsl: qbman: qman_portal: defer probing when qman is not available

2018-09-27 Thread Li Yang
On Wed, Sep 26, 2018 at 1:15 PM Li Yang wrote: > > On Wed, Sep 26, 2018 at 4:28 AM Alexandre Belloni > wrote: > > > > On 25/09/2018 21:45:56+0200, Olof Johansson wrote: > > > Hi, > > > > > > > > > On Thu, Aug 23, 2018 at 11:36 PM Alexandre

drivers binding to device node with multiple compatible strings

2018-09-27 Thread Li Yang
Hi Rob and Grant, Various device tree specs are recommending to include all the potential compatible strings in the device node, with the order from most specific to most general. But it looks like Linux kernel doesn't provide a way to bind the device to the most specific driver, however, the fir

Re: [PATCH v3 6/6] arm64: dts: add LX2160ARDB board support

2018-09-28 Thread Li Yang
On Mon, Sep 24, 2018 at 7:51 AM Vabhav Sharma wrote: > > LX2160A reference design board (RDB) is a high-performance > computing, evaluation, and development platform with LX2160A > SoC. Please send next version with Shawn Guo and me in the "to" recipient so that its less likely we will miss it.

Re: [PATCH v3 5/6] arm64: dts: add QorIQ LX2160A SoC support

2018-09-28 Thread Li Yang
On Mon, Sep 24, 2018 at 7:47 AM Vabhav Sharma wrote: > > LX2160A SoC is based on Layerscape Chassis Generation 3.2 Architecture. > > LX2160A features an advanced 16 64-bit ARM v8 CortexA72 processor cores > in 8 cluster, CCN508, GICv3,two 64-bit DDR4 memory controller, 8 I2C > controllers, 3 dspi,

Re: drivers binding to device node with multiple compatible strings

2018-09-28 Thread Li Yang
On Fri, Sep 28, 2018 at 3:07 PM Rob Herring wrote: > > On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: > > > > Hi Rob and Grant, > > > > Various device tree specs are recommending to include all the > > potential compatible strings in the device node, with the

Re: drivers binding to device node with multiple compatible strings

2018-09-28 Thread Li Yang
On Fri, Sep 28, 2018 at 4:00 PM Li Yang wrote: > > On Fri, Sep 28, 2018 at 3:07 PM Rob Herring wrote: > > > > On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: > > > > > > Hi Rob and Grant, > > > > > > Various device tree specs are recommending

Re: [PATCH v2 5/5] soc/fsl_qbman: export coalesce change API

2018-10-01 Thread Li Yang
On Fri, Sep 28, 2018 at 3:45 AM Madalin Bucur wrote: > > Export the API required to control the QMan portal interrupt coalescing > settings. These are new APIs not just old APIs being exported. What is the user of these APIs? Is the user being submitted? We cannot have APIs in kernel that has

Re: [PATCH v2 0/5] soc/fsl/qbman: DPAA QBMan fixes and additions

2018-10-01 Thread Li Yang
On Fri, Sep 28, 2018 at 3:44 AM Madalin Bucur wrote: > Applied 1-4 to for-next while waiting for clarification on 5/5. And updated the prefix to "soc: fsl:" style to be aligned with arm-soc convention. Please try to use that style in the future for soc/fsl patches. > This patch set brings a n

Re: [PATCH v2 0/5] soc/fsl/qbman: DPAA QBMan fixes and additions

2018-10-02 Thread Li Yang
On Tue, Oct 2, 2018 at 1:29 AM Madalin-cristian Bucur wrote: > > > -Original Message- > > From: Li Yang [mailto:leoyang...@nxp.com] > > Sent: Tuesday, October 2, 2018 1:30 AM > > To: Madalin-cristian Bucur > > Cc: Roy Pledge ; Claudiu Manoil >

Re: [PATCH v2 5/5] soc/fsl_qbman: export coalesce change API

2018-10-02 Thread Li Yang
On Tue, Oct 2, 2018 at 1:08 AM Madalin-cristian Bucur wrote: > > > -Original Message- > > From: Li Yang [mailto:leoyang...@nxp.com] > > Sent: Tuesday, October 2, 2018 12:50 AM > > To: Madalin-cristian Bucur > > Cc: Roy Pledge ; Claudiu Manoil >

Re: [PATCH v5 2/6] soc/fsl/guts: Add definition for LX2160A

2018-10-24 Thread Li Yang
On Mon, Oct 15, 2018 at 12:14 AM Vabhav Sharma wrote: > > Adding compatible string "lx2160a-dcfg" to > initialize guts driver for lx2160 and SoC die > attribute definition for LX2160A > > Signed-off-by: Vabhav Sharma > Signed-off-by: Yinbo Zhu Acked-by: Li

Re: [PATCH v5 6/6] arm64: dts: add LX2160ARDB board support

2018-10-24 Thread Li Yang
hav Sharma > Signed-off-by: Horia Geanta > Signed-off-by: Ran Wang > Signed-off-by: Zhang Ying-22455 > Signed-off-by: Yinbo Zhu Acked-by: Li Yang > --- > arch/arm64/boot/dts/freescale/Makefile| 1 + > arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 119

Re: [PATCH v6 5/6] arm64: dts: add QorIQ LX2160A SoC support

2018-10-25 Thread Li Yang
On Thu, Oct 25, 2018 at 2:03 AM Vabhav Sharma wrote: > > LX2160A SoC is based on Layerscape Chassis Generation 3.2 Architecture. > > LX2160A features an advanced 16 64-bit ARM v8 CortexA72 processor cores > in 8 cluster, CCN508, GICv3,two 64-bit DDR4 memory controller, 8 I2C > controllers, 3 dspi,

Re: [PATCH 3/6] PCI: layerscape: Add the EP mode support

2018-10-26 Thread Li Yang
On Fri, Oct 26, 2018 at 2:43 AM Xiaowei Bao wrote: > > > > -Original Message- > From: arndbergm...@gmail.com On Behalf Of Arnd > Bergmann > Sent: 2018年10月26日 15:01 > To: Xiaowei Bao > Cc: Rob Herring ; bhelg...@google.com; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti

Re: [PATCH 3/7] dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs

2018-10-26 Thread Li Yang
On Fri, Oct 26, 2018 at 4:57 AM Peng Ma wrote: > > NXP Queue DMA controller(qDMA) on Layerscape SoCs supports channel > virtuallization by allowing DMA jobs to be enqueued into different > command queues. > > Note that this module depends on NXP DPAA. It is not clear if you are saying that the dr

Re: [PATCH 3/7] dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs

2018-10-29 Thread Li Yang
> On Oct 29, 2018, at 4:51 AM, Peng Ma wrote: > > > >> -Original Message- >> From: Li Yang >> Sent: 2018年10月27日 4:48 >> To: Peng Ma >> Cc: Vinod ; Rob Herring ; Mark >> Rutland ; Shawn Guo ; Dan >> Williams ; dmaeng...@vge

Re: [PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-12-05 Thread Li Yang
On Thu, Nov 22, 2018 at 2:42 PM Yi Wang wrote: > > From: Wen Yang > > Currently there are 2 problems with the ucc_of_parse_tdm function: > 1,a possible null pointer dereference in ucc_of_parse_tdm, > detected by the semantic patch deref_null.cocci, > with the following warning: > drivers/soc/fsl/

Re: [RFC PATCH] soc: fsl: guts: handle devm_kstrdup() failure

2018-12-05 Thread Li Yang
On Sun, Dec 2, 2018 at 3:07 AM Nicholas Mc Guire wrote: > > devm_kstrdup() may return NULL if internal allocation failed. > soc_dev_attr.machine should be checked (although its only use > in pr_info() would be safe even with a NULL). Therefor > in the unlikely case of allocation failure, fsl_guts

Re: [PATCH 2/2] fsl: add i2c controlled qixis driver

2018-12-05 Thread Li Yang
On Thu, Oct 4, 2018 at 11:03 PM Pankaj Bansal wrote: > > FPGA on LX2160AQDS/LX2160ARDB connected on I2C bus, so add qixis > driver which is basically an i2c client driver to control FPGA. Is this driver just used to print out the QIXIS version and create platform devices for all the subnodes? I

Re: [PATCH 1/2] net: ethernet: ucc_geth: fix MEM_PART_MURAM mode

2017-02-09 Thread Li Yang
quot;powerpc/QE: switch to the cpm_muram implementation) > Signed-off-by: Christophe Leroy Acked-by: Li Yang Regards, Leo

Re: [PATCH 2/2] soc/fsl/qe: get rid of immrbar_virt_to_phys()

2017-02-09 Thread Li Yang
On Tue, Feb 7, 2017 at 3:05 AM, Christophe Leroy wrote: > immrbar_virt_to_phys() is not used anymore > > Signed-off-by: Christophe Leroy Acked-by: Li Yang Regards, Leo

Re: [PATCH] soc/fsl/guts: Add a NULL check for devm_kasprintf()

2018-01-10 Thread Li Yang
On Sun, Jan 7, 2018 at 9:06 PM, Y.b. Lu wrote: >> -Original Message- >> From: Fabio Estevam [mailto:feste...@gmail.com] >> Sent: 2018年1月6日 21:23 >> To: Leo Li >> Cc: linuxppc-dev@lists.ozlabs.org; Y.b. Lu ; Fabio >> Estevam >> Subject: [PATCH] soc/fsl/guts: Add a NULL check for devm_kasp

Re: Spectre+Meltdown

2018-01-10 Thread Li Yang
On Mon, Jan 8, 2018 at 2:17 AM, Christian Zigotzky wrote: > Hi All, > > Thanks a lot for your replies. > > @NXP developers: Could you please tell us some information? We have done some investigation but it is not ready to be published yet. You can get more information from your support channel r

Re: [PATCH 5/5] powerpc:dts:pm: add power management node

2018-04-10 Thread Li Yang
On Wed, Mar 28, 2018 at 8:31 PM, Ran Wang wrote: > Enable Power Management feature on device tree, including MPC8536, > MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, > P3041, T104X, T1024. There are no device tree bindings documented for the properties and compatible string

[PATCH 1/2] MAINTAINERS: update entry for Freescale SoC drivers

2017-06-02 Thread Li Yang
Add myself as the maintainer for drivers/fsl/soc/ and fix the scope for device tree bindings. Signed-off-by: Li Yang --- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index d24240b..1807d3f 100644 --- a/MAINTAINERS +++ b

[PATCH 2/2] MAINTAINERS: update my email address from freescale to nxp

2017-06-02 Thread Li Yang
Signed-off-by: Li Yang --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1807d3f..5a39d4a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5285,7 +5285,7 @@ S:Maintained F: drivers/video/fbdev/fsl-diu-fb

Re: [PATCH 6/6] ucc_geth: Remove UGETH_FILTERING dead code

2008-12-22 Thread Li Yang
interested to implement a general frame filtering framework or custom features. Given the fact that unused code can easily become broken. I agree that it can be removed for now. Acked-by: Li Yang ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org http

The usage of compatible 'simple-bus'

2009-01-05 Thread Li Yang
Hi all, I got an assumption from the existing device trees that having 'simple-bus' in the compatible property of a node means that all child nodes should be added as of_platform_device in platform initialization phase. No matter it represents a bus in common sense or not. Is this truly the c

[PATCH] powerpc/8313erdb: fix kernel crash

2009-01-05 Thread Li Yang
Probe the new mdio node added by b31a1d8b. Fix kernel panic problem when gianfar driver wants to get the of_platform_device of that mdio. Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8313erdb.dts |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot

<    1   2   3   4   5   6   >