Re: [PATCH 2/3] drm/ingenic: Reset pixclock rate when parent clock rate changes

2020-09-25 Thread Paul Cercueil
Hi Sam, Le jeu. 24 sept. 2020 à 22:22, Sam Ravnborg a écrit : Hi Paul. On Tue, Sep 15, 2020 at 02:38:17PM +0200, Paul Cercueil wrote: Old Ingenic SoCs can overclock very well, up to +50% of their nominal clock rate, whithout requiring overvolting or anything like that, just by changing

Re: [PATCH v6 2/2] PHY: Ingenic: Add USB PHY driver using generic PHY framework.

2020-09-23 Thread Paul Cercueil
振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil --- Notes: v1->v2: Fix bug, ".of_match_table = of_match_ptr(ingenic_usb_phy_of_matches)" is wrong and should be replaced with ".of_match_table = ingenic_

Re: [PATCH] MIPS: Increase range of CONFIG_FORCE_MAX_ZONEORDER

2020-09-22 Thread Paul Cercueil
Hi Thomas, Le mar. 22 sept. 2020 à 18:02, Thomas Bogendoerfer a écrit : On Thu, Sep 17, 2020 at 03:35:28PM +0200, Paul Cercueil wrote: There is nothing that prevents us from using lower maximum values. It's something that we actually want, when using bigger page sizes on devices

Re: [PATCH 1/1] MIPS: Ingenic: Add CPU nodes for Ingenic SoCs.

2020-09-21 Thread Paul Cercueil
Le sam. 19 sept. 2020 à 19:38, 周琰杰 (Zhou Yanjie) a écrit : Add 'cpus' node to the jz4725b.dtsi, jz4740.dtsi, jz4770.dtsi, jz4780.dtsi, x1000.dtsi, and x1830.dtsi files. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil

Re: [PATCH 1/2] MIPS: X1000E: Add X1000E system type.

2020-09-21 Thread Paul Cercueil
Le sam. 19 sept. 2020 à 20:44, 周琰杰 (Zhou Yanjie) a écrit : Add X1000 system type for cat /proc/cpuinfo to give out X1000E. Signed-off-by: 周琰杰 (Zhou Yanjie) For the 2 patches: Reviewed-by: Paul Cercueil Cheers, -Paul --- arch/mips/generic/board-ingenic.c | 3 +++ arch/mips/include

Re: [PATCH v4 1/2] USB: PHY: JZ4770: Remove unnecessary function calls.

2020-09-21 Thread Paul Cercueil
Le sam. 19 sept. 2020 à 16:42, 周琰杰 (Zhou Yanjie) a écrit : Remove unnecessary "of_match_ptr()", because Ingenic SoCs all depend on Device Tree. Suggested-by: Paul Cercueil Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Cheers, -Paul --- Notes: v3:

Re: [PATCH v4 2/2] PHY: Ingenic: Add USB PHY driver using generic PHY framework.

2020-09-21 Thread Paul Cercueil
0fc9d --- /dev/null +++ b/drivers/phy/ingenic/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-y += phy-ingenic-usb.o diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c b/drivers/phy/ingenic/phy-ingenic-usb.c new file mode 100644 index 0000..f220750e7950 --- /dev/n

Re: [PATCH v2 09/13] dt-bindings: pinctrl: include common schema in GPIO controllers

2020-09-17 Thread Paul Cercueil
Hi, Le jeu. 17 sept. 2020 à 18:52, Krzysztof Kozlowski a écrit : Include the common GPIO schema in GPIO controllers to be sure all common properties are properly validated. Signed-off-by: Krzysztof Kozlowski Acked-by: Paul Cercueil Cheers, -Paul --- Changes since v1: 1. New patch

[PATCH] MIPS: Increase range of CONFIG_FORCE_MAX_ZONEORDER

2020-09-17 Thread Paul Cercueil
There is nothing that prevents us from using lower maximum values. It's something that we actually want, when using bigger page sizes on devices with low RAM. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig

Re: drivers/gpu/drm/ingenic/ingenic-drm-drv.c:undefined reference to `clk_get_parent'

2020-09-15 Thread Paul Cercueil
Hi, Le mer. 9 sept. 2020 à 10:28, kernel test robot a écrit : Hi Paul, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8 commit:

Re: [PATCH v3 2/2] USB: PHY: JZ4770: Use the generic PHY framework.

2020-09-15 Thread Paul Cercueil
ingenic,jz4770-phy", .data = _soc_info }, + { .compatible = "ingenic,jz4780-phy", .data = _soc_info }, + { .compatible = "ingenic,x1000-phy", .data = _soc_info }, + { .compatible = "ingenic,x1830-phy", .data = _soc_info }, + { /* sentinel */

Re: [PATCH 3/3] i2c: jz4780: Remove of_match_ptr()

2020-09-15 Thread Paul Cercueil
Le mar. 15 sept. 2020 à 10:03, Rob Herring a écrit : On Tue, Sep 15, 2020 at 4:07 AM Paul Cercueil wrote: Hi Rob, Le lun. 14 sept. 2020 à 16:12, Rob Herring a écrit : > On Fri, Sep 04, 2020 at 03:11:52PM +0200, Paul Cercueil wrote: >> CONFIG_OF is selected by CONFIG_MAC

[PATCH 2/3] drm/ingenic: Reset pixclock rate when parent clock rate changes

2020-09-15 Thread Paul Cercueil
clock. To counter that issue, we make sure that the panel is in VBLANK before the rate change happens, and we will then re-set the pixel clock rate afterwards, once the PLL has been changed, to be as close as possible to the pixel rate requested by the encoder. Signed-off-by: Paul Cercueil

[PATCH 3/3] drm/ingenic: Add support for reserved memory

2020-09-15 Thread Paul Cercueil
Add support for static memory reserved from Device Tree. Since we're using GEM buffers backed by CMA, it is interesting to have an option to specify the CMA area where the GEM buffers will be allocated. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 19

[PATCH 1/3] drm/ingenic: Add support for 30-bit modes

2020-09-15 Thread Paul Cercueil
Starting from the JZ4760 SoC, the primary and overlay planes support 30-bit pixel modes (10 bits per color component). Add support for these in the ingenic-drm driver. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 41 +-- drivers/gpu/drm

[PATCH 0/3] Small improvements to ingenic-drm

2020-09-15 Thread Paul Cercueil
sure that there will always be space for our GEM buffers (provided they fit in the memory area). Cheers, -Paul Paul Cercueil (3): drm/ingenic: Add support for 30-bit modes drm/ingenic: Reset pixclock rate when parent clock rate changes drm/ingenic: Add support for reserved memory drivers/gpu

Re: [PATCH 3/3] i2c: jz4780: Remove of_match_ptr()

2020-09-15 Thread Paul Cercueil
Hi Rob, Le lun. 14 sept. 2020 à 16:12, Rob Herring a écrit : On Fri, Sep 04, 2020 at 03:11:52PM +0200, Paul Cercueil wrote: CONFIG_OF is selected by CONFIG_MACH_INGENIC, therefore we don't need to handle the case where Device Tree is not supported. What about COMPILE_TEST

Re: [PATCH v3 0/3] pinctrl: Ingenic: Add support for SSI and I2S pins.

2020-09-12 Thread Paul Cercueil
;v3: 1.Add Paul Cercueil's Reviewed-by. 2.Fix bug about PE15's pull-up parameter. This looks good to me, I'm just waiting for Paul to look at patches 2&3 before applying. Reviewed-by: Paul Cercueil for the patchset. Cheers, -Paul

Re: [PATCH v4] gpu/drm: ingenic: Add option to mmap GEM buffers cached

2020-09-09 Thread Paul Cercueil
Any love for my patch? I have more pending :) Thanks, -Paul Le sam. 22 août 2020 à 18:42, Paul Cercueil a écrit : Ingenic SoCs are most notably used in cheap chinese handheld gaming consoles. There, the games and applications generally render in software directly into GEM buffers

Re: 答复: [PATCH v2 6/6] drm/panel: Add Ilitek ILI9341 DBI panel driver

2020-09-07 Thread Paul Cercueil
Le dim. 30 août 2020 à 22:28, Sam Ravnborg a écrit : Hi Laurent. > > Please read the cover letter, it explains why it's done this way. The > whole point of this patchset is to merge DSI and DBI frameworks in a > way that can be maintained. I think this proves the point that the

Re: [PATCH v3 08/15] MIPS: generic: Support booting with built-in or appended DTB

2020-09-07 Thread Paul Cercueil
Le lun. 7 sept. 2020 à 10:54, Sergei Shtylyov a écrit : On 06.09.2020 22:29, Paul Cercueil wrote: The plat_get_fdt() checked that the kernel was booted using UHI before reading the 'fw_passed_dtb' variable. However, this variable is also set when the kernel has been appended, or when

[PATCH v3 08/15] MIPS: generic: Support booting with built-in or appended DTB

2020-09-06 Thread Paul Cercueil
The plat_get_fdt() checked that the kernel was booted using UHI before reading the 'fw_passed_dtb' variable. However, this variable is also set when the kernel has been appended, or when it has been built into the kernel. Support these usecases by removing the UHI check. Signed-off-by: Paul

[PATCH v3 07/15] MIPS: generic: Init command line with fw_init_cmdline()

2020-09-06 Thread Paul Cercueil
on the command line; - the code did not perform at all what it's supposed to, which is to retrieve the parameters passed by the bootloader. Fix this by calling fw_init_cmdline() in plat_mem_setup(), which will properly initialize arcs_cmdline to the parameters passed by the bootloader. Signed-off-by: Paul

[PATCH v3 09/15] MIPS: generic: Add support for zboot

2020-09-06 Thread Paul Cercueil
There is no reason we can't create compressed kernels here, so select the option SYS_SUPPORTS_ZBOOT. Signed-off-by: Paul Cercueil --- Notes: v2-v3: No change arch/mips/Kconfig | 1 + arch/mips/generic/Platform | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/mips

[PATCH v3 05/15] MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol

2020-09-06 Thread Paul Cercueil
for a SoC supported by the arch/mips/generic/ code, without making that kernel generic itself. Signed-off-by: Paul Cercueil --- Notes: v2-v3: No change arch/mips/Kconfig | 8 ++-- arch/mips/generic/Kconfig | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/mips

[PATCH v3 02/15] MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA

2020-09-06 Thread Paul Cercueil
rectly and removing the dependency on CONFIG_MACH_INGENIC. Signed-off-by: Paul Cercueil --- Notes: v2-v3: No change arch/mips/include/asm/pgtable-bits.h | 5 - arch/mips/kernel/cpu-probe.c | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/mips/include/asm/p

[PATCH v3 15/15] MAINTAINERS: Update paths to Ingenic platform code

2020-09-06 Thread Paul Cercueil
Support for Ingenic chips has been moved to the generic MIPS platform. Update the paths accordingly. Signed-off-by: Paul Cercueil --- Notes: v2: No change v3: Add arch/mips/include/asm/mach-ingenic/ path too MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH v3 11/15] MIPS: generic: Add support for Ingenic SoCs

2020-09-06 Thread Paul Cercueil
Add support for Ingenic SoCs in arch/mips/generic/. The Kconfig changes are here to ensure that it is possible to compile either a generic kernel that supports Ingenic SoCs, or a Ingenic-only kernel, both using the same code base, to avoid duplicated code. Signed-off-by: Paul Cercueil

[PATCH v3 12/15] MIPS: jz4740: Drop all obsolete files

2020-09-06 Thread Paul Cercueil
Support for Ingenic SoCs is now provided by the arch/mips/generic/ code, so all files in the arch/mips/jz4740/ folder can dropped, except for the Kconfig, and the cpu-feature-overrides.h header file. Signed-off-by: Paul Cercueil --- Notes: v2: No change v3: - Don't rename

[PATCH v3 06/15] MIPS: generic: Allow boards to set system type

2020-09-06 Thread Paul Cercueil
Check for the (already existing) "system_type" variable in the get_system_type() function. If non-NULL, return it as the system type. Signed-off-by: Paul Cercueil --- Notes: v2: Instead of adding a .get_system_type callback to the mips_machine struct, the boards now simpl

[PATCH v3 01/15] MIPS: configs: lb60: Fix defconfig not selecting correct board

2020-09-06 Thread Paul Cercueil
: 62249209a772 ("MIPS: ingenic: Default to a generic board") Signed-off-by: Paul Cercueil --- Notes: v3: New patch arch/mips/configs/qi_lb60_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs/qi_lb60_defconfig b/arch/mips/configs/qi_lb60_defco

[PATCH v3 10/15] MIPS: generic: Increase NR_IRQS to 256

2020-09-06 Thread Paul Cercueil
128 IRQs is not enough to support Ingenic SoCs. Signed-off-by: Paul Cercueil --- Notes: v2-v3: No change arch/mips/include/asm/mach-generic/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/mach-generic/irq.h b/arch/mips/include/asm/mach

[PATCH v3 00/15] MIPS: Convert Ingenic to a generic board v3

2020-09-06 Thread Paul Cercueil
of doing code removal + rename in one patch in v2, we now do code removal in patch [12/15] and rename in [13/15]. It makes more sense to split since we have more files/folders (as we keep the cpu-feature-overrides.h header around). Cheers, -Paul Paul Cercueil (15): MIPS: configs: lb60: Fix

[PATCH v3 03/15] MIPS: cpu-probe: Mark XBurst CPU as having vtagged caches

2020-09-06 Thread Paul Cercueil
XBurst CPUs present in Ingenic SoCs have virtually tagged caches, according to the header. Add that information to cpu_probe_ingenic(). Signed-off-by: Paul Cercueil --- Notes: v2-v3: No change arch/mips/kernel/cpu-probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips

[PATCH v3 04/15] MIPS: cpu-probe: ingenic: Fix broken BUG_ON

2020-09-06 Thread Paul Cercueil
eturned by the macro. What we want to check here, is that *if* the macro was overridden to a compile-time constant, then must be defined to zero, otherwise it's a bug. So the correct check is: BUG_ON(__builtin_constant_p(cpu_has_counter) && cpu_has_counter); Signed-off-by: Paul Cer

[PATCH v3 13/15] MIPS: jz4740: Rename jz4740 folders to ingenic

2020-09-06 Thread Paul Cercueil
Now that all the jz4740 platform code has been removed, and we're left with only a Kconfig and the cpu-feature-overrides.h file, finalize the cleanup process by renaming the jz4740 and include/mach-jz4740 folders to ingenic and include/mach-ingenic. Signed-off-by: Paul Cercueil --- Notes

[PATCH v3 14/15] MIPS: configs: Regenerate configs of Ingenic boards

2020-09-06 Thread Paul Cercueil
For each board the MACH_INGENIC_SOC option was selected instead of MACH_INGENIC. Nothing else was changed in the menuconfig. Signed-off-by: Paul Cercueil --- Notes: v2: Update cu1830-neo board config as well. v3: Adapt patch on top so that it applies on top of patch 1 arch/mips

Re: [PATCH v2 1/3] pinctrl: Ingenic: Add SSI pins support for JZ4770 and JZ4780.

2020-09-06 Thread Paul Cercueil
Le lun. 7 sept. 2020 à 1:09, Zhou Yanjie a écrit : Hi Paul, 在 2020/9/6 下午10:17, Paul Cercueil 写道: Hi Zhou, Le ven. 4 sept. 2020 à 15:27, Paul Cercueil a écrit : Hi Zhou, Le lun. 31 août 2020 à 23:43, 周琰杰 (Zhou Yanjie)  a écrit : Add SSI pins support for the JZ4770 SoC

Re: [PATCH v2 1/1] USB: PHY: JZ4770: Use the generic PHY framework.

2020-09-06 Thread Paul Cercueil
Le lun. 7 sept. 2020 à 1:06, Zhou Yanjie a écrit : Hi Paul, 在 2020/9/4 下午10:10, Paul Cercueil 写道: Hi Zhou, Le lun. 31 août 2020 à 21:50, 周琰杰 (Zhou Yanjie)  a écrit : Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. Tested-by: 周正 (Zhou

Re: [PATCH v2 2/3] pinctrl: Ingenic: Correct the pullup and pulldown parameters of JZ4780

2020-09-06 Thread Paul Cercueil
Hi Zhou, Le lun. 31 août 2020 à 23:43, 周琰杰 (Zhou Yanjie) a écrit : Correct the pullup and pulldown parameters of JZ4780 to make them consistent with the parameters on the datasheet. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v2: New patch. drivers/pinctrl/pinctrl-ingenic.c | 12

Re: [PATCH v2 1/3] pinctrl: Ingenic: Add SSI pins support for JZ4770 and JZ4780.

2020-09-06 Thread Paul Cercueil
Hi Zhou, Le ven. 4 sept. 2020 à 15:27, Paul Cercueil a écrit : Hi Zhou, Le lun. 31 août 2020 à 23:43, 周琰杰 (Zhou Yanjie) a écrit : Add SSI pins support for the JZ4770 SoC and the JZ4780 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Rebase on top of ker

Re: [PATCH v2 1/1] USB: PHY: JZ4770: Use the generic PHY framework.

2020-09-04 Thread Paul Cercueil
the diff bigger and harder to review. Please keep it where it was. + +static struct platform_driver ingenic_usb_phy_driver = { + .probe = ingenic_usb_phy_probe, + .remove = ingenic_usb_phy_remove, .driver = { - .name = "jz4770-

Re: [PATCH v2 1/3] pinctrl: Ingenic: Add SSI pins support for JZ4770 and JZ4780.

2020-09-04 Thread Paul Cercueil
Hi Zhou, Le lun. 31 août 2020 à 23:43, 周琰杰 (Zhou Yanjie) a écrit : Add SSI pins support for the JZ4770 SoC and the JZ4780 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Rebase on top of kernel 5.9-rc3. drivers/pinctrl/pinctrl-ingenic.c | 267

[PATCH 1/3] dt-bindings: i2c: ingenic: Add compatible string for the JZ4770

2020-09-04 Thread Paul Cercueil
d use it as fallback for the "ingenic,jz4780-i2c" string. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/i2c/ingenic,i2c.yaml | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml b/Documentation/d

[PATCH 3/3] i2c: jz4780: Remove of_match_ptr()

2020-09-04 Thread Paul Cercueil
CONFIG_OF is selected by CONFIG_MACH_INGENIC, therefore we don't need to handle the case where Device Tree is not supported. Signed-off-by: Paul Cercueil --- drivers/i2c/busses/i2c-jz4780.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-jz4780.c b

[PATCH 2/3] i2c: jz4780: Add compatible string for JZ4770 SoC

2020-09-04 Thread Paul Cercueil
The I2C controller in the JZ4770 SoC seems to work the exact same as in the JZ4780 SoC. Signed-off-by: Paul Cercueil --- drivers/i2c/busses/i2c-jz4780.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-jz4780.c b/drivers/i2c/busses/i2c-jz4780.c index ba831df6661e

[PATCH] MIPS: dts/ingenic: Cleanup qi_lb60.dts

2020-09-04 Thread Paul Cercueil
for the NAND to work if it was not already done by the bootloader. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/qi_lb60.dts | 137 - 1 file changed, 68 insertions(+), 69 deletions(-) diff --git a/arch/mips/boot/dts/ingenic/qi_lb60.dts b/arch/mips/boot/dts

[PATCH 02/20] usb/host: ehci-spear: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/host/ehci-spear.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c index add796c78561..3694e450a11a 100644 --- a/drivers/usb/host/ehci-spear.c

[PATCH 04/20] usb/host: ehci-platform: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/host/ehci-platform.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 006c4f6188a5..4585a3a24678 100644 --- a/drivers/usb/host/ehci

[PATCH 00/20] usb: Use new pm_ptr() macro

2020-09-03 Thread Paul Cercueil
Paul Cercueil (20): usb/host: ohci-platform: Use pm_ptr() macro usb/host: ehci-spear: Use pm_ptr() macro usb/host: ehci-npcm7xx: Use pm_ptr() macro usb/host: ehci-platform: Use pm_ptr() macro usb/cdns3: core: Use pm_ptr() macro usb/chipidea: core: Use pm_ptr() macro usb/misc: usb3503

[PATCH 07/20] usb/misc: usb3503: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/misc/usb3503.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index 116bd789e568..48099c6bf04c 100644 --- a/drivers/usb/misc/usb3503.c

[PATCH 10/20] usb/musb: da8xx: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/musb/da8xx.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 1c023c0091c4..7a13463006e3 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb

[PATCH 12/20] usb/musb: ux500: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/musb/ux500.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index 73538d1d0524..3defe83f3a16 100644 --- a/drivers/usb/musb/ux500.c +++ b/drivers/usb

[PATCH 17/20] usb/gadget/udc: mv-u3d: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/mv_u3d_core.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index 5486f5a70868..a7e3736fd0c1 100644 --- a/drivers

[PATCH 18/20] usb/gadget/udc: pch: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/pch_udc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 8afc31d94b0e..9e26b5ab3058 100644 --- a/drivers/usb

[PATCH 20/20] usb/gadget/udc: snps: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/snps_udc_plat.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_plat.c b/drivers/usb/gadget/udc/snps_udc_plat.c index 32f1d3e90c26..6b8f08287c84

[PATCH 19/20] usb/gadget/udc: renesas: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/renesas_usb3.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index 0c418ce50ba0..4e8ba5914eff 100644

[PATCH 15/20] usb/gadget/udc: atmel: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/atmel_usba_udc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index a6426dd1cfef..38da3f3ebde7 100644

[PATCH 16/20] usb/gadget/udc: bdc: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/gadget/udc/bdc/bdc_core.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index 5ff36525044e..da3a7a59ccae 100644

[PATCH 14/20] usb/phy: mxs-usb: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-mxs-usb.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 67b39dc62b37..c5e32d51563f 100644 --- a/drivers/usb/phy/phy-mxs

[PATCH 13/20] usb/phy: am335x: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-am335x.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c index 8524475d942d..a238f866634b 100644 --- a/drivers/usb/phy/phy-am335x.c

[PATCH 11/20] usb/musb: musb_dsps: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/musb/musb_dsps.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 30085b2be7b9..cb196bb6661d 100644 --- a/drivers/usb/musb

[PATCH 09/20] usb/musb: am35x: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/musb/am35x.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 660641ab1545..6162111f4cae 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb

[PATCH 08/20] usb/misc: usb4604: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/misc/usb4604.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/misc/usb4604.c b/drivers/usb/misc/usb4604.c index 1b4de651e697..2142af9bbdec 100644 --- a/drivers/usb/misc/usb4604.c +++ b

[PATCH 06/20] usb/chipidea: core: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/chipidea/core.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index aa40e510b806..af64ab98fb56 100644 --- a/drivers/usb

[PATCH 05/20] usb/cdns3: core: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/cdns3/core.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 5c1586ec7824..dacab9e9ef92 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers

[PATCH 03/20] usb/host: ehci-npcm7xx: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/host/ehci-npcm7xx.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c index adaf8fb4b459..6b5a7a873e01 100644 --- a/drivers/usb/host/ehci

[PATCH 01/20] usb/host: ohci-platform: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
be discarded by the compiler. Signed-off-by: Paul Cercueil --- drivers/usb/host/ohci-platform.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 4a8456f12a73..21400d7d8b0a 100644 --- a/drivers

Re: [PATCH 04/11] mmc: jz4740: Simplify with dev_err_probe()

2020-09-03 Thread Paul Cercueil
"could not parse device properties\n"); I think you can put that on one line. With that said: Reviewed-by: Paul Cercueil Cheers, -Paul goto err_free_host; } -- 2.17.1

[PATCH 4/5] clk: ingenic: Don't tag custom clocks with CLK_SET_RATE_PARENT

2020-09-02 Thread Paul Cercueil
The custom clocks have custom functions to round, get or set their rate. Therefore, we can't assume that they need the CLK_SET_RATE_PARENT flag. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 3/5] clk: ingenic: Don't use CLK_SET_RATE_GATE for PLL

2020-09-02 Thread Paul Cercueil
CLK_SET_RATE_GATE means that the clock must be gated when being reclocked. This is not the case for the PLLs in Ingenic SoCs. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/clk/ingenic/cgu.c b

[PATCH 5/5] clk: ingenic: Respect CLK_SET_RATE_PARENT in .round_rate

2020-09-02 Thread Paul Cercueil
(). Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/ingenic/cgu.c b/drivers/clk/ingenic/cgu.c index a1a4f1adaa3a..dac6edc670cc 100644 --- a/drivers/clk/ingenic/cgu.c +++ b/drivers/clk/ingenic/cgu.c @@ -445,6 +445,8

[PATCH 1/5] clk: ingenic: Use to_clk_info() macro for all clocks

2020-09-02 Thread Paul Cercueil
. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 54 +++ 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/drivers/clk/ingenic/cgu.c b/drivers/clk/ingenic/cgu.c index d7981b670221..12b14286734c 100644 --- a/drivers/clk/ingenic/cgu.c

[PATCH 2/5] clk: ingenic: Use readl_poll_timeout instead of custom loop

2020-09-02 Thread Paul Cercueil
Use the readl_poll_timeout() function instead of rolling our own busy-wait loops. This makes the code simpler. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 55 +-- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/drivers/clk

[PATCH v3 2/2] MIPS: Add support for ZSTD-compressed kernels

2020-09-01 Thread Paul Cercueil
to disable the EXPORT_SYMBOL() macros inside of lib/zstd/decompress.c. Signed-off-by: Paul Cercueil --- Notes: v2: Add -D__DISABLE_EXPORTS to CFLAGS and use zstd22 v3: Make memmove __weak, since it is provided for other compression schemes arch/mips/Kconfig

[PATCH v3 0/2] MIPS: Add support for ZSTD v3

2020-09-01 Thread Paul Cercueil
Hi, This small patchset adds support for self-extracting kernels compressed with ZSTD. Nick: I dropped your Reviewed-by on patch [1/2] since the code changed. Cheers, -Paul Paul Cercueil (2): lib: decompress_unzstd: Limit output size MIPS: Add support for ZSTD-compressed kernels arch

[PATCH v3 1/2] lib: decompress_unzstd: Limit output size

2020-09-01 Thread Paul Cercueil
address. Signed-off-by: Paul Cercueil --- Notes: v2: Change limit to 1 GiB v3: Compute size limit instead of using hardcoded value lib/decompress_unzstd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/decompress_unzstd.c b/lib/decompress_unzstd.c index

Re: [PATCH v2 2/2] drm/ingenic: Fix driver not probing when IPU port is missing

2020-08-30 Thread Paul Cercueil
Le dim. 30 août 2020 à 21:21, Ezequiel Garcia a écrit : Hi Paul, On Thu, 27 Aug 2020 at 09:04, Paul Cercueil wrote: Even if support for the IPU was compiled in, we may run on a device (e.g. the Qi LB60) where the IPU is not available, or simply with an old devicetree without

Re: [PATCH v2 1/2] drm/ingenic: Fix leak of device_node pointer

2020-08-30 Thread Paul Cercueil
Hi Sam, Le sam. 29 août 2020 à 23:07, Sam Ravnborg a écrit : On Thu, Aug 27, 2020 at 01:44:03PM +0200, Paul Cercueil wrote: of_graph_get_remote_node() requires of_node_put() to be called on the device_node pointer when it's no more in use. Fixes: fc1acf317b01 ("drm/ingenic: Add su

Re: 答复: [PATCH v2 6/6] drm/panel: Add Ilitek ILI9341 DBI panel driver

2020-08-30 Thread Paul Cercueil
Hi Leon, Le dim. 30 août 2020 à 16:36, 何小龙 (Leon He) a écrit : +struct ili9341 { + struct drm_panel panel; + struct mipi_dsi_device *dsi; + const struct ili9341_pdata *pdata; + + struct gpio_desc*reset_gpiod; + u32 rotation; +}; + Hi Paul, you

[PATCH v2] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-jz4770.c | 1 + 1 file changed, 1

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
Le jeu. 27 août 2020 à 16:25, Felipe Balbi a écrit : Hi, Paul Cercueil writes: @@ -172,7 +172,8 @@ static int ingenic_usb_phy_init(struct usb_phy *phy) return err; } - priv->soc_info->usb_phy_init(phy); + reg = priv->soc_info->usb_

Re: [PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
Hi Felipe, Le jeu. 27 août 2020 à 15:58, Felipe Balbi a écrit : Hi, Paul Cercueil writes: The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. your patch does a lot more than fix the bug :-) Fixes: 2a6c0b82e651 (&quo

[PATCH 1/1] USB: PHY: JZ4770: Fix uninitialized value written to HW register

2020-08-27 Thread Paul Cercueil
The 'reg' value was written to a hardware register in ingenic_usb_phy_init(), while not being initialized anywhere. Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") Signed-off-by: Paul Cercueil --- drivers/usb/phy/phy-jz4770.c | 28 +++---

[PATCH 0/1] USB: PHY: JZ4770: Next time, please test it

2020-08-27 Thread Paul Cercueil
test your patches before sending them. Thanks, -Paul Paul Cercueil (1): USB: PHY: JZ4770: Fix uninitialized value written to HW register drivers/usb/phy/phy-jz4770.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) -- 2.28.0

[PATCH v2 2/2] drm/ingenic: Fix driver not probing when IPU port is missing

2020-08-27 Thread Paul Cercueil
in devicetree (but then IPU support is disabled of course). v2: Take a different approach Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 19 +++ 1 file changed, 11 insertions(+), 8

[PATCH v2 1/2] drm/ingenic: Fix leak of device_node pointer

2020-08-27 Thread Paul Cercueil
of_graph_get_remote_node() requires of_node_put() to be called on the device_node pointer when it's no more in use. Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 1 + 1 file changed, 1 insertio

[PATCH] usb: musb: Fix NULL check on struct musb_request field

2020-08-26 Thread Paul Cercueil
-check on the 'req' pointer instead. Signed-off-by: Paul Cercueil Suggested-by: Maarten ter Huurne --- drivers/usb/musb/musb_gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index f62ffaede1ab..ef374d4dd94a

[PATCH] drm/ingenic: Fix driver not probing when IPU port is missing

2020-08-26 Thread Paul Cercueil
in devicetree (but then IPU support is disabled of course). Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/d

[tip: irq/urgent] irqchip/ingenic: Leave parent IRQ unmasked on suspend

2020-08-25 Thread tip-bot2 for Paul Cercueil
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 821fc9e261f3af235752f46e59084467cfd440c4 Gitweb: https://git.kernel.org/tip/821fc9e261f3af235752f46e59084467cfd440c4 Author:Paul Cercueil AuthorDate:Wed, 19 Aug 2020 20:06:02 +02:00

[PATCH v2 2/2] MIPS: Add support for ZSTD-compressed kernels

2020-08-25 Thread Paul Cercueil
to disable the EXPORT_SYMBOL() macros inside of lib/zstd/decompress.c. Signed-off-by: Paul Cercueil --- Notes: v2: Add -D__DISABLE_EXPORTS to CFLAGS and use zstd22 arch/mips/Kconfig | 1 + arch/mips/boot/compressed/Makefile | 3 ++- arch/mips/boot/compressed

[PATCH v2 1/2] lib: decompress_unzstd: Limit output size

2020-08-25 Thread Paul Cercueil
for everybody, in order to make it usable on 32-bit systems. Signed-off-by: Paul Cercueil Reviewed-by: Nick Terrell --- Notes: v2: Change limit to 1 GiB lib/decompress_unzstd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/decompress_unzstd.c b/lib

Re: [PATCH 1/2] lib: decompress_unzstd: Limit output size

2020-08-24 Thread Paul Cercueil
Le lun. 24 août 2020 à 20:11, Nick Terrell a écrit : On Aug 21, 2020, at 9:29 AM, Paul Cercueil wrote: The zstd decompression code, as it is right now, will have internal values overflow on 32-bit systems when the output size is LONG_MAX. Until someone smarter than me can figure

Re: [PATCH 2/2] MIPS: Add support for ZSTD-compressed kernels

2020-08-24 Thread Paul Cercueil
Hi Nick, Le lun. 24 août 2020 à 19:51, Nick Terrell a écrit : On Aug 21, 2020, at 9:29 AM, Paul Cercueil wrote: Add support for self-extracting kernels with a ZSTD compression. Tested on a kernel for the GCW-Zero, it allows to reduce the size of the kernel file from 4.1 MiB

[PATCH v4] gpu/drm: ingenic: Add option to mmap GEM buffers cached

2020-08-22 Thread Paul Cercueil
full frames v4: Avoid dma_pgprot() which is not exported. Using vm_get_page_prot() is enough in this case. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 107 +- drivers/gpu/drm/ingenic/ingenic-drm.h | 4 + drivers/gpu/drm/ingenic/ingenic

[PATCH v2 6/6] drm/panel: Add Ilitek ILI9341 DBI panel driver

2020-08-22 Thread Paul Cercueil
This driver is for the Ilitek ILI9341 based YX240QV29-T 2.4" 240x320 TFT LCD panel from Adafruit. v2: - Remove custom handling of backlight - Call drm_panel_disable() / drm_panel_unprepare() on module exit - drm_panel_add() is a void function now Signed-off-by: Paul Cer

[PATCH v2 2/6] drm: dsi: Let host and device specify supported bus

2020-08-22 Thread Paul Cercueil
ult to MIPI_DCS_BUS_TYPE_DSI if the bitmask is not populated. - Create a 'enum mipi_dcs_bus_type' instead of macros - Rename values to avoid confusion about SPI modes Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_mipi_dsi.c | 9 + include/drm/drm_mipi_dsi.h |

[PATCH v2 5/6] drm/panel: Add panel driver for NewVision NV3052C based LCDs

2020-08-22 Thread Paul Cercueil
stead of nv3052c_{disable,unprepare} - Silence error when backlight probe defers - Remove 'dev' field in priv structure, use drm_panel->dev instead Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + ...

[PATCH v2 3/6] drm: Add SPI DBI host driver

2020-08-22 Thread Paul Cercueil
MIPI Display Bus Interface (DBI) SPI support + * + * Copyright 2016 Noralf Trønnes + * Copyright 2020 Paul Cercueil + */ + +#include +#include +#include + +#include +#include + +#include + +struct dbi_spi { + struct mipi_dsi_host host; + struct mipi_dsi_host_ops host_ops; + + st

[PATCH v2 1/6] dt-bindings: display: Document NewVision NV3052C DT node

2020-08-22 Thread Paul Cercueil
description to avoid confusion about 'driver' - Use 4-space indent in example Signed-off-by: Paul Cercueil --- .../display/panel/newvision,nv3052c.yaml | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/newvision

<    1   2   3   4   5   6   7   8   9   10   >