[PATCH] spi: zynqmp: Remove gd reference

2021-04-25 Thread Michal Simek
gd is not used in this file that's why doesn't make sense to declare it. Signed-off-by: Michal Simek --- drivers/spi/zynqmp_gqspi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 900cb2610c7f..eee8e9df0f7d 100644 --- a/drivers

[PATCH] mmc: dwmmc: socfpga: Get "fifo-mode" property from DT

2021-04-25 Thread Ley Foon Tan
Add FIFO mode support for SoCFPGA dwmmc, read "fifo-mode" property from DT. Signed-off-by: Ley Foon Tan --- drivers/mmc/socfpga_dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index d6d2d5721411..be3d8bfb3d71 100644 --- a

[PATCH] net: phy: micrel: Get phy node from phy-handle

2021-04-25 Thread Ley Foon Tan
If can't find ethernet-phy subnode, try to get phy node from "phy-handle". Lastly, only use Ethernet node if can't find phy node from ethernet-phy subnode and phy-handle. Signed-off-by: Ley Foon Tan --- drivers/net/phy/micrel_ksz90x1.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletio

[PATCH] mmc: dw_mmc: Fixes data read when receiving DTO interrupt in FIFO mode

2021-04-25 Thread Ley Foon Tan
The data read is not working when using FIFO mode. >From DesignWare databook, when a Data_Transfer_Over (DTO) interrupt is received, the software should read the remaining data from FIFO. Add DTO interrupt checking on data read path and clear interrupts before start reading from FIFO. So, it does

[PATCH V3 2/2] riscv: board: Support OpenPiton SoC

2021-04-25 Thread Tianrui Wei
This patch add board support for OpenPiton. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind --- arch/riscv/Kconfig | 4 + arch/riscv/dts/Makefile | 1 + arch/riscv/dts/openpiton-riscv64.dts| 159 + board/openpiton/riscv/Kconfig

[PATCH V3 1/2] mmc: add OpenPiton mmc support

2021-04-25 Thread Tianrui Wei
This patch adds mmc support for OpenPiton. Specifically, some dts bindings were not used because our mmc controller doens't have those configuration options, it only exposes a dummy mmap interface for CPU. Signed-off-by: Tianrui Wei Signed-off-by: Jonathan Balkind --- drivers/mmc/Kconfig

[PATCH V3 0/2] Add OpenPiton board support

2021-04-25 Thread Tianrui Wei
This patch set is to add OpenPiton board support. Patches are split into several parts: - [PATCH 1/2] add OpenPiton support to mmc driver - [PATCH 2/2] add support for OpenPiton board Description - for mmc driver, it's settings are automatically configured at hardware level. We only need to ex

Re: [RFC] efi_loader: improve firmware capsule authentication

2021-04-25 Thread AKASHI Takahiro
Heinrich, Do you have any comments? # not only on this issue, but also other issues that I pointed out # in the initial RFC. On Fri, Apr 23, 2021 at 02:38:09PM +0530, Sughosh Ganu wrote: > Takahiro, > > On Fri, 23 Apr 2021 at 12:30, AKASHI Takahiro > wrote: > > > Sughosh, > > > > On Fri, Apr 2

Re: [PULL] u-boot-mips

2021-04-25 Thread Tom Rini
On Sun, Apr 25, 2021 at 12:47:10AM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > please pull some major updates and minor fixes for MIPS Octeon III. > > The changeset is quite large because all support for PCI-E, SGMII, > SATA etc. depends on the Octeon QLM (Quad Lane Modules) controller > whic

Re: [PATCH 03/17] x86: Allow coreboot serial driver to guess the UART

2021-04-25 Thread Bin Meng
Hi Simon, On Sun, Apr 25, 2021 at 10:10 AM Simon Glass wrote: > > Hi Bin, > > On Sun, 25 Apr 2021 at 13:49, Bin Meng wrote: > > > > Hi Simon, > > > > On Sat, Apr 24, 2021 at 12:56 PM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Thu, 8 Apr 2021 at 14:23, Bin Meng wrote: > > > > > > > >

Re: [PATCH v2] IOMUX: Fix buffer overflow in iomux_replace_device()

2021-04-25 Thread Yuichiro Goto
On Fri, Apr 23, 2021 at 10:09 PM Andy Shevchenko wrote: > > On Fri, Apr 23, 2021 at 05:08:05PM +0900, Yuichiro Goto wrote: > > Use of strcat() against an uninitialized buffer would lead > > to buffer overflow. This patch fixes it. > > Thanks for report! > > Can you also add a Fixes tag? > > > Sign

[PATCH v3] IOMUX: Fix buffer overflow in iomux_replace_device()

2021-04-25 Thread Yuichiro Goto
Use of strcat() against an uninitialized buffer would lead to buffer overflow. This patch fixes it. Fixes: 694cd5618c ("IOMUX: Introduce iomux_replace_device()") Signed-off-by: Yuichiro Goto Cc: Peter Robinson Cc: Andy Shevchenko Cc: Nicolas Saenz Julienne --- Changes for v3: - Add a Fixes ta

Re: [PATCH v2 07/13] mmc: synquacer: Add SynQuacer F_SDH30 SDHCI driver

2021-04-25 Thread Jaehoon Chung
On 4/26/21 7:05 AM, Jassi Brar wrote: > On Mon, 19 Apr 2021 at 17:05, Jaehoon Chung wrote: > >>> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c >>> index d9ab6a0a83..f038debc6c 100644 >>> --- a/drivers/mmc/sdhci.c >>> +++ b/drivers/mmc/sdhci.c >>> @@ -708,6 +708,15 @@ static int sdhci_ini

Re: [PATCH V2] doc: mmc man-page

2021-04-25 Thread Jaehoon Chung
On 4/23/21 11:23 PM, Heinrich Schuchardt wrote: > On 02.04.21 02:15, Jaehoon Chung wrote: >> Provide a man-pages for the mmc command. >> >> Signed-off-by: Jaehoon Chung >> --- >> Changelog on V2 >> - Add missing empty line >> - Add bootbus's arguments descriptions >> --- >> doc/usage/index.rst |

[PATCH 5/5] Revert "fdt: translate address if #size-cells = <0>"

2021-04-25 Thread Dario Binacchi
This reverts commit d64b9cdcd475eb7f07b49741ded87e24dae4a5fc. As pointed by [1] and [2], the reverted patch made every DT 'reg' property translatable. What the patch was trying to fix was fixed in a different way from previously submitted patches which instead of correcting the generic address tra

[PATCH 4/5] clk: ti: am3-dpll: use custom API for memory access

2021-04-25 Thread Dario Binacchi
Using the custom TI functions required not only replacing common memory access functions but also rewriting the routines used to set bypass and lock states. As for readl() and writel(), they also required the address of the register to be accessed, a parameter that is hidden by the TI clk module.

[PATCH 2/5] clk: ti: change clk_ti_latch() signature

2021-04-25 Thread Dario Binacchi
The clock access functions exported by the clk header use the struct clk_ti_reg parameter to get the address of the register. This must also apply to clk_ti_latch(). Changes to TI's clk-mux and clk-divider drivers prevented the patch from generating compile errors. Signed-off-by: Dario Binacchi -

[PATCH 1/5] clk: ti: add custom API for memory access

2021-04-25 Thread Dario Binacchi
As pointed by [1] and [2], commit d64b9cdcd4 ("fdt: translate address if #size-cells = <0>") is wrong: - It makes every 'reg' DT property translatable. It changes the address translation so that for an I2C 'reg' address you'll get back as reg the I2C controller address + reg value. - The quirk

[PATCH 3/5] clk: ti: gate: use custom API for memory access

2021-04-25 Thread Dario Binacchi
Replaces the common memory access functions used by the driver with the ones exported from the TI clk module. Signed-off-by: Dario Binacchi --- drivers/clk/ti/clk-gate.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/clk/ti/clk-gate.c b/dri

[PATCH 0/5] Revert "fdt: translate address if #size-cells = <0>"

2021-04-25 Thread Dario Binacchi
As pointed by [1] and [2] the d64b9cdcd4 ("fdt: translate address if #size-cells = <0>") commit was wrong. The series reverts the patch and fixes the issue with platform code, adding custom routines to access the clocks registers. The solution has been inspired by the Linux Kernel code. [1] ht

Re: [PATCH v6 00/14] mtd: spi-nor: Add support for Cypress s25hl-t/s25hs-t

2021-04-25 Thread Jagan Teki
On Tue, Apr 20, 2021 at 9:56 AM Takahiro Kuwano wrote: > > On 4/19/2021 4:13 PM, Jagan Teki wrote: > > On Wed, Apr 7, 2021 at 9:01 AM wrote: > >> > >> From: Takahiro Kuwano > >> > >> The S25HL-T/S25HS-T family is the Cypress Semper Flash with Quad SPI. > >> > >> The summary datasheets can be fou

Re: [PATCH] sunxi: Bring back SD card as MMC device 0

2021-04-25 Thread Jagan Teki
On Sun, Apr 25, 2021 at 3:30 PM Andre Przywara wrote: > > On Fri, 16 Apr 2021 12:08:09 +0100 > Andre Przywara wrote: > > Hi, > > > Commit 2243d19e5618 ("mmc: mmc-uclass: Use dev_seq() to read aliases > > node's index") now actually enforces U-Boot's device enumeration policy, > > where explicitly

Re: [PATCH] sunxi: Bring back SD card as MMC device 0

2021-04-25 Thread Andre Przywara
On Fri, 16 Apr 2021 12:08:09 +0100 Andre Przywara wrote: Hi, > Commit 2243d19e5618 ("mmc: mmc-uclass: Use dev_seq() to read aliases > node's index") now actually enforces U-Boot's device enumeration policy, > where explicitly named devices come first, then any other non-named > devices follow, w

Re: [PATCH v2 2/4] efi_loader: Kconfig: Add symbols for embedding the public key into the platform's dtb

2021-04-25 Thread Heinrich Schuchardt
On 4/12/21 5:05 PM, Sughosh Ganu wrote: Add config options EFI_PKEY_DTB_EMBED and EFI_PKEY_FILE which are to be used for embedding the public key to be used for capsule authentication into the platform's device tree. The embedding of the public key would take place during the platform build proc

Re: [PATCH v2 1/4] efi_loader: capsule: Remove the check for capsule_authentication_enabled environment variable

2021-04-25 Thread Heinrich Schuchardt
On 4/12/21 5:05 PM, Sughosh Ganu wrote: The current capsule authentication code checks if the environment variable capsule_authentication_enabled is set, for authenticating the capsule. This is in addition to the check for the config symbol CONFIG_EFI_CAPSULE_AUTHENTICATE. Remove the check for th