Re: [PATCH] arm64: dts: ls1028a-rdb: enable optee node

2021-04-19 Thread Li Yang
On Tue, Mar 30, 2021 at 9:53 AM Sahil Malhotra wrote: > > From: Sahil Malhotra > > optee node was disabled by default, enabling it for ls1028a-rdb. > > Signed-off-by: Michael Walle > Signed-off-by: Sahil Malhotra Acked-by: Li Yang > --- > arch/arm64/boot/dts/fr

[GIT PULL] soc/fsl drivers changes for next(v5.13)

2021-04-09 Thread Li Yang
Hi soc maintainers, Please merge the following new changes for soc/fsl drivers. Regards, Leo The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git repository at:

Re: [PATCH v7] soc: fsl: enable acpi support in RCPM driver

2021-04-08 Thread Li Yang
On Wed, Apr 7, 2021 at 9:58 PM Ran Wang wrote: > > From: Peng Ma > > This patch enables ACPI support in RCPM driver. > > Signed-off-by: Peng Ma > Signed-off-by: Ran Wang Applied for next. Thanks. > --- > Change in v7: > - Update comment for checking RCPM node which refferred to > > Change

Re: [PATCH v1 0/3] Remove qe_io{read,write}* IO accessors

2021-04-06 Thread Li Yang
On Sat, Mar 6, 2021 at 12:11 PM Christophe Leroy wrote: > > Commit 6ac9b61786cc ("soc: fsl: qe: introduce qe_io{read,write}* > wrappers") added specific I/O accessors for qe because at that > time ioread/iowrite functions were sub-optimal on powerpc/32 > compared to the architecture specific

Re: [PATCH v6] soc: fsl: enable acpi support in RCPM driver

2021-04-06 Thread Li Yang
On Fri, Mar 12, 2021 at 2:56 AM Ran Wang wrote: > > From: Peng Ma > > This patch enables ACPI support in RCPM driver. > > Signed-off-by: Peng Ma > Signed-off-by: Ran Wang > --- > Change in v6: > - Remove copyright udpate to rebase on latest mainline > > Change in v5: > - Fix panic when

Re: [PATCH] soc/fsl: qbman: fix conflicting alignment attributes

2021-03-25 Thread Li Yang
On Tue, Mar 23, 2021 at 8:17 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > When building with W=1, gcc points out that the __packed attribute > on struct qm_eqcr_entry conflicts with the 8-byte alignment > attribute on struct qm_fd inside it: > > drivers/soc/fsl/qbman/qman.c:189:1: error:

Re: [PATCH] arm64: dts: ls1028a: fix optee node

2021-03-22 Thread Li Yang
On Thu, Mar 18, 2021 at 3:36 AM Michael Walle wrote: > > Don't enable the optee node in the SoC include. It is an optional > component and actually, if enabled, breaks boards which doesn't have it. Hi Shawn, Shall we make this a general rule? I see quite a few SoC dtsi files are having the

Re: [PATCH 0/3] arm64: dts: ls: mark crypto engine dma coherent

2021-03-09 Thread Li Yang
ine dma coherent > arm64: dts: ls1043a: mark crypto engine dma coherent > arm64: dts: ls1012a: mark crypto engine dma coherent For the series Acked-by: Li Yang > > arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + > arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 1 + > a

[PATCH 05/15] ARM: dts: ls1021a-qds: Add node for QSPI flash

2021-02-05 Thread Li Yang
Add the missing node for qspi flash. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-qds.dts b/arch/arm/boot/dts/ls1021a-qds.dts index 71bab93bc4cc..86d969d0ef68 100644 --- a/arch/arm

[PATCH 12/15] ARM: dts: ls1021a: add #dma-cells to qdma node

2021-02-05 Thread Li Yang
Add the #dma-cells to align with the dma schema. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 715932b1df58..a6342d69b4ea 100644 --- a/arch/arm/boot/dts

[PATCH 14/15] ARM: dts: ls1021a-qds: change fpga to simple-mfd device

2021-02-05 Thread Li Yang
The FPGA is not really a bus but more like an MFD device. Change the compatible string from "simple-bus" to "simple-mfd". This also fix a node name issue with simple-bus schema. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 2 +- 1 file changed, 1 inse

[PATCH 02/15] dt-bindings: i2c: imx: update schema to align with original binding

2021-02-05 Thread Li Yang
Layerscape SoCs doesn't use ipg as clock name. Remove the clock name requirement in the schema. Also the original binding doesn't enforce the order of "tx" and "rx" in dma-names. Both orders are used extensively in existing dtses, update the schema to allow both. Si

[PATCH 13/15] ARM: dts: ls1021a: add #power-domain-cells for power-controller node

2021-02-05 Thread Li Yang
Add the #power-domain-cells for power-controller node as required by the schema. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index a6342d69b4ea..cf2b5ad42a65 100644

[PATCH 15/15] ARM: dts: ls1021a-tsn: remove undocumented property "position" from mma8452 node

2021-02-05 Thread Li Yang
Property "postion" is not documented in the mma8452 binding. Remove it to resolve the error in "make dtbs_check" Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-tsn.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts b/arch/

[PATCH 03/15] dt-bindings: memory: fsl: convert ifc binding to yaml schema

2021-02-05 Thread Li Yang
Convert the txt binding to yaml format and add description. Also updated the recommended node name to ifc-bus to align with the simple-bus node name requirements. Signed-off-by: Li Yang --- .../bindings/memory-controllers/fsl/ifc.txt | 82 -- .../bindings/memory-controllers/fsl

[PATCH 08/15] ARM: dts: ls1021a: breakup long values in thermal node

2021-02-05 Thread Li Yang
Breakup long values to pass the schema check. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 72 +- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 215a3d928ec9

[PATCH 11/15] ARM: dts: ls1021a: fix memory node for schema check

2021-02-05 Thread Li Yang
Fix the following error from "make dtbs_check" memory: False schema does not allow ... Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.

[PATCH 09/15] ARM: dts: ls1021a: fix ifc node to follow binding schema

2021-02-05 Thread Li Yang
Breakup long values in the ifc node. Change the node name to ifc-bus to follow the schema of simple-bus and disable the bus in the SoC dtsi file to be enabled only in board dts files. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 6 +++--- arch/arm/boot/dts/ls1021a.dtsi| 3

[PATCH 06/15] ARM: dts: ls1021a: update pcie nodes for dt-schema check

2021-02-05 Thread Li Yang
Break up long values to pass dt-schema checks. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 4bf6320c85d9..959a3c85b83e 100644

[PATCH 00/15] Cleanup of LS1021a device trees

2021-02-05 Thread Li Yang
This is a series of patches trying to cleanup the LS1021a based device trees including: - Add missing nodes - Update to use SPDX tags - Fix existing schema check issues in dts - Update/convert related bindings to deal with some check issues Li Yang (15): dt-bindings: arm: fsl: add ls1021a-tsn

[PATCH 01/15] dt-bindings: arm: fsl: add ls1021a-tsn board

2021-02-05 Thread Li Yang
Add the missing board in the binding docuemnt. Signed-off-by: Li Yang --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 297c87f45db8

[PATCH 07/15] ARM: dts: ls1021a: fix board compatible to follow binding schema

2021-02-05 Thread Li Yang
Align the compatible strings with the board binding defined in schema file. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-tsn.dts | 1 + arch/arm/boot/dts/ls1021a.dtsi| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts b/arch/arm

[PATCH 04/15] ARM: dts: ls1021a: change to use SPDX identifiers

2021-02-05 Thread Li Yang
Replace the license text with SPDX identifiers. In the mean while updated copyright years for previous changes. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 46 ++- arch/arm/boot/dts/ls1021a-twr.dts | 46 ++- arch/arm

[PATCH 10/15] ARM: dts: ls1021a: remove regulators simple-bus

2021-02-05 Thread Li Yang
There is no regulator bus in hardware. So move the regulator nodes out and remove the regulators simple-bus. This also make the dts align with the simple-bus schema. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 19 ++- arch/arm/boot/dts/ls1021a-twr.dts | 19

Re: [PATCHv3 1/7] PCI: dwc: Fix a bug of the case dw_pci->ops is NULL

2021-01-28 Thread Li Yang
On Fri, Jan 8, 2021 at 3:29 AM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > The dw_pci->ops may be a NULL, and fix it by adding one more check. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Rob Herring > Acked-by: Gustavo Pimentel Hi Bjorn, This is causing many layerscape platforms to

Re: [PATCH v6 04/49] soc: fsl: qe: introduce qe_io{read,write}* wrappers

2021-01-19 Thread Li Yang
On Tue, Jan 19, 2021 at 11:35 AM Christophe Leroy wrote: > > Hi Rasmus, > > Le 28/11/2019 à 15:55, Rasmus Villemoes a écrit : > > The QUICC engine drivers use the powerpc-specific out_be32() etc. In > > order to allow those drivers to build for other architectures, those > > must be replaced by

Re: [PATCH 02/20] ethernet: ucc_geth: fix definition and size of ucc_geth_tx_global_pram

2020-12-08 Thread Li Yang
On Sat, Dec 5, 2020 at 1:21 PM Rasmus Villemoes wrote: > > Table 8-53 in the QUICC Engine Reference manual shows definitions of > fields up to a size of 192 bytes, not just 128. But in table 8-111, > one does find the text > > Base Address of the Global Transmitter Parameter RAM Page. [...] >

Re: [PATCH] net/ethernet/freescale: Fix incorrect IS_ERR_VALUE macro usages

2020-11-25 Thread Li Yang
On Tue, Nov 24, 2020 at 8:00 PM liwei (GF) wrote: > > Hi Yang, > > On 2020/11/25 6:13, Li Yang wrote: > > On Tue, Nov 24, 2020 at 3:44 PM Li Yang wrote: > >> > >> On Tue, Nov 24, 2020 at 12:24 AM Wei Li wrote: > >>> > >>> IS

[GIT PULL] soc/fsl driver fix for 5.10

2020-11-25 Thread Li Yang
Hi arm-soc maintainers, Please find the pull request for NXP/FSL SoC drivers. Regards, Leo The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at:

[GIT PULL] soc/fsl driver changes for next (v5.11)

2020-11-25 Thread Li Yang
Hi arm-soc maintainers, Please find the pull request for NXP/FSL SoC drivers. Regards, Leo The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at:

Re: [PATCH] net/ethernet/freescale: Fix incorrect IS_ERR_VALUE macro usages

2020-11-24 Thread Li Yang
On Tue, Nov 24, 2020 at 3:44 PM Li Yang wrote: > > On Tue, Nov 24, 2020 at 12:24 AM Wei Li wrote: > > > > IS_ERR_VALUE macro should be used only with unsigned long type. > > Especially it works incorrectly with unsigned shorter types on > > 64bit machine

Re: [PATCH] net/ethernet/freescale: Fix incorrect IS_ERR_VALUE macro usages

2020-11-24 Thread Li Yang
On Tue, Nov 24, 2020 at 12:24 AM Wei Li wrote: > > IS_ERR_VALUE macro should be used only with unsigned long type. > Especially it works incorrectly with unsigned shorter types on > 64bit machines. This is truly a problem for the driver to run on 64-bit architectures. But from an earlier

Re: [EXT] Re: [v2 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt

2020-11-23 Thread Li Yang
On Thu, Nov 5, 2020 at 5:04 PM Leo Li wrote: > > > > > -Original Message- > > From: Rasmus Villemoes > > Sent: Tuesday, November 3, 2020 2:03 AM > > To: Leo Li ; Biwen Li (OSS) ; > > shawn...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; Z.q. > > Hou ; t...@linutronix.de;

Re: [PATCH v3] soc: fsl: dpio: Get the cpumask through cpumask_of(cpu)

2020-11-23 Thread Li Yang
On Mon, Oct 19, 2020 at 9:15 PM Yi Wang wrote: > > From: Hao Si > > The local variable 'cpumask_t mask' is in the stack memory, and its address > is assigned to 'desc->affinity' in 'irq_set_affinity_hint()'. > But the memory area where this variable is located is at risk of being > modified. > >

Re: [PATCH v4 1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2020-11-23 Thread Li Yang
On Mon, Nov 2, 2020 at 1:37 AM Ran Wang wrote: > > From: Biwen Li > > Hardware issue: > - Reading register RCPM_IPPDEXPCR1 always return zero, this causes > system firmware could not get correct information and wrongly do > clock gating for all wakeup source IP during system suspend. Then >

Re: [PATCH 00/25] Rid W=1 warnings in SoC

2020-11-23 Thread Li Yang
on > Cc: Florian Fainelli > Cc: Heiko Stuebner > Cc: Jonathan Hunter > Cc: Krzysztof Kozlowski > Cc: Liam Girdwood > Cc: linux-arm-...@vger.kernel.org > Cc: linuxppc-...@lists.ozlabs.org > Cc: linux-rockc...@lists.infradead.org > Cc: linux-samsung-...@vger.kernel

Re: [PATCH 25/25] soc: fsl: qbman: qman: Remove unused variable 'dequeue_wq'

2020-11-23 Thread Li Yang
d-but-set-variable] > > Cc: Li Yang > Cc: YueHaibing > Cc: linuxppc-...@lists.ozlabs.org > Signed-off-by: Lee Jones > --- > drivers/soc/fsl/qbman/qman.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/soc/fsl/qbman/qman.c b/dr

[GIT PULL] soc/fsl drivers changes for next(v5.10)

2020-09-23 Thread Li Yang
: fsl: qbman: Fix return value on success Li Yang (1): soc: fsl: qman: fix -Wpacked-not-aligned warnings Liu Shixin (1): soc: fsl: qman: convert to use be32_add_cpu() Wang Hai (1): soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk drivers/soc/fsl/dpio/qbman

Re: [PATCH -next] soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk

2020-09-22 Thread Li Yang
On Tue, Aug 4, 2020 at 9:04 AM Wang Hai wrote: > > Fix smatch warning: > > drivers/soc/fsl/qe/ucc.c:526 > ucc_set_tdm_rxtx_clk() warn: unsigned 'tdm_num' is never less than zero. > > 'tdm_num' is u32 type, never less than zero. > > Signed-off-by: Wang Hai Applied for next. Thanks. > --- >

Re: [PATCH -next] soc/qman: convert to use be32_add_cpu()

2020-09-22 Thread Li Yang
On Sun, Sep 13, 2020 at 10:56 PM Liu Shixin wrote: > > Signed-off-by: Liu Shixin > drivers/soc/fsl/qbman/qman_test_api.c--- The patch seems to be messed up here. I have fixed that, and applied for next. Thanks. > drivers/soc/fsl/qbman/qman_test_api.c | 2 +- > 1 file changed, 1

Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-22 Thread Li Yang
On Wed, Sep 16, 2020 at 1:12 AM Ard Biesheuvel wrote: > > On 9/16/20 3:32 AM, Ran Wang wrote: > > Hi Ard, > > > > On Tuesday, September 15, 2020 7:10 PM, Ard Biesheuvel wrote: > >> Subject: Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support > >> > >> On 9/15/20 1:06 PM, kuldip dwivedi wrote: > >>>

Re: [PATCH] soc: fsl: dpio: remove set but not used 'addr_cena'

2020-09-22 Thread Li Yang
On Sun, Sep 20, 2020 at 3:20 PM Krzysztof Kozlowski wrote: > > On Thu, 10 Sep 2020 at 16:57, Jason Yan wrote: > > > > This addresses the following gcc warning with "make W=1": > > > > drivers/soc/fsl/dpio/qbman-portal.c: In function > > ‘qbman_swp_enqueue_multiple_direct’: > >

Re: [PATCH] soc: fsl: qbman: Fix return value on success

2020-09-22 Thread Li Yang
On Sun, Sep 20, 2020 at 3:27 PM Krzysztof Kozlowski wrote: > > On error the function was meant to return -ERRNO. This also fixes > compile warning: > > drivers/soc/fsl/qbman/bman.c:640:6: warning: variable 'err' set but not > used [-Wunused-but-set-variable] > > Fixes: 0505d00c8dba

Re: [EXT] Re: [PATCH 2/5] arm64: dts: lx2160a-rdb: remove useless property of rtc

2020-09-22 Thread Li Yang
On Mon, Sep 21, 2020 at 10:56 PM Biwen Li wrote: > > > > > > > > > > -Original Message- > > > From: Biwen Li > > > Sent: Monday, September 21, 2020 10:13 PM > > > To: Shawn Guo ; Biwen Li (OSS) > > > > > > Cc: alexandre.bell...@bootlin.com; Leo Li ; > > > robh...@kernel.org;

Re: [PATCH] soc: fsl: Remove bogus packed attributes from qman.h

2020-09-01 Thread Li Yang
On Mon, Aug 31, 2020 at 8:57 PM Herbert Xu wrote: > > On Tue, Sep 01, 2020 at 01:50:38AM +, Leo Li wrote: > > > > Sorry for the late response. I missed this email previously. > > > > These structures are descriptors used by hardware, we cannot have _ANY_ > > padding from the compiler. The

Re: [v3 2/2] dts: ppc: t1024rdb: remove interrupts property

2020-05-27 Thread Li Yang
: > $ hwclock.util-linux > hwclock.util-linux: select() to /dev/rtc0 > to wait for clock tick timed out > > Signed-off-by: Biwen Li Acked-by: Li Yang > --- > arch/powerpc/boot/dts/fsl/t1024rdb.dts | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/powerp

Re: [v3 1/2] dts: ppc: t4240rdb: remove interrupts property

2020-05-27 Thread Li Yang
: > $ hwclock.util-linux > hwclock.util-linux: select() to /dev/rtc0 > to wait for clock tick timed out > > Signed-off-by: Biwen Li Acked-by: Li Yang > --- > arch/powerpc/boot/dts/fsl/t4240rdb.dts | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/powerp

[GIT PULL] soc/fsl drivers changes for next(v5.8)

2020-05-27 Thread Li Yang
Hi soc maintainers, Please merge the following new changes for soc/fsl drivers. Regards, Leo The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at:

Re: [PATCH] soc: fsl: qe: Replace one-element array and use struct_size() helper

2020-05-26 Thread Li Yang
On Sun, May 24, 2020 at 9:49 PM Qiang Zhao wrote: > > On Wed, May 23, 2020 at 5:22 PM Li Yang > > -Original Message- > > From: Li Yang > > Sent: 2020年5月23日 5:22 > > To: Kees Cook > > Cc: Gustavo A. R. Silva ; Qiang Zhao > > ; linuxppc-dev ;

Re: [PATCH -next] soc: fsl: dpio: Remove unused inline function qbman_write_eqcr_am_rt_register

2020-05-22 Thread Li Yang
On Fri, May 8, 2020 at 9:13 AM YueHaibing wrote: > > There's no callers in-tree anymore since commit > 3b2abda7d28c ("soc: fsl: dpio: Replace QMAN array mode with ring mode > enqueue") > > Signed-off-by: YueHaibing Applied to next. Thanks. Regards, Leo > --- >

Re: [PATCH] soc: fsl: qe: clean up an indentation issue

2020-05-22 Thread Li Yang
On Fri, Mar 27, 2020 at 11:15 AM Colin King wrote: > > From: Colin Ian King > > There is a statement that not indented correctly, remove the > extraneous space. > > Signed-off-by: Colin Ian King Applied for next. Thanks. > --- > drivers/soc/fsl/qe/ucc.c | 2 +- > 1 file changed, 1

Re: [PATCH] soc: fsl: dpio: Prefer the CPU affine DPIO

2020-05-22 Thread Li Yang
On Fri, Apr 24, 2020 at 6:52 AM Ioana Ciornei wrote: > > From: Roy Pledge > > Use the cpu affine DPIO unless there isn't one which can happen > if less DPIOs than cores are assign to the kernel. > > Signed-off-by: Roy Pledge > Signed-off-by: Ioana Ciornei Applied for next. Thanks. Regards,

Re: [PATCH] usb: gadget: fsl: Fix a wrong judgment in fsl_udc_probe()

2020-05-22 Thread Li Yang
;> Thus adjust the error detection and corresponding exception handling. > >> Got it. > > Wow... > > > > No, don't listen to Markus when it comes to writing commit messages. > > You couldn't find worse advice anywhere. :P > > I'm actively waiting for a reply from the maintainer. Thank you very much. Sorry for the late response. Acked-by: Li Yang Regards, Leo

Re: [PATCH v3 4/5] arm64: defconfig: add MEDIA_PLATFORM_SUPPORT

2020-05-22 Thread Li Yang
vers back. > > Signed-off-by: Max Krummenacher Acked-by: Li Yang This is pretty important otherwise some of the drivers enabled in defconfig will no longer build. > > > --- > > Changes in v3: > - new patch: added 'arm64: defconfig: add MEDIA_PLATFORM_SUPPORT' now >

Re: [PATCH -next] soc: fsl: qbman: Remove unused inline function qm_eqcr_get_ci_stashing

2020-05-22 Thread Li Yang
On Fri, May 8, 2020 at 9:11 AM YueHaibing wrote: > > There's no callers in-tree anymore. > > Signed-off-by: YueHaibing Applied for next. Thanks. Regards, Leo > --- > drivers/soc/fsl/qbman/qman.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/drivers/soc/fsl/qbman/qman.c

Re: [PATCH 1/4] ahci: qoriq: Add platform dependencies

2020-05-22 Thread Li Yang
On Thu, May 7, 2020 at 6:30 AM Geert Uytterhoeven wrote: > > The Freescale QorIQ AHCI SATA controller is only present on Freescale > Layerscape SoCs. Add platform dependencies to the AHCI_QORIQ config > symbol, to avoid asking the user about it when configuring a kernel > without Layerscape

Re: [PATCH 3/4] clk: qoriq: Add platform dependencies

2020-05-22 Thread Li Yang
On Thu, May 7, 2020 at 6:31 AM Geert Uytterhoeven wrote: > > The Freescale QorIQ clock controller is only present on Freescale E500MC > and Layerscape SoCs. Add platform dependencies to the CLK_QORIQ config > symbol, to avoid asking the user about it when configuring a kernel > without E500MC or

Re: [PATCH] treewide: Replace zero-length array with flexible-array

2020-05-22 Thread Li Yang
On Thu, May 7, 2020 at 1:49 PM Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH] soc: fsl: qe: Replace one-element array and use struct_size() helper

2020-05-22 Thread Li Yang
On Mon, May 18, 2020 at 5:16 PM Gustavo A. R. Silva wrote: > > The current codebase makes use of one-element arrays in the following > form: > > struct something { > int length; > u8 data[1]; > }; > > struct something *instance; > > instance = kmalloc(sizeof(*instance) + size,

Re: [PATCH] soc: fsl: qe: Replace one-element array and use struct_size() helper

2020-05-22 Thread Li Yang
On Wed, May 20, 2020 at 10:24 PM Kees Cook wrote: > > On Wed, May 20, 2020 at 06:52:21PM -0500, Li Yang wrote: > > On Mon, May 18, 2020 at 5:57 PM Kees Cook wrote: > > > Hm, looking at this code, I see a few other things that need to be > > > fixed: > > >

Re: [PATCH v3 2/2] arm64: dts: Add ds26522 node to dts to ls1043ardb

2020-05-22 Thread Li Yang
On Tue, May 19, 2020 at 11:08 PM Qiang Zhao wrote: > > From: Zhao Qiang Maybe remove the duplicated dts in the title? > > Add ds26522 node to fsl-ls1043a-rdb.dts > > Signed-off-by: Zhao Qiang > --- > v3: > - use "arm64: dts:" format for subject > >

Re: [v2 2/2] dts: ppc: t1024rdb: remove interrupts property

2020-05-22 Thread Li Yang
On Wed, May 20, 2020 at 4:21 AM Biwen Li wrote: > > From: Biwen Li > > This removes interrupts property to drop warning as follows: > - $ hwclock.util-linux > hwclock.util-linux: select() to /dev/rtc0 > to wait for clock tick timed out > > My case: > - RTC ds1339s INT pin

Re: [v2 1/2] dts: ppc: t4240rdb: remove interrupts property

2020-05-22 Thread Li Yang
On Wed, May 20, 2020 at 4:21 AM Biwen Li wrote: > > From: Biwen Li > > This removes interrupts property to drop warning as follows: > - $ hwclock.util-linux > hwclock.util-linux: select() to /dev/rtc0 > to wait for clock tick timed out > > My case: > - RTC ds1374's INT pin is

Re: [PATCH] soc: fsl: qe: Replace one-element array and use struct_size() helper

2020-05-20 Thread Li Yang
On Mon, May 18, 2020 at 5:57 PM Kees Cook wrote: > > On Mon, May 18, 2020 at 05:19:04PM -0500, Gustavo A. R. Silva wrote: > > The current codebase makes use of one-element arrays in the following > > form: > > > > struct something { > > int length; > > u8 data[1]; > > }; > > > > struct

Re: [PATCH 0/4] qoriq: Add platform dependencies

2020-05-07 Thread Li Yang
ks for your comments! Thanks. The series looks good to me. Are we trying to merge them through the various driver subsystems or I can also pull them in through the fsl-soc tree. If we want to go through driver subsystems: Acked-by: Li Yang > > Geert Uytterhoeven (4): > ahci: qoriq

Re: [V2] dmaengine: fsl-edma: Add eDMA support for QorIQ LS1028A platform

2019-10-21 Thread Li Yang
On Mon, Oct 21, 2019 at 4:57 PM Leo Li wrote: > > > > > -Original Message- > > From: Peng Ma > > Sent: Sunday, October 20, 2019 9:22 PM > > To: vk...@kernel.org > > Cc: dan.j.willi...@intel.com; Leo Li ; > > k.kozlowsk...@gmail.com; Fabio Estevam ; > > dmaeng...@vger.kernel.org;

Re: [PATCH 0/7] towards QE support on ARM

2019-10-21 Thread Li Yang
On Mon, Oct 21, 2019 at 3:46 AM Rasmus Villemoes wrote: > > On 18/10/2019 23.52, Li Yang wrote: > > On Fri, Oct 18, 2019 at 3:54 PM Rasmus Villemoes > > wrote: > >> > >> On 18/10/2019 22.16, Leo Li wrote: > >>> > >>>> > &g

Re: [PATCH 0/7] towards QE support on ARM

2019-10-18 Thread Li Yang
On Fri, Oct 18, 2019 at 3:54 PM Rasmus Villemoes wrote: > > On 18/10/2019 22.16, Leo Li wrote: > > > >> > >> There have been several attempts in the past few years to allow building > >> the > >> QUICC engine drivers for platforms other than PPC. This is (the beginning > >> of) > >> yet another

Re: [PATCH v1] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape

2019-10-05 Thread Li Yang
On Sat, Oct 5, 2019 at 9:56 PM Shawn Guo wrote: > > On Mon, Sep 09, 2019 at 05:02:44PM +0800, Yinbo Zhu wrote: > > layerscape otg function should be supported HNP SRP and ADP protocol > > accroing to rm doc, but dwc3 code not realize it and use id pin to > > detect who is host or device(0 is host

Re: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-25 Thread Li Yang
On Tue, Sep 24, 2019 at 11:27 PM Biwen Li wrote: > > > > > > > > > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle > > > > > > > > > > an errata > > > > > > > > > > A-008646 on LS1021A > > > > > > > > > > > > > > > > > > > > Signed-off-by: Biwen Li > > > >

Re: [PATCH] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-06 Thread Li Yang
On Fri, Sep 6, 2019 at 10:20 AM Hui Song wrote: > > From: Song Hui > The English below need to be fixed. > more one gpio controller use share one interrupt, > make request interrupt to be shared. More than one gpio controllers can share one interrupt, change the driver to request shared irq.

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-20 Thread Li Yang
On Tue, Aug 20, 2019 at 1:24 PM Mark Brown wrote: > > On Fri, Aug 16, 2019 at 02:40:47PM -0500, Li Yang wrote: > > On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni > > > > Most of the i2c RTCs do address wrapping which is sometimes the only way > > > to properl

Re: [PATCH 1/3] bus: fsl-mc: remove explicit device_link_del

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 1:04 AM Laurentiu Tudor wrote: > > Hi Leo, > > > -Original Message----- > > From: Li Yang > > Sent: Friday, August 16, 2019 2:13 AM > > To: Ioana Ciornei > > Cc: Laurentiu Tudor ; Roy Pledge > > ; lkml > > Su

[GIT PULL] updates to soc/fsl drivers for v5.4

2019-08-16 Thread Li Yang
Hi arm-soc maintainers, Please look into the following changes and merge them if they look good. Regards, Leo The following changes since commit 157eed91b374c42eb264157366daf3dabc8bc816: Merge tag 'tee-optee-for-5.4' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/drivers

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni wrote: > > On 16/08/2019 10:50:49-0500, Li Yang wrote: > > On Fri, Aug 16, 2019 at 3:05 AM Alexandre Belloni > > wrote: > > > > > > On 16/08/2019 10:46:36+0800, Biwen Li wrote: > > > > Issue:

Re: [PATCH 3/3] soc: fsl: FSL_MC_DPIO selects directly FSL_GUTS

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 9:59 AM Roy Pledge wrote: > > On 8/15/2019 7:09 PM, Li Yang wrote: > > On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: > >> Make FSL_MC_DPIO select directly FSL_GUTS. Without this change we could > >> be in a situation where both FSL_M

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Li Yang
On Fri, Aug 16, 2019 at 3:05 AM Alexandre Belloni wrote: > > On 16/08/2019 10:46:36+0800, Biwen Li wrote: > > Issue: > > - # hwclock -w > > hwclock: RTC_SET_TIME: Invalid argument > > > > Why: > > - Relative patch: https://lkml.org/lkml/2019/4/3/55 , this patch > > will always

Re: [PATCH v3 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices

2019-08-15 Thread Li Yang
On Thu, Aug 1, 2019 at 3:20 PM Roy Pledge wrote: > > Most DPAA1 devices do not support a soft reset which is an issue if > Kexec starts a new kernel. This patch series allows Kexec to function > by detecting that the QBMan device was previously initialized. > > The patches fix some issues with

Re: [PATCH 2/3] soc: fsl: dpio: remove explicit device_link_remove

2019-08-15 Thread Li Yang
On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: > > Starting with commit 72175d4ea4c4 ("driver core: Make driver core > own stateful device links") stateful device links are owned by the > driver core and should not be explicitly removed on device unbind. > Delete all device_link_remove

Re: [PATCH 1/3] bus: fsl-mc: remove explicit device_link_del

2019-08-15 Thread Li Yang
On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: > > Starting with commit 72175d4ea4c4 ("driver core: Make driver core own > stateful device links") stateful device links are owned by the driver > core and should not be explicitly removed on device unbind. Delete all > device_link_del

Re: [PATCH 3/3] soc: fsl: FSL_MC_DPIO selects directly FSL_GUTS

2019-08-15 Thread Li Yang
On Wed, Jul 3, 2019 at 9:58 AM Ioana Ciornei wrote: > > Make FSL_MC_DPIO select directly FSL_GUTS. Without this change we could > be in a situation where both FSL_MC_DPIO and SOC_BUS are enabled but > FSL_GUTS is not. > > Signed-off-by: Ioana Ciornei > --- > drivers/soc/fsl/Kconfig | 2 +- > 1

Re: [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A

2019-08-15 Thread Li Yang
On Wed, Aug 14, 2019 at 2:26 AM Yinbo Zhu wrote: > > Adding compatible string "ls1028a-dcfg" to initialize guts driver > for ls1028 and SoC die attribute definition for LS1028A > > Signed-off-by: Yinbo Zhu Applied for next. > --- > drivers/soc/fsl/guts.c | 6 ++ > 1 file changed, 6

Re: [PATCH 3/3] arm64: dts: ls1088a: Revise gpio registers to little-endian

2019-07-31 Thread Li Yang
On Wed, May 29, 2019 at 3:32 AM Chuanhua Han wrote: > > Since fsl-ls1088a Soc GPIO registers are used as little endian, > the patch adds the little-endian attribute to each gpio node. > > Signed-off-by: Chuanhua Han Acked-by: Li Yang > --- > arch/arm64/boot/dts/freescale

Re: [PATCH 1/2] arm64: dts: ls1028a: Fix GPIO work fail.

2019-07-31 Thread Li Yang
On Thu, Jul 18, 2019 at 4:59 AM Hui Song wrote: > Change the title to be something like: arm64: dts: ls1028a: fix gpio nodes > From: Song Hui > > Add ls1028a device specify compatible. Please submit a separate patch to update the device tree binding too. > Make gpio as little-endian deal.

Re: [PATCH v6 40/57] soc: Remove dev_err() usage after platform_get_irq()

2019-07-31 Thread Li Yang
On Tue, Jul 30, 2019 at 10:01 PM Stephen Boyd wrote: > > Quoting Leo Li (2019-07-30 14:26:01) > > > > The patch looks good to me too. I can take it through my tree with your > > reviewed-by. > > > > I split it for you just in case you want different patches. > Thanks. I will take the fsl/nxp

Re: [v2,1/2] rtc/fsl: add FTM alarm driver as the wakeup source

2019-07-10 Thread Li Yang
On Wed, Jul 10, 2019 at 6:35 AM Biwen Li wrote: > > For the paltforms including LS1012A, LS1021A, LS1028A, LS1043A, > LS1046A, LS1088A, LS208xA that has the FlexTimer > module, implementing alarm functions within RTC subsystem > to wakeup the system when system going to sleep (work with RCPM

Re: [v2,2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver

2019-07-10 Thread Li Yang
On Wed, Jul 10, 2019 at 6:35 AM Biwen Li wrote: > > The patch adds binding for ftm alarm driver > > Signed-off-by: Biwen Li Looks like I commented the older version just now. Adding Rob to this version too. > --- > Change in v2: > - replace ls1043a with ls1088a as example > - add rcpm

Re: [PATCH 2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver

2019-07-10 Thread Li Yang
On Fri, Jul 5, 2019 at 6:26 AM Biwen Li wrote: > > The patch adds binding for ftm alarm driver > > Signed-off-by: Biwen Li Please add dts maintainer for binding patches. I have added Rob. > --- > .../devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt | 33 > ++ > 1 file

Re: [PATCH] arm64: defconfig: Enable FSL_EDMA driver

2019-06-12 Thread Li Yang
On Thu, May 9, 2019 at 10:15 PM Shawn Guo wrote: > > On Mon, Apr 22, 2019 at 01:30:56PM -0500, Li Yang wrote: > > Enables the FSL EDMA driver by default. This also works around an issue > > that imx-i2c driver keeps deferring the probe because of the DMA is not > > ready

Re: [PATCH v2] arm64: dts: ls1028a: Fix CPU idle fail.

2019-06-11 Thread Li Yang
On Thu, May 23, 2019 at 3:52 AM Shawn Guo wrote: > > On Fri, May 17, 2019 at 12:57:53PM +0800, Ran Wang wrote: > > PSCI spec define 1st parameter's bit 16 of function CPU_SUSPEND to > > indicate CPU State Type: 0 for standby, 1 for power down. In this > > case, we want to select standby for CPU

[GIT PULL v2] updates to soc/fsl drivers for next(v5.3)

2019-06-05 Thread Li Yang
Hi arm-soc maintainers, This is a rebase of patches that missed 5.2 merge window together with some new patches for QE. Please help to review and merge it. We would like this to be merged earlier because there are other patches depending on patches in this pull request. After this is merged in

Re: [PATCH v3 0/6] soc/fsl/qe: cleanups and new DT binding

2019-06-04 Thread Li Yang
On Mon, May 13, 2019 at 6:17 AM Rasmus Villemoes wrote: > > This small series consists of some small cleanups and simplifications > of the QUICC engine driver, and introduces a new DT binding that makes > it much easier to support other variants of the QUICC engine IP block > that appears in the

Re: [PATCH 2/3] gpio: mpc8xxx: Use IRQF_SHARED mode to request IRQ

2019-05-29 Thread Li Yang
On Wed, May 29, 2019 at 3:33 AM Chuanhua Han wrote: > > GPIO3 and GPIO4 controllers share one irq number on Layerscape > platform. In the current implementation, only one GPIO controller > can register successfully. > > This patch is to allow two controllers to share a single interrupt > number.

Re: [PATCH 1/3] gpio: mpc8xxx: Enable port input and interrupt

2019-05-29 Thread Li Yang
On Wed, May 29, 2019 at 3:33 AM Chuanhua Han wrote: > > The GPIO Input Buffer Enable register is used to control the input > enable of each individual GPIO port. When an individual GPIO port's > direction is set to input (GPIO_GPDIR[DRn=0]), the associated > input enable must be set

Re: [PATCH][next] soc: fsl: fix spelling mistake "Firmaware" -> "Firmware"

2019-05-29 Thread Li Yang
On Tue, May 21, 2019 at 3:57 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in a pr_err message. Fix it. > > Signed-off-by: Colin Ian King Applied. Thanks! Regards, Leo > --- > drivers/soc/fsl/dpaa2-console.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] arm64: dts: ls1028a: Add temperature sensor node

2019-05-24 Thread Li Yang
On Thu, May 23, 2019 at 8:30 PM Yuantian Tang wrote: > > Add nxp sa56004 chip node for temperature monitor. > > Signed-off-by: Yuantian Tang > --- > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 5 + > arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 5 + > 2 files changed, 10

Re: [PATCH 4/4] xHCI: Handle dwc3 erratum on USB3 HW LPM feature.

2019-05-23 Thread Li Yang
On Fri, Jan 5, 2018 at 4:00 AM Ran Wang wrote: > > Synopsys STARS ticket: 9969472(A-010131) > > Description: This erratum is applicable for the USB 3.0 Super > Speed host mode operation. When the U2 timer expires while in > U1 mode, the USB 3.0 controller completes a U1->U2 entry operation >

[GIT PULL] updates to soc/fsl drivers for v5.3

2019-05-20 Thread Li Yang
Hi arm-soc maintainers, This is a rebase of patches that missed 5.2 merge window. Please help to review and merge it. Thanks. Regards, Leo The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git

[GIT PULL] updates to soc/fsl drivers for v5.2

2019-05-01 Thread Li Yang
Hi arm-soc maintainers, Please help to merge for-next patches for the upcoming merge window. Thanks Regards, Leo The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the Git repository at:

[GIT PULL] fixes to soc/fsl drivers for v5.1

2019-05-01 Thread Li Yang
Hi arm-soc maintainers, Please help to merge the following fix for soc/fsl drivers. Thanks, Leo The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the Git repository at:

  1   2   3   4   >