[PATCH 5/5] imx8mp: Remove parts MIMX8ML7 and MIMX8ML5 support

2020-09-15 Thread peng . fan
From: Peng Fan Latest datasheet revE has removed MIMX8ML7D/5D/7C/5C parts, so update u-boot to remove decoding and support for those parts. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 2 -- arch/arm/include/asm/mach-imx/sys_proto.h | 5 +

[PATCH 4/5] imx8m: clock_imx8mm: add missed return

2020-09-15 Thread peng . fan
From: Peng Fan Add missed return Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index 3610f5b2fc..9dde11cded 100644 --- a/arch/arm/mach-imx/i

[PATCH 1/5] imx7: ccm: correct target interface num

2020-09-15 Thread peng . fan
From: Peng Fan According to i.MX 7Dual Applications Processor Reference Manual, Rev. 1 The target interface CCM root index ranges [0,124], so the number should be 125. Reported-by: Coverity 18045 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-mx7/crm_regs.h | 2 +- 1

[PATCH 3/5] imx8mq: fix SSCG_PLL_REFCLK_SEL_x

2020-09-15 Thread peng . fan
From: Peng Fan Fix SSCG_PLL_REFCLK_SEL_x, the offset starts from 0, not 16 Reported-by: Coverity 3448860 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/a

[PATCH 2/5] imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK

2020-09-15 Thread peng . fan
From: Peng Fan Coverity reported dead code, however it is FRAC_PLL_REFCLK_SEL_MASK was wrongly set. Reported-by: Coverity 10045172 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-09-15 Thread Heiko Schocher
Hello Mario, Tom, added Tom to cc ... Am 08.09.2020 um 07:59 schrieb Heiko Schocher: Hi Mario, Am 17.08.2020 um 07:23 schrieb Heiko Schocher: Hello Mario, Am 27.05.2020 um 14:43 schrieb Heiko Schocher: This patch series adds DM ethernet support for mpc83xx based keymile boards. Travis bui

Re: [PATCH v2 6/7] riscv: Ensure gp is NULL or points to valid data

2020-09-15 Thread Rick Chen
Hi Sean > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Sean Anderson > Sent: Monday, September 14, 2020 10:23 PM > To: u-boot@lists.denx.de > Cc: Alan Quey-Liang Kao(高魁良); Leo Yu-Chi Liang(梁育齊); Heinrich Schuchardt; Bin > Meng; Rick Chen; Sean Anderson > Subject: [PATCH v2 6/7]

Re: [PATCH] mmc: stm32_sdmmc2: Use mmc_of_parse() to read host capabilities

2020-09-15 Thread Jaehoon Chung
On 9/11/20 8:46 PM, Patrick DELAUNAY wrote: > Hi Jaehoon > >> From: Jaehoon Chung >> Sent: vendredi 11 septembre 2020 09:50 >> >> On 9/10/20 6:54 AM, Alexandru Gagniuc wrote: >>> mmc_of_parse() can populate the 'f_max' and 'host_caps' fields of >>> struct mmc_config from devicetree. >>> The same

Re: [PATCH v2 02/46] firmware: ti_sci: Fix not calling dev_err with a device

2020-09-15 Thread Nishanth Menon
On 10:44-20200915, Sean Anderson wrote: > This converts calls to dev_err to get the device from ti_sci_info where > appropriate. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > drivers/firmware/ti_sci.c | 23 --- > 1

Re: [PATCH v2 5/7] riscv: Consolidate fences into AMOs for available_harts_lock

2020-09-15 Thread Rick Chen
> We can reduce the number of instructions needed to use available_harts_lock > by using the aq and rl suffixes for AMOs. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Remove fences after amoswaps > - Reword commit message > > arch/riscv/cpu/start.S | 9 +++-- > 1 file changed

Re: [PATCH v2 4/7] riscv: Clear pending IPIs on initialization

2020-09-15 Thread Rick Chen
> On 9/15/20 5:15 AM, Rick Chen wrote: > >> Even though we no longer call smp_function if an IPI was not sent by > >> U-Boot, we still need to clear any IPIs which were pending from the > >> execution environment. Otherwise, secondary harts will busy-wait in > >> secondary_hart_loop, instead of rel

Re: [GIT PULL] TI changes for v2021.01 next

2020-09-15 Thread Tom Rini
On Tue, Sep 15, 2020 at 11:31:13PM +0530, Lokesh Vutla wrote: > Hi Tom, > Please find the PR for next branch targeted for v2021.01. > Details about the PR are updated in the tag message. > > Travis CI build: > https://travis-ci.org/github/lokeshvutla/u-boot/builds/727363752 > > The follo

Re: U-Boot FIT Signature Verification

2020-09-15 Thread Heinrich Schuchardt
On 9/11/20 7:26 PM, Andrii Voloshyn wrote: > Hi there, > > Does U-boot take into account certificate expiration date when verifying > signed images in FIT? In other words, is date stored along with the public > key in DTB file? > > Cheers, > Andy > Hello Philippe, looking at padding_pkcs_15

Re: Boot Over Ehternet- Linux Server to Raspberry Pis- Using U-boot

2020-09-15 Thread Heinrich Schuchardt
On 9/1/20 2:49 PM, Ahsan Zia (TAU) wrote: > Hi All, > > I need some ideas regarding Boot Over Ehternet. I have been following the u > boot document as well. > > I am attempting BoE from a Linux Server to a cluster of Raspberry Pis. > > i.e we have a Ubuntu (linux) Server with Raspbian image, the d

Re: U-Boot issue

2020-09-15 Thread Heinrich Schuchardt
On 8/17/20 11:59 AM, 0x5c4r3 wrote: > Hello guys, > I am Matteo Peruzzi, a cyber-security expert. > I am currently working on a project, creating a root of trust on RPI 2 > using a TPM2 module and U-Boot. > I noticed that in the latest update, u-boot has an issue: it does not > detect my USB keyboa

[PATCH 1/1] doc: qemu: debug UART settings for QEMU ARM virt

2020-09-15 Thread Heinrich Schuchardt
Provide the settings for the debug UART on the QEMU ARM virt board. Signed-off-by: Heinrich Schuchardt --- doc/board/emulation/qemu-arm.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst index ca751d4af4..8d7fda

Re: [RFC PATCH 1/1] image: add anti rollback protection for FIT Images

2020-09-15 Thread Simon Glass
Hi Thirupathaiah, On Tue, 15 Sep 2020 at 00:18, Thirupathaiah Annapureddy wrote: > > Hi Simon, > > Thanks for the review. > > On 9/6/2020 6:43 PM, Simon Glass wrote: > >> > >> diff --git a/Kconfig b/Kconfig > >> index 883e3f71d0..3959a6592c 100644 > >> --- a/Kconfig > >> +++ b/Kconfig > >> @@ -53

[PATCH 4/5] arm/dts: k3-j7200-r5-common: Add VTM node

2020-09-15 Thread Gowtham Tammana
Add voltage and thermal management (VTM) node. The efuse values for the OPPs are stored under the VTM, and is needed for AVS class 0 support. Signed-off-by: Gowtham Tammana --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/

[PATCH 1/2] mmc: mmc_of_parse: Enable 52 MHz support with "cap-mmc-highspeed"

2020-09-15 Thread Alexandru Gagniuc
"cap-mmc-highspeed" enables support for 26 MHz MMC, but there is no additional flag to enable 52 MHz MMC. In Linux. "cap-mmc-highspeed" is used for MMC HS at both 26MHz and 52MHz. Use the same approach and enable MMC_CAP(MMC_HS_52) host capability when "cap-mmc-highspeed" is found in the devicetre

[PATCH v2 2/2] mmc: stm32_sdmmc2: Use mmc_of_parse() to read host capabilities

2020-09-15 Thread Alexandru Gagniuc
mmc_of_parse() can populate the 'f_max' and 'host_caps' fields of struct mmc_config from devicetree. The same logic is duplicated in stm32_sdmmc2_probe(). Use mmc_of_parse(), which is more generic. Signed-off-by: Alexandru Gagniuc --- Changes from v1: - Check the return value of mmc_of_parse().

[PATCH v2 00/46] dm: Print device name in dev_xxx like Linux

2020-09-15 Thread Sean Anderson
This series adds some additional information to dev_xxx output. This requires the first argument to dev_xxx to be a struct udevice. The first argument has never been used in U-Boot, so many drivers have some invalid calls. To fix these drivers, the following strategies were generally followed * If

[PATCH 5/5] configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent configs

2020-09-15 Thread Gowtham Tammana
Enable AVS, PMIC and dependent configs. Signed-off-by: Gowtham Tammana --- configs/j7200_evm_r5_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig index 2908bc30c4..8f1f669830 100644 --- a/configs/j7200_evm_r5_defco

[PATCH 2/5] arm/dts: k3-j7200-r5-common: Add pmic lp876441 node

2020-09-15 Thread Gowtham Tammana
Add pmic lp876411 node needed for CPU AVS support. Signed-off-by: Gowtham Tammana --- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 26 +++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-boar

[PATCH 0/5] arm: dts: k3-j7200: Add PMIC node for CPU AVS

2020-09-15 Thread Gowtham Tammana
The J7200 EVM has PMIC LP876441 for supporting CPU AVS, addding nodes, compatible string, and configs to enable the corresponding driver to support AVS. Gowtham Tammana (5): power: pmic: tps65941: Add compatible for LP876441 arm/dts: k3-j7200-r5-common: Add pmic lp876441 node arm/dts: k3-j72

[PATCH 1/5] power: pmic: tps65941: Add compatible for LP876441

2020-09-15 Thread Gowtham Tammana
TI J7200 EVM has lp876441 pmic that is similar to tps65941. Add support for same with existing driver with new compatible. Signed-off-by: Gowtham Tammana --- drivers/power/pmic/tps65941.c | 1 + include/power/tps65941.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/power/pmi

[PATCH 3/5] arm/dts: k3-j7200-r5-common: Hook buck1_reg to vtm supply

2020-09-15 Thread Gowtham Tammana
Hook buck1_reg to vtm avs supply. Signed-off-by: Gowtham Tammana --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts index f96fd862c6..7ce6df28

Re: [RFC PATCH 1/1] image: add anti rollback protection for FIT Images

2020-09-15 Thread Thirupathaiah Annapureddy
Hi Tom, Please see my comment(s) in-line. On 9/15/2020 6:40 AM, Tom Rini wrote: > On Mon, Sep 14, 2020 at 11:18:25PM -0700, Thirupathaiah Annapureddy wrote: >> Hi Simon, >> >> Thanks for the review. >> >> On 9/6/2020 6:43 PM, Simon Glass wrote: diff --git a/Kconfig b/Kconfig index

[GIT PULL] TI changes for v2021.01 next

2020-09-15 Thread Lokesh Vutla
Hi Tom, Please find the PR for next branch targeted for v2021.01. Details about the PR are updated in the tag message. Travis CI build: https://travis-ci.org/github/lokeshvutla/u-boot/builds/727363752 The following changes since commit 96d66a9b8ce11aae9f8bef5244b83b4740b37644: Prepar

Re: [PATCH] Azure/GitLab/Travis: Add SH4 r2dplus machine with various PCI ethernet options

2020-09-15 Thread Tom Rini
On Mon, Sep 14, 2020 at 09:55:58PM +0200, Marek Vasut wrote: > Add SH4 R2Dplus machine configured to test various U-Boot PCI ethernet > options -- RTL8139, EEPRO100, AMD PCnet, DEC Tulip. > > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [GIT PULL] please pull mmc-2020-9-15

2020-09-15 Thread Tom Rini
On Tue, Sep 15, 2020 at 08:04:19AM +, Peng Fan wrote: > Hi Tom, > > Please pull mmc-2020-9-15 > > CI: https://travis-ci.org/github/MrVan/u-boot/builds/727229672 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] include: phy: fix NULL pointer check in phy_write()

2020-09-15 Thread Tom Rini
On Tue, Sep 15, 2020 at 04:23:02PM +0200, Michal Simek wrote: > Hi Tom, > > út 18. 8. 2020 v 2:31 odesílatel Thirupathaiah Annapureddy > napsal: > > > > phy_write() uses bus->write() instead of bus->read(). This means NULL > > pointer pre-check needs to happen on bus->write instead of bus->read.

[PATCH v2 44/46] video: stm32: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
There is no member `dev` in dw_mipi_dsi, but there is one in mipi_dsi_host, so use that. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/video/dw_mipi_dsi.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/video/dw_mipi_dsi.c

[PATCH v2 46/46] dm: Print device name in dev_xxx like Linux

2020-09-15 Thread Sean Anderson
This adorns messages generated by dev_xxx with the device and driver names. It also redirects dev_xxx to log when it is available. The names of these functions very roughly take inspiration from Linux, but there is no deeper correlation. Both struct udevice and struct device are supported when log

[PATCH v2 45/46] dm: Use symbolic constants for log levels in dev_xxx

2020-09-15 Thread Sean Anderson
This substitutes literal log levels with their symbolic constants. Signed-off-by: Sean Anderson --- (no changes since v1) include/dm/device_compat.h | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/include/dm/device_compat.h b/include/dm/device_compat

[PATCH v2 42/46] usb: dwc3: Don't include asm-generic/io.h

2020-09-15 Thread Sean Anderson
This can conflict with asm/io.h on some archs, and it isn't needed to build dwc3-generic.c Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/dwc3/dwc3-generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c

[PATCH v2 43/46] usb: musb-new: sunxi: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
This driver does not use DM, so we need to use a struct device instead of a struct udevice. Not ideal, but it'll have to do for now. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/musb-new/sunxi.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/d

[PATCH v2 40/46] usb: dwc3: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
This logs with the device from struct dwc3. Some files also need to include dm.h so fields in udevice can be accessed. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/dwc3/core.c | 15 --- drivers/usb/dwc3/ep0.c| 1 + drivers/usb/dwc3/gadget.c | 23

[PATCH v2 41/46] usb: dwc3: ti: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
This driver does not use DM, so use log_xxx instead. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/dwc3/ti_usb_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index f8ab06482c..f4768

[PATCH v2 39/46] usb: dwc2: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
This adds a dev argument to some functions so dev_xxx always has a device to log with. In one instance we must use use a different log function when we are compiled without DM_USB. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/host/dwc2.c | 39 +++---

[PATCH v2 33/46] remoteproc: k3: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Pass a device to functions which log with one. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/remoteproc/k3_system_controller.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/remoteproc/k3_system_controller.c b/drivers/remoteproc/k3_system_

[PATCH v2 38/46] usb: cdns3: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
ep0.c also need to include dm.h so dev_xxx can access udevice fields. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/usb/cdns3/ep0.c| 5 +++-- drivers/usb/cdns3/gadget.c | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/cdns3/ep0.c b/drivers

[PATCH v2 35/46] spi: sunxi: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Use `bus` and not `dev`. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/spi/spi-sunxi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index cd2e17bfd1..0844a5a0a6 100644 --- a/drivers/spi/spi-sunxi.c +

[PATCH v2 36/46] spi: zynqmp_gqspi: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Use `bus` instead of `dev`. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/spi/zynqmp_gqspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index a72986be90..e0e6687037 100644 --- a/drivers/spi/z

[PATCH v2 37/46] sysreset: ti: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
The rst variable doesn't exist. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/sysreset/sysreset-ti-sci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 3877b9bc12..7707c72bb5 1

[PATCH v2 32/46] remoteproc: k3-r5: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Usually we can get a device from the current core, but some dev_dbg calls have been converted to debug, since we are called on a cluster. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/remoteproc/ti_k3_r5f_rproc.c | 24 ++-- 1 file changed, 14 insertions(+),

[PATCH v2 30/46] phy: usbphyc: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Use the phy's device. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/phy/phy-stm32-usbphyc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index c6d3048602..9d4296d649 100644 --- a/drivers/ph

[PATCH v2 34/46] soc: qualcomm: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Remove the indirection. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/smem/msm_smem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c index 2557269bc5..597d425d11 100644 --- a/drivers/smem/msm_smem.c +++ b/dr

[PATCH v2 31/46] remoteproc: Remove unused function rproc_elf_sanity_check

2020-09-15 Thread Sean Anderson
This function is never used anywhere, and it also tries to log with a nonexistant device. Signed-off-by: Sean Anderson --- (no changes since v1) drivers/remoteproc/rproc-elf-loader.c | 16 include/remoteproc.h | 13 - 2 files changed, 29 deletions(

[PATCH v2 29/46] phy: ti: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
`phy` doesn't exist; we need to use `x` instead. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/phy/phy-ti-am654.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index 6907c1afb3..cc73760c8b 100644

[PATCH v2 28/46] phy: sun4i-usb: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
This uses phy's device Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/phy/allwinner/phy-sun4i-usb.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index f050645044..7

[PATCH v2 25/46] net: ti: cpsw: Fix not calling dev_dbg with a device

2020-09-15 Thread Sean Anderson
Without DM_ETH, cpsw_priv.dev is an eth_device. Just use its name instead. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/ti/cpsw.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index d6fefe5306..1c11257839 100644 ---

[PATCH v2 27/46] phy: rockchip: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Get the device from phy, or pass the phy in. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/phy/rockchip/phy-rockchip-pcie.c | 14 +++--- drivers/phy/rockchip/phy-rockchip-typec.c | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/phy/

[PATCH v2 24/46] net: sun8i_emac: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Pass a udevice into a few functions so `dev` is defined. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/sun8i_emac.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 546cc6ccb6..1dae81c7bf

[PATCH v2 26/46] phy: marvell: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
No need for indirection here. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/phy/marvell/comphy_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index 27bff27ff7..5e8ce740cd 10

[PATCH v2 23/46] net: sunxi: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
There's no dev to log with, so pass the device along with the priv data. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/sunxi_emac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index df18ecc064.

[PATCH v2 21/46] net: mvpp2: Convert netdev_xxx to dev_xxx

2020-09-15 Thread Sean Anderson
netdev_xxx evaluates to printf in U-Boot, so there is no extra info printed. mvpp2 one of only two drivers which use these functions in U-Boot. Convert these functions to dev_xxx where possible (and to log_xxx where not). Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/mvpp2.

[PATCH v2 19/46] net: mvneta: Convert netdev_xxx to dev_xxx

2020-09-15 Thread Sean Anderson
netdev_xxx evaluates to printf in U-Boot, so there is no extra info printed. mvneta is one of two drivers which use these functions in U-Boot. Convert these functions to dev_xxx where possible (and to log_xxx where not). Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/mvneta.

[PATCH v2 22/46] linux/compat.h: Remove netdev_xxx functions

2020-09-15 Thread Sean Anderson
No drivers in U-Boot use these functions. Signed-off-by: Sean Anderson --- Changes in v2: - New include/linux/compat.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/include/linux/compat.h b/include/linux/compat.h index 363b2b9425..d129780312 100644 --- a/include/linux

[PATCH v2 20/46] net: mvpp2: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Remove some prefixes, or get the device from the phy. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/mvpp2.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index a5747a25ab..6f3ee235d1 1

[PATCH v2 18/46] net: mvneta: Fix not always calling dev_err with a device

2020-09-15 Thread Sean Anderson
No need for indirection here. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/mvneta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 4c7d06ca40..2c93fe42f7 100644 --- a/drivers/net/mvneta.c +++ b/driv

[PATCH v2 14/46] nand: brcmnand: Fix not calling dev_err() with a device

2020-09-15 Thread Sean Anderson
There are too many levels of indirection when calling dev_err. This is an artifact of the conversion of brcmnand_host.pdev from a struct platform_device (which has a member `dev` pointing to a struct device) to struct udevice. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/n

[PATCH v2 13/46] nand: atmel: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Use mtd_info to get a device to log with. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/nand/raw/atmel_nand.c | 69 +-- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atme

[PATCH v2 17/46] net: mdio: Fix not calling dev_dbg with a device

2020-09-15 Thread Sean Anderson
The name of the device we are working on is `ethdev` and not just `dev`. Signed-off-by: Sean Anderson --- (no changes since v1) net/mdio-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 66ee2e1976..b5e8e46512 100644 --

[PATCH v2 15/46] nand: vybrid: Re-introduce vf610_nfc.dev

2020-09-15 Thread Sean Anderson
This member was presumably dropped when this driver was converted from Linux. However, it is still used in log statements during initialization. This patch adds the member back. In addition, allocation of struct vf610_nfc has been moved to the callers of vf610_nfc_nand_init. This allows it to be al

[PATCH v2 16/46] net: bcm6368: Fix not calling dev_info with a device

2020-09-15 Thread Sean Anderson
Remove the pdev indirection. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/bcm6368-eth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 648fafd3e0..38a2a30fe6 100644 --- a/drivers/net/bcm6368

[PATCH v2 09/46] mmc: Add mmc_dev()

2020-09-15 Thread Sean Anderson
This macro is necessary for arasan_zynqmp_dll_reset to compile. Signed-off-by: Sean Anderson --- Changes in v2: - New include/mmc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mmc.h b/include/mmc.h index 82562193cc..75bcaaf6b3 100644 --- a/include/mmc.h +++ b/include/mmc.h @@

[PATCH v2 11/46] mmc: mtk-sd: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
This adds a udevice parameter to get_best_delay and msdc_set_mclk so they can call dev_err properly. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mmc/mtk-sd.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/

[PATCH v2 12/46] mailbox: k3: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
dev needs to be gotten from mbox_chan Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mailbox/k3-sec-proxy.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 3f9afaed32..27ccc6eab0 1006

[PATCH v2 10/46] mmc: bcm2835-host: Fix not calling dev_dbg with a device

2020-09-15 Thread Sean Anderson
dev needs to be qualified as a member of host. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mmc/bcm2835_sdhost.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c

[PATCH v2 08/46] mtd: spi-nand: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Get it from spinand->slave->dev. Another option would be to use spinand_to_mtd(spinand)->dev, but this is what the existing code uses. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/nand/spi/core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d

[PATCH v2 07/46] mtd: spi: Fix logging in spi-nor-tiny

2020-09-15 Thread Sean Anderson
This fixes dev_xxx() not always being called with a device. In spi_nor_reg_read, a the slave device may not always be available, so we use bus and cs instead. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/spi/spi-nor-tiny.c | 21 - 1 file changed, 16 ins

[PATCH v2 06/46] mtd: spi: Include dm.h in spi-nor-core.c

2020-09-15 Thread Sean Anderson
This header is needed so struct udevice can be used in dev_xxx(). Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/spi/spi-nor-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 0113e70037..e16b0e146

[PATCH v2 03/46] i2c: mxc: Fix dev_err being called on a nonexistant variable

2020-09-15 Thread Sean Anderson
The udevice we are working with is called `bus` and not `dev`. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/i2c/mxc_i2c.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index e3d980a9df..7609594bd0 10064

[PATCH v2 05/46] mtd: nand: sunxi: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
Usually the device is gotten from sunxi_nfc. This is a struct device and not a struct udevice, but the whole driver seems to be written wihout DM anyway... In a few instances, this patch modifies functions to take an nfc to log with. In once instance we use mtd_info's device since there is no nfc.

[PATCH v2 04/46] mtd: nand: pxa3xx: Fix not calling dev_xxx with a device

2020-09-15 Thread Sean Anderson
Use the device from any mtd already available, or from the active mtd via pxa3xx_nand_info if one is not. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/mtd/nand/raw/pxa3xx_nand.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH v2 01/46] dm: syscon: Fix calling dev_dbg with an uninitialized device

2020-09-15 Thread Sean Anderson
We can't use dev_dbg here because we haven't bound to the device yet. Use log_debug instead. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/core/syscon-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon

[PATCH v2 02/46] firmware: ti_sci: Fix not calling dev_err with a device

2020-09-15 Thread Sean Anderson
This converts calls to dev_err to get the device from ti_sci_info where appropriate. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/firmware/ti_sci.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/

[PATCH 2/4] arm: dts: r8a774a1: Import DTS from Linux 5.9-rc4

2020-09-15 Thread Biju Das
Synchronize RZ/G2M SoC DTs with mainline Linux 5.9-rc4 commit f4d51dffc6c0 ("Linux 5.9-rc4") Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- arch/arm/dts/r8a774a1.dtsi| 10 +- include/dt-bindings/clock/r8a774a1-cpg-mssr.h | 96 +-- include/dt-bindings/

[PATCH 4/4] arm: rmobile: Add HopeRun HiHope RZ/G2M board support

2020-09-15 Thread Biju Das
The HiHope RZ/G2M board from HopeRun consists of main board (HopeRun HiHope RZ/G2M main board) and sub board(HopeRun HiHope RZ/G2M sub board). The HiHope RZ/G2M sub board sits below the HiHope RZ/G2M main board. DTS files apart from r8a774a1-hihope-rzg2m-u-boot.dts and r8a774a1-u-boot.dtsi have be

[PATCH 3/4] arm: rmobile: Add RZ/G2M SoC

2020-09-15 Thread Biju Das
Add CPU and PRR IDs for R8A774A1(a.k.a RZ/G2M) SoC. RZ/Gx SoC's are identical to R-Car SoC's apart from some automotive peripherals and they also share the same PRR CPU ID's. For example the RZ/G2M SoC has the same PRR ID 0x52 as R-Car M3W SoC. To differentiate RZ/G SoC's from R-Car SoC's add a

[PATCH 1/4] pinctrl: renesas: Fix PINCTRL_PFC_R8A774A1 help description

2020-09-15 Thread Biju Das
R8A774A1 is part of Renesas RZ/G2 series and not R-Car, reflect the same for PINCTRL_PFC_R8A774A1 help description Alongside, sort the PINCTRL_PFC_R8A774A1 config option as per increasing number of the SoC. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- drivers/pinctrl/renesas/Kconfig

[PATCH 0/4] Add HopeRun HiHope RZ/G2M board support

2020-09-15 Thread Biju Das
This patch series adds the required SoC/Board support to boot HopeRun HiHope RZ/G2M board. Biju Das (4): pinctrl: renesas: Fix PINCTRL_PFC_R8A774A1 help description arm: dts: r8a774a1: Import DTS from Linux 5.9-rc4 arm: rmobile: Add RZ/G2M SoC arm: rmobile: Add HopeRun HiHope RZ/G2M board

Re: [PATCH] net: ravb: Fix NULL pointer access

2020-09-15 Thread Michal Simek
On 15. 09. 20 16:10, Biju Das wrote: > Some phy's like rtl8211e do not support writeext() callback. Add a check to > avoid null pointer access before calling writeext() callback. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar > --- > drivers/net/ravb.c | 3 ++- > 1 file changed, 2

Re: [PATCH] include: phy: fix NULL pointer check in phy_write()

2020-09-15 Thread Michal Simek
Hi Tom, út 18. 8. 2020 v 2:31 odesílatel Thirupathaiah Annapureddy napsal: > > phy_write() uses bus->write() instead of bus->read(). This means NULL > pointer pre-check needs to happen on bus->write instead of bus->read. > > Signed-off-by: Thirupathaiah Annapureddy > --- > include/phy.h | 2 +-

[PATCH v5 8/9] riscv: Update Kendryte device tree for new CLINT driver

2020-09-15 Thread Sean Anderson
The interrupt controller property is removed from the clint binding because the clint is not an interrupt-controller. That is, no other devices have an interrupt which is controlled by the clint. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- (no changes since v4) Changes in v4: - Remo

[PATCH v5 9/9] riscv: Update SiFive device tree for new CLINT driver

2020-09-15 Thread Sean Anderson
We currently do this in a u-boot specific dts, but hopefully we can get these bindings added in Linux in the future. Signed-off-by: Sean Anderson Reviewed-by: Pragnesh Patel Reviewed-by: Bin Meng --- This patch builds but has NOT been tested. (no changes since v2) Changes in v2: - Fix SiFive

[PATCH v5 5/9] riscv: Clean up initialization in Andes PLIC

2020-09-15 Thread Sean Anderson
This merges the PLIC initialization code from two functions into one. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- This patch builds but has NOT been tested. (no changes since v1) arch/riscv/lib/andes_plic.c | 58 - 1 file changed, 25 insertions(+

[PATCH v5 6/9] riscv: Rework Sifive CLINT as UCLASS_TIMER driver

2020-09-15 Thread Sean Anderson
This converts the clint driver from the riscv-specific interface to be a DM-based UCLASS_TIMER driver. In addition, the SiFive DDR driver previously implicitly depended on the CLINT to select REGMAP. Unlike Andes's PLMT/PLIC (which AFAIK never have anything pass it a dtb), the SiFive CLINT is part

[PATCH v5 7/9] riscv: clk: Add CLINT clock to kendryte clock driver

2020-09-15 Thread Sean Anderson
Another "virtual" clock (in the sense that it isn't configurable). This could possibly be done as a clock in the device tree, but I think this is a bit cleaner. Signed-off-by: Sean Anderson --- checkpatch still complains about this one, but I don't see any reason to break it up even further. It d

[PATCH v5 2/9] timer: Add helper for drivers using timebase fallback

2020-09-15 Thread Sean Anderson
This function is designed to be used when a timer used to be initialized by the cpu (e.g. RISC-V timers), but now is initialized by dm_timer_init. In such a case, the timer may prefer to use the clocks and clock-frequency properties, but should be able to fall back on using the cpu's timebase-frequ

[PATCH v5 0/9] riscv: Clean up timer drivers

2020-09-15 Thread Sean Anderson
This series cleans up the timer drivers in RISC-V and converts them to DM. This series needs to be tested! I have only tested it on QEMU and the K210. Notably, this means that the HiFive and anything Andes is completely untested. This series depends on [1]. Without that patch, build will fail for

[PATCH v5 4/9] riscv: Rework Andes PLMT as a UCLASS_TIMER driver

2020-09-15 Thread Sean Anderson
This converts the PLMT driver from the riscv-specific timer interface to be a DM-based UCLASS_TIMER driver. The clock-frequency/clocks properties are preferred over timebase-frequency for two reasons. First, properties which affect a device should be located near its binding in the device tree. Us

[PATCH v5 1/9] riscv: Rework riscv timer driver to only support S-mode

2020-09-15 Thread Sean Anderson
The riscv-timer driver currently serves as a shim for several riscv timer drivers. This is not too desirable because it bypasses the usual timer selection via the driver model. There is no easy way to specify an alternate timing driver, or have the tick rate depend on the cpu's configured frequency

[PATCH v5 3/9] timer: Add a test for timer_timebase_fallback

2020-09-15 Thread Sean Anderson
To test this function, sandbox CPU must set cpu_platdata.timebase_freq on bind. It also needs to expose a method to set the current cpu. I also make some most members of cpu_sandbox_ops static. On the timer side, the device tree property sandbox,timebase-frequency-fallback controls whether sandbox

[PATCH] arm: rmobile: Identify R8A7796 r1.3 SoC

2020-09-15 Thread Biju Das
Add support to identify R8A7796 r1.3 SoC. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- arch/arm/mach-rmobile/cpu_info-rcar.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rmobile/cpu_info-rcar.c b/arch/arm/mach-rmobile/cpu_info-rcar.c inde

[PATCH] net: ravb: Fix NULL pointer access

2020-09-15 Thread Biju Das
Some phy's like rtl8211e do not support writeext() callback. Add a check to avoid null pointer access before calling writeext() callback. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- drivers/net/ravb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/r

Re: [PATCH] lib: fdt: Fix fdtdec_setup_mem..() conversion to livetree API

2020-09-15 Thread Tom Rini
On Tue, Sep 15, 2020 at 03:58:43PM +0200, Michal Simek wrote: > > > On 12. 09. 20 12:42, Marek Vasut wrote: > > Repair incorrectly negated condition in the original patch which broke > > DT memory node parsing on everything which has more than one DT memory > > node, e.g. R-Car3. > > > > In case

Re: [PATCH] lib: fdt: Fix fdtdec_setup_mem..() conversion to livetree API

2020-09-15 Thread Michal Simek
On 12. 09. 20 12:42, Marek Vasut wrote: > Repair incorrectly negated condition in the original patch which broke > DT memory node parsing on everything which has more than one DT memory > node, e.g. R-Car3. > > In case multiple valid memory nodes are present in the DT, the original > patch woul

Re: [PATCH v2 0/5] Add spi boot support to am335x-icev2

2020-09-15 Thread Lokesh Vutla
On 14/09/20 12:11 pm, Faiz Abbas wrote: > The following patches add spi boot support to TI's am335x-icev2 platform > > v2: > 1. Changed order of patches to avoid breaking build > 2. Changed SPI_OFFSET to SPI0_OFFSET and moved the define >arch/arm/mach-omap2/am335x/board.c > 3. Updated MAINT

Re: [PATCH 0/3] MCU R5F branch-only boot on J7200 SoCs

2020-09-15 Thread Lokesh Vutla
On 19/08/20 12:39 am, Suman Anna wrote: > Hi Lokesh, > > The following series adds the support for the branch-only boot of an > application firmware on MCU R5F from R5 SPL after it has finished > launching the A72. > > Most of the changes are just related to updating J7200 defconfigs or > dts

  1   2   >