[GIT PULL] please pull fsl-qoriq-master-2025-10-10

2025-10-09 Thread Peng Fan
Hi Tom, please pull fsl-qoriq-master-2025-10-10 --- crypto/rng: double the entropy delay interval for retry Make RAMBOOT_PBL only be valid for PowerPC or ls1021A --- CI: https://source.denx.de/

Re: [PATCH] crypto/rng: double the entropy delay interval for retry

2025-10-02 Thread Peng Fan
On Fri, Sep 26, 2025 at 10:36:23AM +, Gaurav Jain wrote: > > >> -Original Message----- >> From: Peng Fan (OSS) >> Sent: Tuesday, September 23, 2025 2:43 PM >> To: Gaurav Jain >> Cc: Horia Geanta ; Pankaj Gupta >> ; Varun Sethi ; Silvano Di N

Re: [PATCH] common: Make MMU_PGPROT depend on !SANDBOX

2025-10-02 Thread Peng Fan
X. > >Signed-off-by: Tom Rini Reviewed-by: Peng Fan

Re: [PATCH] w1-eeprom: Make use of static keyword in drivers

2025-09-28 Thread Peng Fan
mple. > >Signed-off-by: Tom Rini Reviewed-by: Peng Fan

[PATCH 00/10] firmware: scmi: various update

2025-09-26 Thread Peng Fan (OSS)
anymore, I volunteer to help here. Some items on list that I am thinking to add: - align with linux kernel to use cpu_to_le32 and le32_to_cpu, but have not find a good way to use the helpers. - Add SCMI version negotiation as Linux Kernel Signed-off-by: Peng Fan --- Peng Fan (10): firmware

[PATCH 04/10] firmware: scmi: Add error code IN_USE

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan In SCMI spec 3.2, there is an update: Add IN_USE error code for usage with Pin control protocol So add the error decoding for IN_USE. Signed-off-by: Peng Fan --- drivers/firmware/scmi/scmi_agent-uclass.c | 1 + include/scmi_protocols.h | 1 + 2 files changed

[PATCH 10/10] MAINTAINERS: Add an entry for SCMI

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan Add an entry for SCMI and add myself as maintainer Signed-off-by: Peng Fan --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b030242a2d894863e477c8fa0f4e83d640225569..b66543962189b358cb29f50186d722cad8740b4b 100644

[PATCH 09/10] cmd: scmi: Add pin control protocol name

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan Pin control protocol name was not added into 'protocol_name' array, however Pin control was supported on i.MX95. So add it. Signed-off-by: Peng Fan --- cmd/scmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/scmi.c b/cmd/sc

[PATCH 08/10] clk: scmi: Replace log_debug with dev_dbg

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan Use dev_dbg to dump device name, dev_dbg also a encapsulation call to log() and print(). So it is ok to use dev_dbg. Signed-off-by: Peng Fan --- drivers/clk/clk_scmi.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/clk

[PATCH 07/10] firmware: scmi: mailbox: Support arm,max_rx_timeout_ms

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan Per devicetree bindings: arm,max-rx-timeout-ms indicates an optional time value, expressed in milliseconds, representing the transport maximum timeout value for the receive channel. The value should be a non-zero value if set. Support this property if platform set it to a non

[PATCH 05/10] firmware: scmi: use PAGE_SIZE alignment for ARM64

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan For ARMv7, the alignment could be SECTION size. But for ARM64, use PAGE_SIZE. Signed-off-by: Peng Fan --- drivers/firmware/scmi/smt.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c

[PATCH 03/10] firmware: scmi: smt: Dump more info

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan "Buffer too small" is too vague, dump more info to make it easier to debug issues. Change dev_dbg to dev_err when buffer is too small. Signed-off-by: Peng Fan --- drivers/firmware/scmi/smt.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) di

[PATCH 02/10] firmware: scmi: smt: Use io helpers

2025-09-26 Thread Peng Fan (OSS)
From: Peng Fan It is not good practice to directly use "hdr->x" to read/write the hdr, because the SCMI buffer may not mapped as normal memory. Following Linux Kernel, using ioread32/iowrite32/memcpy_[from,to]io for smt header read, write. Signed-off-by: Peng Fan --- drivers/

[PATCH] MAINTAINERS: Update MMC/POWER/FREESCALE QORIQ

2025-09-25 Thread Peng Fan (OSS)
From: Peng Fan - Update MMC entry to match 'mmc' using 'N' - Add myself as POWER maintainer for regulator and pmic patches. I have started to handle relevant patches. - Update QORIQ maintainer. Priyanka has moved to work on other stuff, I have been handling this for quit

Re: [PATCH v2] power: regulator: Fix incorrect use of binary and

2025-09-24 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 01 Sep 2025 16:00:46 +0100, Andrew Goodbody wrote: > In regulator_list_autoset there is a test for ret being non-zero and > error being zero but it uses the binary '&' instead of the logical '&&' > which could well lead to un

Re: [PATCH] crypto/rng: double the entropy delay interval for retry

2025-09-23 Thread Peng Fan
Hi Gaurav, On Fri, Sep 05, 2025 at 03:03:48PM +0530, Gaurav Jain wrote: >during entropy evaluation, if the generated samples fail >any statistical test, then, all of the bits will be discarded, >and a second set of samples will be generated and tested. > >the entropy delay interval should be doubl

Re: [PATCH v2] power: regulator: Fix incorrect use of binary and

2025-09-23 Thread Peng Fan
results. Correct this to use the >logical '&&' instead. > >This issue found by Smatch. > >Signed-off-by: Andrew Goodbody Reviewed-by: Peng Fan

RE: [PATCH] arm: armv8: Fix spl recover data section broken

2025-09-20 Thread Peng Fan
, so restore never been executed in > warm reboot. > > Fixes: 1c37e59bfbba ("arm: armv8: Improve SPL data save and restore > implementation") > Signed-off-by: Ye Li Reviewed-by: Peng Fan

Re: [PATCH] imx: imx8ulp: Call DM post init function for init_r phase

2025-09-19 Thread Peng Fan
On Fri, Sep 19, 2025 at 02:58:32PM +0800, Ye Li wrote: >The ELE MU driver needs to be probed at init_r phase as well because >some ELE APIs will be called. > >Signed-off-by: Ye Li Reviewed-by: Peng Fan

Re: [PATCH] cmd: sf: align erase and write on erase block boundary

2025-09-19 Thread Peng Fan
;Signed-off-by: Viorel Suman >Signed-off-by: Ye Li Reviewed-by: Peng Fan

RE: [PATCH] power: pfuze100: Ensure loop index is incremented

2025-09-17 Thread Peng Fan
> Subject: Re: [PATCH] power: pfuze100: Ensure loop index is > incremented > > Sorry for being unclear. The original patch isn't right I think, the size > change leads me to believe that we're changing the loop behavior. > Looking harder at the code in question, it seems like it's an odd way to >

[PATCH] power: regulator: pfuze100: Fix accessing the regulator desc

2025-09-16 Thread Peng Fan (OSS)
From: Peng Fan se_desc loop check is wrong, it relies on the desc always has the expected name to end of the loop. It works because the device tree has the expected name as of now, but this may not be always true. Drop se_desc by moving the check into probe and fix the loop check. Reported-by

RE: [PATCH v2 3/3] mmc: socfpga_dw_mmc: Enable/disable SDMMC clock via API

2025-09-10 Thread Peng Fan
alability of the driver for various SoCFPGA devices. > > Signed-off-by: Alif Zakuan Yuslaimi LGTM: Reviewed-by: Peng Fan

RE: [PATCH v2 1/3] include: dt-bindings: clk: agilex: Add Agilex clock definitions header file

2025-09-10 Thread Peng Fan
> Subject: [PATCH v2 1/3] include: dt-bindings: clk: agilex: Add Agilex > clock definitions header file > From: Alif Zakuan Yuslaimi > > Introduce header file to define the clock indexes for the Agilex platform. > > Signed-off-by: Alif Zakuan Yuslaimi > --- > include/dt-bindings/clock/agilex-c

Re: [PATCH v3] imx8: Add ahab_commit command

2025-09-08 Thread Peng Fan
ion into the SECO fuses. > >Signed-off-by: John Ripple Reviewed-by: Peng Fan

RE: [PATCH 2/2] mmc: adi_sdhci: Update headers

2025-09-07 Thread Peng Fan
> +++ b/drivers/mmc/adi_sdhci.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > Reviewed-by: Peng Fan

Re: [PATCH] mmc: core: drop space before newline in trace printf

2025-09-03 Thread Peng Fan (OSS)
From: Peng Fan On Fri, 29 Aug 2025 07:41:31 +0530, Bhimeswararao Matsa wrote: > Remove unnecessary whitespace before '\n' in trace printf > format strings (checkpatch warning QUOTED_WHITESPACE_BEFORE_NEWLINE). > > No functional change intended. > > Applied, th

Re: [PATCH v3 1/2] power: pmic: pca9450: Add support for system reset

2025-09-01 Thread Peng Fan (OSS)
From: Peng Fan On Thu, 28 Aug 2025 13:24:04 +0200, Primoz Fiser wrote: > The family of PCA9450 PMICs have the ability to perform system resets. > Restarting via PMIC is preferred method of restarting the system as all > the peripherals are brought to a know state after a power-c

Re: [PATCH 0/6] Use correct LDO5 control registers for PCA9450

2025-08-31 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 11 Aug 2025 15:11:56 +0200, Frieder Schrempf wrote: > From: Frieder Schrempf > > This is a port for the following series in Linux, which is already > available in mainline: > > https://patchwork.kernel.org/project/linux-arm-kernel/cover/202412181

Re: [PATCH 00/11] power: update compatibles for PMICs used by exynos devices

2025-08-31 Thread Peng Fan (OSS)
From: Peng Fan On Fri, 22 Aug 2025 20:33:22 +0200, Henrik Grimler wrote: > To allow for using Linux DTSes through OF_UPSTREAM, we need to support > more compatibles in the relevant pmic drivers. This series therefore > adds support to drivers for the compatibles used by Linux DTSes, a

Re: [PATCH] mmc: iproc_sdhci: Cannot test unsigned variable for negative

2025-08-31 Thread Peng Fan (OSS)
From: Peng Fan On Wed, 30 Jul 2025 17:52:56 +0100, Andrew Goodbody wrote: > In sdhci_iproc_execute_tuning the variable tuning_loop_counter is > unsigned and therefore will always fail the test for it being less than > 0. Fix this by changing the variable type to be s8. > > This

[GIT PULL] Please pull mmc-power-next-2025-09-01

2025-08-31 Thread Peng Fan
Hi Tom, Please pull mmc-power-next-2025-09-01 Update compatibles for PMICs used by exynos devices Support system reset and reset status for pca9450 Fix for pca9450 LDO5 registers and drop deprecated sd-vsel-gpios Two minor fixes fou

RE: [PATCH 1/1] spl: SPL_DM_SPI_FLASH depends on SPL_DM_SPI

2025-08-28 Thread Peng Fan
> Subject: [PATCH 1/1] spl: SPL_DM_SPI_FLASH depends on SPL_DM_SPI > > The SPI flash driver does not build without SPI support enabled. > > Fixes: 4151f4f822bb ("spl: Rework and tighten some dependencies") > Signed-off-by: Heinrich Schuchardt > Acked-by: Peng Fan

Re: [PATCH v2 1/2] power: pmic: pca9450: Add support for system reset

2025-08-28 Thread Peng Fan
Hi Primoz, Would you please rebase to https://source.denx.de/u-boot/custodians/u-boot-mmc.git branch: next I am collecting the power related patches, but there is conflict when I apply this patchset. Thanks, Peng

[GIT PULL] Please pull fsl-qoriq-next-2025-08-27 for next

2025-08-27 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-next-2025-08-27 for next - Various patches from Andrew to address issues found by Smatch Reinitialize job ring in crypto fsl rng Set scaler values for fsl dspi CS-SCK and SCK-CS -

Re: [PATCH] fsl_dspi: set scaler values for CS-SCK and SCK-CS delays

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Wed, 20 Aug 2025 10:17:19 +0200, Tomas Alvarez Vanoli wrote: > These values were calculated but not set. > They are required for the calculation of the delays, as stated in the > "QorIQ LS1043A Reference Manual, Rev. 6, 07/2020" page 2172. > > The de

Re: [PATCH] serial: lpuart: Return value from correct variable

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 11 Aug 2025 17:25:17 +0100, Andrew Goodbody wrote: > In get_lpuart_clk_rate if the call to clk_get_rate returns an error then > the call to return should pass the value of the error which is in rate > rather than ret which will be 0 as its value is not affecte

Re: [PATCH] drivers: qe: avoid double free()

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Fri, 08 Aug 2025 11:29:33 +0100, Andrew Goodbody wrote: > Avoid calling free(addr) twice if the device for ucode is not found. > This patch repeats a similar fix but that only applied to code without > CONFIG_TFABOOT enabled. This patch applies to the

Re: [PATCH] ddr: fsl: Provide initial value for zqcs_init

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Thu, 24 Jul 2025 16:32:55 +0100, Andrew Goodbody wrote: > In the case of !zq_en zqcs_init is never assigned to although its value > is used. Correct by initialising zqcs_init to 0. > > This issue was found by Smatch. > > Applied, thanks! [1/1] ddr: fs

Re: [PATCH 0/5] net: fsl: Fix some Smatch reports

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 04 Aug 2025 17:56:54 +0100, Andrew Goodbody wrote: > Smatch reported some issues with this driver. Firstly a copy/paste error > resulting in the wrong return value being attempted to be used. Secondly > some variables being dereferenced before being NULL checke

Re: [PATCH 0/3] net: fm: Fix some Smatch reports

2025-08-27 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 04 Aug 2025 17:03:56 +0100, Andrew Goodbody wrote: > Smatch reports some issues with incorrect tests for timeout and > dereferencing before a NULL check. Fix them. > > Applied, thanks! [1/3] net: fm: Correct test for timeout

Re: [PATCH] drivers: crypto: fsl: rng: Reinitialize job ring descriptor for each iteration

2025-08-27 Thread Peng Fan
On Mon, Jul 14, 2025 at 06:01:28PM +, Anthony Pighin (Nokia) wrote: >u-boot internals were being corrupted following an EFI callback to >get_rng(). One of the many footprints was a corruption of the EFI >protocols linked list. > >A request for >16 bytes of random data is broken into smaller req

RE: [PATCH 0/6] Use correct LDO5 control registers for PCA9450

2025-08-26 Thread Peng Fan
> Subject: Re: [PATCH 0/6] Use correct LDO5 control registers for > PCA9450 > > Hi Jaehoon, > > Am 11.08.25 um 15:11 schrieb Frieder Schrempf: > > From: Frieder Schrempf > > > > This is a port for the following series in Linux, which is already > > available in mainline: > > > > > https://eur01.

Re: [PATCH 2/2] clk: scmi: add compatibility for clock version 3.0 and onwards

2025-08-17 Thread Peng Fan
On Wed, Aug 13, 2025 at 03:59:36PM +0530, Kamlesh Gurudasani wrote: >Clock version 3.0 specified in ARM SCMI Platform design document >v3.2, adds extended_config_val parameter in CLOCK_CONFIG_SET. > >The SCMI server with clock version 3.0 rejects the message if >they don't have this field. > >Add s

Re: [PATCH 1/2] clk: scmi: fix set_parent support when CCF is not being used

2025-08-17 Thread Peng Fan
On Wed, Aug 13, 2025 at 03:59:35PM +0530, Kamlesh Gurudasani wrote: >When not using Common clock framework(CCF), calls to >scmi_clk_set_parent returns -ENOTSUPP, which should not be the case. >Fix that. > >Fixes: 15fdfef6642c ("clk: scmi: check the clock state/parent/rate >control permissions) > >S

Re: [PATCH] mmc: sdhci-cadence6: fix SPDX-License-Identifier to GPL-2.0-or-later

2025-08-17 Thread Peng Fan
On Thu, Aug 14, 2025 at 02:04:22PM +0200, Max Merchel wrote: >GPL-2.0-or-platform_driver is not the correct license identifier. >The -or- indicates that this is the -or-later variant of GPL-2.0. >Furthermore, sdhci.h and sdhci-cadence.h are also licensed under >GPL-2.0-or-later. >The GPL-2.0-or-pl

Re: [PATCH v2] imx8: Add ahab_commit command for imx8

2025-08-17 Thread Peng Fan
On Fri, Aug 15, 2025 at 04:49:07PM +, John Ripple wrote: >The ahab_commit command allows the user to commit into the SECO fuses >that control the SRK key revocation information. This is used to Revoke >compromised SRK keys. > >To use ahab_commit, the boot container must be built with an SRK >re

RE: [PATCH] tools: imx8image: Make imx8image_check_params() static

2025-08-12 Thread Peng Fan
> Subject: [PATCH] tools: imx8image: Make imx8image_check_params() > static > > We are trying to enable -Wmissing-prototypes and this functiion is only > used locally. Mark it as static. > > Signed-off-by: Ilias Apalodimas Acked-by: Peng Fan

Re: [PATCH] mmc: owl_mmc: Do not dereference data before NULL check

2025-08-07 Thread Peng Fan
+ Amit On Tue, Aug 05, 2025 at 10:22:10AM +0100, Andrew Goodbody wrote: >On 05/08/2025 05:00, Peng Fan wrote: >> On Thu, Jul 31, 2025 at 12:11:47PM +0100, Andrew Goodbody wrote: >> > In owl_mmc_prepare_data there is a NULL check for the pointer data but >> > it happens

Re: [PATCH 2/2] mmc: am654_sdhci: Disable HS400 for AM62P SR1.0 and SR1.1

2025-08-04 Thread Peng Fan
h Mendez LGTM: Reviewed-by: Peng Fan

Re: [PATCH v1] mmc: socfpga_dw_mmc: Retrieve clock manager address via clocks phandle

2025-08-04 Thread Peng Fan
On Sun, Aug 03, 2025 at 05:47:10PM -0700, alif.zakuan.yusla...@altera.com wrote: >From: Alif Zakuan Yuslaimi > >Improve the current clock manager base address retrieval by probing the >clocks phandle under the mmc node in the device tree instead of probing >the clock manager node name in the devic

Re: [PATCH] mmc: rockchip_sdhci: Do not test unsigned for being less than 0

2025-08-04 Thread Peng Fan
Signed-off-by: Andrew Goodbody Reviewed-by: Peng Fan

Re: [PATCH] mmc: owl_mmc: Do not dereference data before NULL check

2025-08-04 Thread Peng Fan
On Thu, Jul 31, 2025 at 12:11:47PM +0100, Andrew Goodbody wrote: >In owl_mmc_prepare_data there is a NULL check for the pointer data but >it happens after data has already been dereferenced. Refactor the code >so that the NULL check happens before any code dereferences data. > >This issue was found

Re: [PATCH 0/2] mmc: octeontx_hsmmc: Fix two Smatch issues

2025-08-04 Thread Peng Fan
-off-by: Andrew Goodbody >--- >Andrew Goodbody (2): > mmc: octeontx_hsmmc: Need parens in expression > mmc: octeontx_hsmmc: Remove impossible test > Reviewed-by: Peng Fan

Re: [PATCH 0/2] mmc: gen_atmel_mci: Fix some Smatch issues

2025-08-04 Thread Peng Fan
Andrew Goodbody >--- LGTM: Reviewed-by: Peng Fan

Re: Smatch error report in drivers/misc/imx_ele/fuse.c

2025-08-04 Thread Peng Fan
On Tue, Jul 29, 2025 at 12:18:39PM +0100, Andrew Goodbody wrote: >Smatch reports the following error. > >drivers/misc/imx_ele/fuse.c:218 fuse_sense() error: buffer overflow 'data' 4 ><= 7 > >Looking at the code I can see that at line 198, word is checked to be less >than 8. Later at line 203 data i

Re: [PATCH 9/9] ddr: imx9: Add errata registers support

2025-07-31 Thread Peng Fan
On Wed, Jul 30, 2025 at 10:51:35AM -0300, Fabio Estevam wrote: >On Sun, Jul 27, 2025 at 11:14???PM Peng Fan (OSS) wrote: >> >> From: Viorel Suman >> >> Collect errata registers values after the training and restore errata >> registers values before starting quick

Re: [PATCH] mmc: iproc_sdhci: Cannot test unsigned variable for negative

2025-07-30 Thread Peng Fan
found by Smatch. > Per my understanding GCC default takes char as signed. But after doing some study, char could be signed or unsigned. So it make sense to use s8 to avoid potential issue. Reviewed-by: Peng Fan Thanks, Peng

RE: [PATCH 8/9] ddr: imx9: Implement Synopsys LPDDR PHY QuickBoot flow

2025-07-30 Thread Peng Fan
> Subject: Re: [PATCH 8/9] ddr: imx9: Implement Synopsys LPDDR PHY > QuickBoot flow > > On Sun, Jul 27, 2025 at 11:14 PM Peng Fan (OSS) > wrote: > > > > From: Viorel Suman > > > > Implement Synopsys LPDDR PHY QuickBoot flow. > > What does &quo

Re: [PATCH] mmc: bcm2835-host: Remove duplicate NULL test for cmd

2025-07-29 Thread Peng Fan
achable code following it. > >This issue was found by Smatch. > >Signed-off-by: Andrew Goodbody Reviewed-by: Peng Fan

Re: ??????: [PATCH v2 0/4] imx: add i.MX95 b0 support

2025-07-29 Thread Peng Fan
On Tue, Jul 29, 2025 at 01:39:02PM +0200, Francesco Dolcini wrote: >On Tue, Jul 29, 2025 at 02:21:19AM +, Alice Guo (OSS) wrote: >> A0 has been dropped. > >Dropping support for A0 i.MX95 SoC variant in mainline U-Boot is not a >decision from NXP. > >There are multiple boards around with such So

Re: [PATCH v2 0/7] arm64: stack backtraces

2025-07-29 Thread Peng Fan
On Fri, Jul 25, 2025 at 02:57:04PM +0200, Casey Connolly wrote: >Implement support for printing stack backtraces on ARM64, make >framepointer support configurable by the build system with >CONFIG_FRAMEPOINTER and teach U-Boot to walk the framepointers and >unwind the stack when an exception occurs.

[PATCH] imx8m: clock: Correct imx8mm_fracpll_tbl

2025-07-28 Thread Peng Fan (OSS)
From: Peng Fan The minimum frequency of Fref (Fin / p) is 6MHz for the PLL AC Electrical Characteristics. Setting p with 9 or 8 voilates the Spec. Update the settings to match Spec. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 12 ++-- 1 file changed, 6

[PATCH 9/9] ddr: imx9: Add errata registers support

2025-07-27 Thread Peng Fan (OSS)
From: Viorel Suman Collect errata registers values after the training and restore errata registers values before starting quick boot firmware. Signed-off-by: Viorel Suman Reviewed-by: Tom Zheng Reviewed-by: Ye Li Tested-by: Florin Pavelescu Signed-off-by: Peng Fan --- arch/arm/include/asm

[PATCH 8/9] ddr: imx9: Implement Synopsys LPDDR PHY QuickBoot flow

2025-07-27 Thread Peng Fan (OSS)
From: Viorel Suman Implement Synopsys LPDDR PHY QuickBoot flow. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ddr.h | 7 ++- drivers/ddr/imx/imx9/ddr_init.c | 9 +++- drivers/ddr/imx/phy/Kconfig | 6 +++ drivers/ddr/imx/phy

[PATCH 7/9] ddr: imx9: Add Synopsys LPDDR training data collect

2025-07-27 Thread Peng Fan (OSS)
From: Viorel Suman Add the functionality required for collecting Synopsys LPDDR training data in SPL context. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ddr.h | 20 + drivers/ddr/imx/imx9/Kconfig |8 + drivers/ddr/imx/imx9/ddr_init.c

[PATCH 6/9] ddr: imx: Move reading LP CSRs outside "ddr_cfg_phy" function

2025-07-27 Thread Peng Fan (OSS)
From: Viorel Suman Reading CSRs for low power use shall be done regardless the way the PHY is configured, so move the call outside "ddr_cfg_phy" function in order to be called for QuickBoot FW also. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/

[PATCH 5/9] ddr: imx8m: Drop the dependency to IMX8M_LPDDR4

2025-07-27 Thread Peng Fan (OSS)
From: Peng Fan The ddr driver support DDR and LPDDR4 both, so drop the dependency to IMX8M_LPDDR4. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/imx/imx8m/Kconfig b/drivers/ddr/imx/imx8m/Kconfig index

[PATCH 4/9] ddr: imx9: Disable dynamic refresh rate when do mr operation

2025-07-27 Thread Peng Fan (OSS)
the issue is gone. Signed-off-by: haidong.zheng Tested-by: Ye Li Reviewed-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/ddr_init.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/ddr/imx/imx9/ddr_init.c b/drivers/ddr/imx/imx9/ddr_in

[PATCH 3/9] ddr: imx9: Wait until dram initialization complete

2025-07-27 Thread Peng Fan (OSS)
From: "Tom.zheng" If the DDR data INIT bit is set, and ddr is running at low frequency, need to make sure DDR initialization complete before continue. Otherwise, unpredictable behavior when inline ECC id enabled. Signed-off-by: Tom.zheng Signed-off-by: Jacky Bai Reviewed-by: Peng F

[PATCH 2/9] ddr: imx9: Fix DDR MRS bug

2025-07-27 Thread Peng Fan (OSS)
Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/ddr_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ddr/imx/imx9/ddr_init.c b/drivers/ddr/imx/imx9/ddr_init.c index 5b0ad773875da9f6a57faa8c618b232056d1e702..7bade70bd0a1ca4d205ff4fb8525511188cb504f 100644 --- a/drivers/ddr

[PATCH 1/9] ddr: imx8m: Fix DDR inline ECC scruber configuration

2025-07-27 Thread Peng Fan (OSS)
al was set to 1, which means back-to-back scrubber reads will occur very frequently, potentially effecting performance. -Set scrub_interval to 0xFF which is the default value. However, users can tune this to meet their system needs. Signed-off-by: Ye Li Signed-off-by: Oliver Chen Reviewed-by

[PATCH 0/9] ddr: imx: Various updates

2025-07-27 Thread Peng Fan (OSS)
/-/pipelines/27190 Signed-off-by: Peng Fan --- Peng Fan (1): ddr: imx8m: Drop the dependency to IMX8M_LPDDR4 Tom.zheng (1): ddr: imx9: Wait until dram initialization complete Viorel Suman (4): ddr: imx: Move reading LP CSRs outside "ddr_cfg_phy" function ddr: imx9: Ad

Re: [PATCH] Fix emmc error state after mmc write timeout

2025-07-24 Thread Peng Fan (OSS)
From: Peng Fan On Mon, 21 Jul 2025 15:35:00 +0300, Jimmy Durand Wesolowski wrote: > This is a fix for the sporadic mmc write failure: > mmc write failed > 0 blocks written: ERROR > > After this happens the emmc will remain in an error state > where subsequent read/

Re: [PATCH 0/3] mmc: add more exynos compatibles and fix cd-gpio handling in s5p_sdhci

2025-07-24 Thread Peng Fan (OSS)
From: Peng Fan On Sun, 20 Jul 2025 19:00:25 +0200, Henrik Grimler wrote: > This series does some preparatory work to s5p_sdhci and exynos_dw_mmc > drivers to make it possible to move some exynos devices over to > OF_UPSTREAM. I am planning to send additional patches for other > s

[GIT PULL] please pull mmc-master-2025-07-24

2025-07-24 Thread Peng Fan
Hi Tom, Please pull mmc-master-2025-07-24 - Fix emmc error state after mmc write timeout Minor cleanup s5p_sdhci Support DT upstream for exynos5420 and exynos4210 mmc - CI: https://source.denx

Re: [PATCH v3] imx93_frdm: Add initial board support

2025-07-23 Thread Peng Fan
t;There were attempts to upstream the board devicetree, but it has not been >accepted upstream yet: > >https://lore.kernel.org/linux-arm-kernel/20250526-fpg-nxp-imx93-frdm-v2-2-e5ad0efae...@pengutronix.de/ > >Once it reaches upstream, we can switch to OF_UPSTREAM. > >Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan

Re: [PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

2025-07-23 Thread Peng Fan
On Tue, Jul 15, 2025 at 01:16:44PM +0200, Jonas Karlman wrote: >Hi Peng, > >On 7/15/2025 3:15 AM, Peng Fan wrote: >>> Subject: [PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for >>> RK3528 >>> >>> eMMC erase and write support on RK3528 is somewha

Re: [PATCH] Fix emmc error state after mmc write timeout

2025-07-23 Thread Peng Fan
lock writes terminate using a special >@@ -203,6 +206,9 @@ static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t >start, > if (mmc_poll_for_busy(mmc, timeout_ms)) > return 0; > >+ if (err) >+ return 0; >+ > return blkcnt; > } I would keep the comments aligned with others. I will update when apply the patch. Reviewed-by: Peng Fan Thanks, Peng

Re: [PATCH v2] usb: ehci-mx6: Add i.MX95 OTG support

2025-07-23 Thread Peng Fan
3 and i.MX95 and all >of these determine the role based on the USBNC_PHY_STATUS register. Just a question, does your board use USB2.0 port for SDP? And any public patches ready for that? > >Fixes: 801b5fafd35d "(usb: ehci-mx6: Add i.MX95 support") >Signed-off-by: Tim Harvey LGTM: Reviewed-by: Peng Fan

Re: [PATCH v2 2/2] configs: imx6dl_sielaff: Set CONFIG_SDP_LOADADDR to fix SDP boot

2025-07-23 Thread Peng Fan
On Tue, Jul 22, 2025 at 12:39:11PM +0200, Frieder Schrempf wrote: >From: Frieder Schrempf > >We need to set CONFIG_SDP_LOADADDR to a reasonable value in order >to successfully load the U-Boot proper image in SPL via SDP. > >Signed-off-by: Frieder Schrempf Acked-by: Peng Fan

Re: [PATCH v2 1/2] imx6dl-sielaff: Convert to OF_UPSTREAM

2025-07-23 Thread Peng Fan
On Tue, Jul 22, 2025 at 12:39:10PM +0200, Frieder Schrempf wrote: >From: Frieder Schrempf > >Switch to OF_UPSTREAM to make use of the upstream devicetree. > >Signed-off-by: Frieder Schrempf Reviewed-by: Peng Fan

Re: [PATCH] arm: imx: imx9: scmi: Fix booting from USB

2025-07-23 Thread Peng Fan
On Tue, Jul 22, 2025 at 11:04:45AM -0300, João Paulo Gonçalves wrote: >From: João Paulo Gonçalves > >On i.MX95, when booting from USB, the U-Boot environment is always >assumed to be in RAM. However, this causes the boot to hang when >`CONFIG_ENV_IS_NOWHERE` is not enabled. The boot also hangs eve

Re: [PATCH] imx93_frdm: Add initial board support

2025-07-23 Thread Peng Fan
Hi Fabio, Thanks for working on i.MX93 FRDM upstream. On Tue, Jul 22, 2025 at 05:37:36PM -0300, Fabio Estevam wrote: >Add the initial board support for the NXP i.MX93 FRDM board: > >https://www.nxp.com/design/design-center/development-boards-and-designs/frdm-i-mx-93-development-board:FRDM-IMX93 >

Re: [PATCH 3/3] imx93_evk: Remove PMIC and USB header files

2025-07-23 Thread Peng Fan
On Wed, Jul 23, 2025 at 10:45:57AM -0300, Fabio Estevam wrote: >There is no PMIC and USB related C code in this file. > >Remove these unneeded header files. > >Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan

Re: [PATCH 2/3] imx93_evk: Remove unneeded header files

2025-07-23 Thread Peng Fan
On Wed, Jul 23, 2025 at 10:45:56AM -0300, Fabio Estevam wrote: >There is nothing in this file that makes use of the definitions from >sizes.h and stringify.h. > >Remove them. > >Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan

Re: [PATCH 1/3] imx93_evk: Fix the board name in MAINTAINERS title

2025-07-23 Thread Peng Fan
On Wed, Jul 23, 2025 at 10:45:55AM -0300, Fabio Estevam wrote: >The board name is "i.MX93 EVK", not "MEK". > >Fix it accordingly. > >Signed-off-by: Fabio Estevam Acked-by: Peng Fan

RE: [PATCH] treewide: Remove empty board_init() function from all boards

2025-07-20 Thread Peng Fan
- > configs/imx8mp_evk_defconfig| 1 + > configs/imx91_11x11_evk_defconfig | 2 +- > configs/imx91_11x11_evk_inline_ecc_defconfig| 2 +- > configs/imx93_9x9_qsb_defconfig | 1 + > configs/imx93_9x9_qsb_inline_ecc_defconfig | 1 + > configs/imx95_19x19_evk_defconfig | 2 +- Acked-by: Peng Fan #NXP boards

Re: [PATCH] mmc: Set write protect for eMMC user area

2025-07-16 Thread Peng Fan
On Tue, Jul 15, 2025 at 06:04:07PM +0300, Роман wrote: > >From 29246e776674a73e4dd93ee15f7c94cb5d99a797 Mon Sep 17 00:00:00 2001 >From: Urovsky R >Date: Sat, 12 Jul 2025 19:29:53 +0300 >Subject: [PATCH] mmc: Set write protect for eMMC user area >  >Set write protect configuration for the specified

[GIT PULL] please pull mmc-2025-07-16

2025-07-16 Thread Peng Fan
Hi Tom, Please pull mmc-2025-07-16 --- Drop unused kona_sdhci driver Tighten config dependencies and a minor cleanup --- CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/commit/0f38307dfe0ddca18ed87

Re: [PATCH] mmc: Tighten some mmc driver dependencies

2025-07-14 Thread Peng Fan
On Fri, Jul 11, 2025 at 09:16:07AM -0600, Tom Rini wrote: >A large number of mmc drivers cannot build without access to some >platform specific header files. Express those requirements in Kconfig as >well. > >Signed-off-by: Tom Rini Acked-by: Peng Fan

Re: [PATCH] clk: scmi: Fix clock identifier passed to struct scmi_clk_parent_set_in

2025-07-14 Thread Peng Fan
t;) > >Signed-off-by: Alice Guo It would be better to make commit clear: Commit aa7bdc1af505 ("clk: scmi: manage properly the clk identifier with CCF") enables CONFIG_CLK_AUTO_ID, so need to use clk_get_id to get the real SCMI CLK ID, otherwise wrong ID is used when set clk parent. Reviewed-by: Peng Fan

Re: [PATCH] Add ahab_commit command for imx8

2025-07-14 Thread Peng Fan
Nit: subject: imx8: Add ahab_commit command On Mon, Jul 14, 2025 at 10:07:29PM +, John Ripple wrote: >The ahab_commit command allows the user to commit into the SECO fuses >that control the SRK key revocation information. This is used to Revoke >compromised SRK keys. > >To use ahab_commit, the

RE: [PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

2025-07-14 Thread Peng Fan
> Subject: [PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for > RK3528 > > eMMC erase and write support on RK3528 is somewhat unreliable, > sometime e.g. mmc erase and write commands will fail with an error. > > Use the delay line lock value for half card clock cycle, > DLL_LOCK_VALUE, to set a

Re: [PATCH 2/2] configs: imx6ulz_smm_m2b: Add board watchdog reset configuration

2025-07-10 Thread Peng Fan
On Tue, Jul 08, 2025 at 12:35:29PM +0200, Michael Trimarchi wrote: >Add the configuration that allow to reset the board from reset >cmd > >Signed-off-by: Michael Trimarchi >--- > Reviewed-by: Peng Fan

Re: [PATCH 1/2] configs/imx6ulz_smm_m2b_defconfig: Enable clock framework

2025-07-10 Thread Peng Fan
her freq, so performance improves. Reviewed-by: Peng Fan

Re: i.MX6UL: Adding bootcount support

2025-07-10 Thread Peng Fan
On Tue, Jul 08, 2025 at 08:37:53AM -0300, Fabio Estevam wrote: >Hi Heiko, > >On Tue, Jul 8, 2025 at 12:49???AM Heiko Schocher wrote: > >> Ah, looked into RM of imx6ul ... it has also a SRC_GPR2 with the same >> comment as imx6ull has ... uff... why does this not work for you than? >> >> Try with m

Re: [PATCH] configs: Relocate malloc and bss address

2025-07-10 Thread Peng Fan
On Thu, Jul 10, 2025 at 12:12:53PM +0800, dinesh.mani...@altera.com wrote: >From: Dinesh Maniyam > Nit, update subject with socfpga_agilex5: config: >With Inline ECC enabled, the bottom 1/8 of DDR is reserved >for ECC parity bits and must not be used for general data address >allocation. Previou

Re: [PATCH] phycore-imx8mp: Enable standard boot

2025-07-10 Thread Peng Fan
On Thu, Jul 10, 2025 at 10:17:17AM +0200, Leonard Anderweit wrote: >Enable standard boot for the phycore-imx8mp and use it as default. Add >all variables required for standard boot to the environment. > >Signed-off-by: Leonard Anderweit >Tested-by: Martin Schwan Reviewed-by: Peng Fan

Re: [PATCH] drivers: remove -mgeneral-regs-only for truetype

2025-07-07 Thread Peng Fan
On Sat, Jul 05, 2025 at 06:48:12PM +, Robert Stone wrote: >From a364b45738c1fc2e937a8d845f419b8c5c64d751 Mon Sep 17 00:00:00 2001 >From: rjstone >Date: Sat, 5 Jul 2025 11:22:09 -0700 >Subject: [PATCH] drivers: remove -mgeneral-regs-only for truetype > >For almost everything, -mgeneral-regs-onl

  1   2   3   4   5   6   7   8   9   10   >