Re: [PATCH] serial: ns16550: Wait in debug_uart_init until tx buffer is empty

2022-07-01 Thread Stefan Roese
On 23.06.22 14:13, Pali Rohár wrote: Commit d293759d55cc ("serial: ns16550: Add support for SPL_DEBUG_UART_BASE") fixed support for setting correct early debug UART base address in SPL. But after this commit, output from Marvell A385 BootROM is truncated or lost and not fully present on serial c

[PATCH] scripts/Makefile.lib: add -D__U_BOOT__ to dtc_cpp_flags

2022-07-01 Thread Rasmus Villemoes
When trying to use the exact same device tree source to build the dtbs used with U-Boot and linux, one often runs into various problems. For example, files under include/dt-bindings/ might not be completely in sync, so some #defines are available in linux but not in U-Boot. It's also possible that

RE: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-07-01 Thread Johann Neuhauser
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, June 30, 2022 5:20 PM > > On 6/30/22 16:19, Johann Neuhauser wrote: > > PA13 and PA14 are used for USB power control and can't be used > > to enforce fastboot or stm32prog mode by pressing a button. > > > > D

[GIT PULL] Please pull u-boot-amlogic-20220701

2022-07-01 Thread Neil Armstrong
https://source.denx.de/u-boot/custodians/u-boot-usb (2022-05-20 22:07:56 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20220701 for you to fetch changes up to fdc55a6ba8309b688c9db6c3cf3f70ad7034c147: meson: axg: s

Pull request: SoCFPGA changes for commit 05dcb5be507a

2022-07-01 Thread Chee, Tien Fong
Hi Tom, Please pull the SoCFPGA changes as shown in below. Thanks. Best regards, Tien Fong The following changes since commit 05dcb5be507a0580a0fc57dd363c632ac4a6b3c4: mtd: mxs_nand_spl: fix nand_command protocol violation (2022-06-29 09:26:44 -0400) are available in the Git repository at

Re: [v4 03/12] spi: aspeed: Add ASPEED SPI controller driver

2022-07-01 Thread Cédric Le Goater
Hello Chin-Ting, On 5/24/22 07:56, Chin-Ting Kuo wrote: Add ASPEED BMC FMC/SPI memory controller driver with spi-mem interface for AST2500 and AST2600 platform. There are three SPI memory controllers embedded in an ASPEED SoC. - FMC: Named as Firmware Memory Controller. After AC on, MCU ROM

Re: [v4 04/12] configs: aspeed: Enable SPI flash features

2022-07-01 Thread Cédric Le Goater
On 5/24/22 07:56, Chin-Ting Kuo wrote: - Enable ASPEED SPI controller driver. - Enable SPI flash memory configurations. - Enable configurations for SPI flash manufacturers supported on both ASPEED AST2500 and AST2600 AVL. Signed-off-by: Chin-Ting Kuo --- configs/evb-ast2500_defconfig | 13

Re: [v4 07/12] spi-mem: Add dirmap API from Linux

2022-07-01 Thread Cédric Le Goater
On 5/24/22 07:56, Chin-Ting Kuo wrote: This adds the dirmap API originally introduced in Linux commit aa167f3 ("spi: spi-mem: Add a new API to support direct mapping"). This also includes several follow-up patches and fixes. Changes from Linux include: * Added Kconfig option * Changed struct dev

Re: [v4 06/12] arm: dts: aspeed: Update SPI flash node settings

2022-07-01 Thread Cédric Le Goater
On 5/24/22 07:56, Chin-Ting Kuo wrote: For both AST2500 and AST2600, there are three SPI controllers, FMC(Firmware Memory Controller), SPI1 and SPI2. The clock source is HCLK. Following is the basic information for ASPEED SPI controller. AST2500: - FMC: CS number: 3 controller r

Re: [v4 11/12] mtd: spi-nor-ids: Add Winbond W25Q512JV ID

2022-07-01 Thread Cédric Le Goater
On 5/24/22 07:56, Chin-Ting Kuo wrote: Add ID for Winbond W25Q512JV device which is supported on AST2600 EVB by default. Signed-off-by: Chin-Ting Kuo Reviewed-by: Cédric Le Goater Thanks, C. --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/dri

Re: [v4 12/12] spi: aspeed: Fix bug when SPI_NOR_4B_OPCODES flag is set

2022-07-01 Thread Cédric Le Goater
On 5/24/22 07:56, Chin-Ting Kuo wrote: When SPI_NOR_4B_OPCODES flag is set for a specific flash in spi_nor_ids[] table, EN4B command will not be issued and 4-byte dedicated commands will be used to access SPI flash. Thus, instead of EN4B command, address length is more suitable for deciding wheth

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-07-01 Thread Andre Przywara
On Thu, 30 Jun 2022 23:30:50 +0200 Markus Hoffrogge wrote: Hi Markus, > as this patch has been delegated to you, thanks for sending the patch, and for the heads up, looks like we should add that file somewhere into MAINTAINERS. (And please keep people on CC:, to not split up the thread on the l

net: designware: frequent network problem like CPU not owner of tx frame

2022-07-01 Thread LABBE Corentin
Hello We have an HSDK board in kernelCI, and it fail often to do networking tasks. (getting image via tftp) Example: tftp 0x8200 2156673/tftp-deploy-l8y_ehqa/kernel/uImage Speed: 100, full duplex Using ethernet@f0008000 device TFTP from server 10.201.1.3; our IP address is 10.201.4.179 Filena

[PATCH] ARC: HSDK: permit to build out-of-tree

2022-07-01 Thread Corentin Labbe
When building with out of tree source, make fail with: uboot bin file not exists: /usr/src/uboot/u-boot.bin This is due to obj files searched in srctree instead of objtree. Fixes: 9ddcfef6d425 ("ARC: HSDK: Add tool and make target to generate bsp") Signed-off-by: Corentin Labbe --- board/synops

Re: [v4 04/12] configs: aspeed: Enable SPI flash features

2022-07-01 Thread Cédric Le Goater
On 7/1/22 11:28, Cédric Le Goater wrote: On 5/24/22 07:56, Chin-Ting Kuo wrote: - Enable ASPEED SPI controller driver. - Enable SPI flash memory configurations. - Enable configurations for SPI flash manufacturers    supported on both ASPEED AST2500 and AST2600 AVL. Signed-off-by: Chin-Ting Kuo

Re: [v4 05/12] MAINTAINERS: Add ASPEED SPI driver file

2022-07-01 Thread Jagan Teki
On Tue, May 24, 2022 at 11:28 AM Chin-Ting Kuo wrote: > > Add spi-aspeed.c file for ARM ASPEED. > > Signed-off-by: Chin-Ting Kuo > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 56be0bfad0..f2cd707eda 100644 > --- a/MAINTAINERS

Re: [v4 00/12] Add ASPEED SPI controller driver

2022-07-01 Thread Jagan Teki
On Tue, May 24, 2022 at 11:27 AM Chin-Ting Kuo wrote: > > This patch series aims to porting ASPEED FMC/SPI memory controller > driver with spi-mem interface. spi-mem dirmap framework is also > synchronized from Linux. These patches have been verified on both > AST2600 and AST2500 EVBs. > > Changes

Re: [v4 07/12] spi-mem: Add dirmap API from Linux

2022-07-01 Thread Jagan Teki
On Tue, May 24, 2022 at 11:28 AM Chin-Ting Kuo wrote: > > This adds the dirmap API originally introduced in Linux commit aa167f3 > ("spi: spi-mem: Add a new API to support direct mapping"). This also > includes several follow-up patches and fixes. > > Changes from Linux include: > * Added Kconfig

Re: [PATCH 1/3] ram: rk3399: Fix .set_rate_index() error handling

2022-07-01 Thread Kever Yang
On 2022/6/21 18:07, Lee Jones wrote: Functions pointed to by this op pointer can return non-zero values indicating an error. Ensure any error value is propagated back up the call-chain. Signed-off-by: Lee Jones Reviewed-by: Kever Yang Thanks, - Kever --- drivers/ram/rockchip/sdram_rk3

Re: [PATCH 2/3] ram: rk3399: Fix faulty frequency change reports

2022-07-01 Thread Kever Yang
On 2022/6/21 18:07, Lee Jones wrote: Frequency changes to 400MHz are presently reported as: lpddr4_set_rate_0: change freq to 4 mhz 0, 1 This is obviously wrong by 6 orders of magnitude. Ensure frequency changes are reported accurately. Signed-off-by: Lee Jones Reviewed-by: Ke

Re: [PATCH 3/3] ram: rk3399: Conduct memory training at 400MHz

2022-07-01 Thread Kever Yang
On 2022/6/21 18:07, Lee Jones wrote: Currently the default initialisation frequency is 50MHz. Although this does appear to be suitable for some LPDDR4 RAM chips, training at this low frequency has been seen to cause Column errors, leading to Capacity check errors on others. Here we force RAM

Re: [PATCH 1/3] ram: rk3399: Fix .set_rate_index() error handling

2022-07-01 Thread Kever Yang
Hi Lee Jones, On 2022/6/27 16:39, Lee Jones wrote: On Tue, 21 Jun 2022, Lee Jones wrote: Functions pointed to by this op pointer can return non-zero values indicating an error. Ensure any error value is propagated back up the call-chain. Signed-off-by: Lee Jones --- drivers/ram/rockchip/

Re: [PATCH v1] spi: nuvoton: add NPCM PSPI controller driver

2022-07-01 Thread Jagan Teki
On Tue, May 31, 2022 at 3:44 PM Jim Liu wrote: > > Add Nuvoton NPCM BMC Peripheral SPI controller driver. > NPCM750 include two general-purpose SPI interface. > > Signed-off-by: Jim Liu > --- Reviewed-by: Jagan Teki

Re: [PATCH v7 4/4] mtd: spi-nor-core: Add support for Macronix Octal flash

2022-07-01 Thread Jagan Teki
On Thu, Mar 3, 2022 at 11:58 AM JaimeLiao wrote: > > Adding Macronix Octal flash for Octal DTR support. > > The octaflash series can be divided into the following types: > > MX25 series : Serial NOR Flash. > MX66 series : Serial NOR Flash with stacked die.(Size larger than 1Gb) > LM/UM series : Up

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-07-01 Thread Markus Hoffrogge
Hi Andre, as this patch has been delegated to you, I would like to mention, that this patch is superseding the patch https://patchwork.ozlabs.org/project/uboot/patch/20220330204543.3790-1-macroalph...@gmail.com/ raised by Chris Morgan. It should solve the issue in general and does not require t

[tiU21.01 PATCH 1/3] arm64: dts: k3-am625-r5: Add support for ESM devices

2022-07-01 Thread Julien Panis
Add main ESM and MCU ESM nodes to AM625-R5 device tree. Signed-off-by: Julien Panis --- arch/arm/dts/k3-am625-r5-sk.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/k3-am625-r5-sk.dts b/arch/arm/dts/k3-am625-r5-sk.dts index 2691af40a145..54896937d270 100644

[tiU21.01 PATCH 0/3] AM62x ESM support

2022-07-01 Thread Julien Panis
This patch series adds support for AM62x ESM (Error Signaling Modules). The Error Signaling Module (ESM) aggregates events and errors from throughout the device into one location. It can signal interrupts to a processor to deal with an event, and manipulate an error pin to signal an external hardw

[tiU21.01 PATCH 2/3] arm64: mach-k3: am625_init: Probe ESM nodes

2022-07-01 Thread Julien Panis
On AM62x devices, main ESM error event outputs can be routed to MCU ESM as inputs. So, two ESM device nodes are expected in the device tree : one for main ESM and another one for MCU ESM. MCU ESM error output can trigger the reset logic to reset the device when CTRLMMR_MCU_RST_CTRL:MCU_ESM_ERROR_RE

[tiU21.01 PATCH 3/3] configs: am62x_evm_r5: Add support for ESM

2022-07-01 Thread Julien Panis
Enable ESM driver for AM62x in R5 SPL/u-boot build. Signed-off-by: Julien Panis --- configs/am62x_evm_r5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62x_evm_r5_defconfig b/configs/am62x_evm_r5_defconfig index 2e340cd6f416..64cd4a4acd09 100644 --- a/configs/am62x_ev

[PATCH v1 0/3] AM62x ESM support

2022-07-01 Thread Julien Panis
[ERRATUM] Patch sent previously with wrong subject prefix. I am sorry. This patch series adds support for AM62x ESM (Error Signaling Modules). The Error Signaling Module (ESM) aggregates events and errors from throughout the device into one location. It can signal interrupts to a processor to dea

[PATCH v1 1/3] arm64: dts: k3-am625-r5: Add support for ESM devices

2022-07-01 Thread Julien Panis
Add main ESM and MCU ESM nodes to AM625-R5 device tree. Signed-off-by: Julien Panis --- arch/arm/dts/k3-am625-r5-sk.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/k3-am625-r5-sk.dts b/arch/arm/dts/k3-am625-r5-sk.dts index 2691af40a145..54896937d270 100644

[PATCH v1 2/3] arm64: mach-k3: am625_init: Probe ESM nodes

2022-07-01 Thread Julien Panis
On AM62x devices, main ESM error event outputs can be routed to MCU ESM as inputs. So, two ESM device nodes are expected in the device tree : one for main ESM and another one for MCU ESM. MCU ESM error output can trigger the reset logic to reset the device when CTRLMMR_MCU_RST_CTRL:MCU_ESM_ERROR_RE

[PATCH v1 3/3] configs: am62x_evm_r5: Add support for ESM

2022-07-01 Thread Julien Panis
Enable ESM driver for AM62x in R5 SPL/u-boot build. Signed-off-by: Julien Panis --- configs/am62x_evm_r5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62x_evm_r5_defconfig b/configs/am62x_evm_r5_defconfig index 2e340cd6f416..64cd4a4acd09 100644 --- a/configs/am62x_ev

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-07-01 Thread Markus Hoffrogge
Am Fr., 1. Juli 2022 um 11:57 Uhr schrieb Andre Przywara < andre.przyw...@arm.com>: Hi Andre, > On Thu, 30 Jun 2022 23:30:50 +0200 > Markus Hoffrogge wrote: > > Hi Markus, > > > as this patch has been delegated to you, > > thanks for sending the patch, and for the heads up, looks > like we should

[PATCH] arm: dts: rockchip: rk3399: usb: ehci: Fix EHCI probe in rk3399 to access peripherals by USB 2.

2022-07-01 Thread Xavier Drudis Ferran
arch/arm/dts/rk3399.dtsi has a node usb_host0_ehci: usb@fe38 { compatible = "generic-ehci"; with clocks: clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>, <&u2phy0>; The first 2 refer to nodes with class UCLASS_CLK, but &u2phy0 has class UCLASS_PHY. u2p

Re: [PATCH RFC v3 00/11] Integration of tiboot3.bin, sysfw.itb and

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:47, Neha Malcom Francis wrote: > [...] > > Neha Malcom Francis (11): > j721e_evm: schema: yaml: Add general schema and J721E board config > files > ti: tools: config: Add board config class to generate config binaries > ti: etype: sysfw: Add entry type for sysfw > ti:

Re: [PATCH RFC v3 02/11] ti: tools: config: Add board config class to generate config binaries

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:47, Neha Malcom Francis wrote: > For validating config files and generating binary config artifacts, here > board specific config class is added. > > Add function cfgBinaryGen() in tibcfg_gen.py. It uses TIBoardConfig > class to load given schema and config files in YAML, validate

Re: [PATCH RFC v3 03/11] ti: etype: sysfw: Add entry type for sysfw

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:47, Neha Malcom Francis wrote: > For K3 devices that require a sysfw image, add entry for SYSFW. It can > contain system firmware image that can be packaged into sysfw.itb by > binman. > > Signed-off-by: Tarun Sahu > [n-fran...@ti.com: added tests for addition of etype] > Signed-

Re: [PATCH RFC v3 04/11] ti: etype: dm: Add entry type for TI DM

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:47, Neha Malcom Francis wrote: > K3 devices introduces the concept of centralized power, resource and > security management to System Firmware. This is to overcome challenges > by the traditional approach that implements system control functions on > each of the processing units. >

Re: [PATCH RFC v3 05/11] ti: etype: x509: Add etype for x509 certificate for K3 devices

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:47, Neha Malcom Francis wrote: > K3 devices requires x509 certificate to be added as header of bootloader > binaries that allows ROM to validate the integrity of the image. Etype > that generates a TI x509 certificate is added. > > Currently this etype is scaled for J721E. For J72

Re: [PATCH RFC v3 09/11] ti: dtsi: j721e: Use binman to package sysfw.itb and tiboot3.bin

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:48, Neha Malcom Francis wrote: > By providing entries in the binman node of the device tree, binman will > be able to find and package board config binary artifacts generated by > TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. > > k3-j721e-r5-binman.dtsi has

Re: [PATCH RFC v3 10/11] ti: dtsi: j721e: Use binman to package tispl.bin

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:48, Neha Malcom Francis wrote: > tispl.bin must be packaged (with ATF, OPTEE, DM and A72 SPL) for J721E. > Binman picks up and packages entries according to the > description given in the device tree. > > k3-j721e-a72-binman.dtsi has been introduced for A72 specific binman > node.

Re: [PATCH RFC v3 11/11] ci: world_build: test: Add requirements.txt

2022-07-01 Thread Alper Nebi Yasak
On 15/06/2022 09:48, Neha Malcom Francis wrote: > To avoid ModuleNotFoundErrors during World Build in CI tests, add > installation of test/py/requirements.txt to .azure-pipelines.yml > > Signed-off-by: Neha Malcom Francis > --- > .azure-pipelines.yml | 1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCH] scripts/Makefile.lib: add -D__U_BOOT__ to dtc_cpp_flags

2022-07-01 Thread Tom Rini
On Fri, Jul 01, 2022 at 09:27:59AM +0200, Rasmus Villemoes wrote: > When trying to use the exact same device tree source to build the dtbs > used with U-Boot and linux, one often runs into various problems. For > example, files under include/dt-bindings/ might not be completely in > sync, so some #

Re: [PULL next] u-boot-at91-2022.10-a

2022-07-01 Thread Tom Rini
On Thu, Jun 30, 2022 at 02:50:29PM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > > Please pull tag u-boot-at91-2022.10-a , the first set of new at91 > features for the next cycle 2022.10 . > > This feature set includes mostly fixes and alignments: DT alignment with > Linux for sam

Re: [GIT PULL] Please pull u-boot-amlogic-20220701

2022-07-01 Thread Tom Rini
nx.de/u-boot/custodians/u-boot-amlogic.git > tags/u-boot-amlogic-20220701 > > for you to fetch changes up to fdc55a6ba8309b688c9db6c3cf3f70ad7034c147: > > meson: axg: search dtb for meson-axg-usb-ctrl on board axg (2022-05-23 > 10:40:01 +0200) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Pull request: u-boot-rockchip-20220630

2022-07-01 Thread Tom Rini
On Fri, Jul 01, 2022 at 10:05:55AM +0800, Kever Yang wrote: > Hi Tom, > > Sorry for lat sending this bunch of fix on rockchip platform. > Please pull the rockchip fixes if possible: > - Fix for rk3328 nonopi-r2s boot env; > - Fix for rk8xx pmic boot on power plug-in; > - Fix for tee.bin support i

Re: Pull request: SoCFPGA changes for commit 05dcb5be507a

2022-07-01 Thread Tom Rini
On Fri, Jul 01, 2022 at 09:00:38AM +, Chee, Tien Fong wrote: > Hi Tom, > > Please pull the SoCFPGA changes as shown in below. > > Thanks. > > Best regards, > Tien Fong > > > The following changes since commit 05dcb5be507a0580a0fc57dd363c632ac4a6b3c4: > > mtd: mxs_nand_spl: fix nand_com

[PATCH v2 0/6] patman: Small fixes plus remove --no-tree from checkpatch for linux

2022-07-01 Thread Douglas Anderson
The whole point of this series is really to make it so that when we're using patman for sending Linux patches that we don't pass "--no-tree" to checkpatch. While doing that, though, I found a number of bugs including an explanation about why recent version of patman have been yelling about "tags" w

[PATCH v2 1/6] patman: Fix updating argument defaults from settings

2022-07-01 Thread Douglas Anderson
Ever since commit 4600767d294d ("patman: Refactor how the default subcommand works"), when I use patman on the Linux tree I get grumbles about unknown tags. This is because the Linux default making process_tags be False wasn't working anymore. It appears that the comment claiming that the defaults

[PATCH v2 2/6] patman: Fix implicit command inserting

2022-07-01 Thread Douglas Anderson
The logic to insert an implicit command has always been a bit broken but it was masked by another bug fixed in the patch ("patman: Don't look at sys.argv when parsing settings"). Specifically, imagine that you're just calling patman like this: patman -c1 After the parse_known_args() command the

[PATCH v2 3/6] patman: Don't look at sys.argv when parsing settings

2022-07-01 Thread Douglas Anderson
If you call the parser and tell it to parse but don't pass arguments in then it will default to looking at sys.argv. This isn't really what was intended and seems to have some side effects. Let's not do it. NOTE: to see some of the side effects, note that this patch breaks "patman -c1" if you don'

[PATCH v2 4/6] patman: Make most bool arguments BooleanOptionalAction

2022-07-01 Thread Douglas Anderson
For boolean arguments it's convenient to be able to specify both the argument and its opposite on the command line. This is especially convenient because you can change the default via the settings file and being able express the opposite can be the only way to override things. Luckily python hand

[PATCH v2 5/6] patman: By default don't pass "--no-tree" to checkpatch for linux

2022-07-01 Thread Douglas Anderson
When you pass "--no-tree" to checkpatch it disables some extra checks that are important for Linux. Specifically I want checks like: warning: DT compatible string "boogie,woogie" appears un-documented check ./Documentation/devicetree/bindings/ Let's make the default for Linux to _not_ pass --

[PATCH v2 6/6] patman: Take project defaults into account for --help

2022-07-01 Thread Douglas Anderson
I'd like it so that when you do "patman send --help" and you're using Linux that it show it the proper defaults for Linux. Signed-off-by: Douglas Anderson Tested-by: Brian Norris --- Changes in v2: - Make comment about parsing three times less nonsensical. tools/patman/main.py | 15 ++

[PATCH] usb: host: ehci-generic: Fix error check

2022-07-01 Thread Andre Przywara
Commit 81755b8c20fe ("usb: host: ehci-generic: Make resets and clocks optional") improved the error check to cover the reset property being optional. However this was using the wrong error variable for the check, so would now never fail. Use the correct error variable for checking the result of re

Re: [PATCH v1] drivers: spi: sunxi: Fix spi speed settting

2022-07-01 Thread qianfan
在 2022/6/28 8:34, Andre Przywara 写道: On Thu, 9 Jun 2022 17:09:39 +0800 qianfangui...@163.com wrote: Hi Qianfan, From: qianfan Zhao dm_spi_claim_bus run spi_set_speed_mode first and then ops->claim_bus, but spi clock is enabled when sun4i_spi_claim_bus, that will make sun4i_spi_set_speed