Add the CGU code and the compatible string to the TCU driver to support
the JZ4760 SoC.
Signed-off-by: Paul Cercueil
---
drivers/clk/ingenic/Kconfig| 10 +
drivers/clk/ingenic/Makefile | 1 +
drivers/clk/ingenic/jz4760-cgu.c | 433
SoC-specific code can now provide a callback if they need to compute the
M/N/OD values in a specific way.
Signed-off-by: Paul Cercueil
---
drivers/clk/ingenic/cgu.c | 40 ++-
drivers/clk/ingenic/cgu.h | 3 +++
2 files changed, 30 insertions(+), 13 deletions
Rework the clock code so that the bypass register is only read when
there is actually a bypass functionality.
Signed-off-by: Paul Cercueil
---
drivers/clk/ingenic/cgu.c | 19 +++
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/drivers/clk/ingenic/cgu.c b/drivers
We can express that a PLL has no bypass bit by simply setting the
.bypass_bit field to a negative value.
Signed-off-by: Paul Cercueil
---
drivers/clk/ingenic/cgu.c| 4 ++--
drivers/clk/ingenic/cgu.h| 7 +++
drivers/clk/ingenic/jz4770-cgu.c | 3 +--
3 files changed, 6
.
This could be solved by creating two clocks, one with CGU_CLK_DIV and
one with CGU_CLK_MUX, but that would increase the number of clocks.
Instead, add a 8-bit mask to CGU_CLK_DIV clocks. If the bit
corresponding to the parent clock's index is set, the divider is
bypassed.
Signed-off-by: Paul
Add ingenic,jz4760-cgu and ingenic,jz4760b-cgu compatible strings for
the JZ4760 and JZ4760B SoCs respectively.
Signed-off-by: Paul Cercueil
---
Documentation/devicetree/bindings/clock/ingenic,cgu.yaml | 4
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings
tell me if it works for you.
Cheers,
-Paul
Paul Cercueil (6):
dt-bindings: clock: ingenic: Add ingenic,jz4760{,b}-cgu compatibles
clk: Support bypassing dividers
clk: ingenic: Read bypass register only when there is one
clk: ingenic: Remove pll_info.no_bypass_bit
clk: ingenic: Support
On error, or when the passed parameter is NULL, the return value is NULL
and not a PTR_ERR()-encoded value.
Signed-off-by: Paul Cercueil
---
include/linux/clk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 266e8de3cb51
The second IRQ line really is optional, so use
platform_get_irq_optional() to obtain it.
Signed-off-by: Paul Cercueil
---
drivers/net/ethernet/davicom/dm9000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/davicom/dm9000.c
b/drivers/net/ethernet
We must disable the regulator that was enabled in the probe function.
Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil
---
drivers/net/ethernet/davicom/dm9000.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
When the probe fails or requests to be defered, we must disable the
regulator that was previously enabled.
Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil
---
drivers/net/ethernet/davicom/dm9000.c | 12 +---
1 file
Hi Dmitry,
Le ven. 5 mars 2021 à 10:35, Dmitry Torokhov
a écrit :
Hi Paul,
On Fri, Mar 05, 2021 at 05:01:11PM +, Paul Cercueil wrote:
-static void gpio_keys_gpio_work_func(struct work_struct *work)
+static enum hrtimer_restart gpio_keys_debounce_timer(struct
hrtimer *t
The input_sync() function will already be called within
gpio_keys_gpio_report_event(), so there's no need to call it again after
the loop in gpio_keys_report_state().
Signed-off-by: Paul Cercueil
---
drivers/input/keyboard/gpio_keys.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers
of the standard
timer to address this issue.
Note that by using a hard IRQ for the hrtimer callback, we can get rid
of the spin_lock_irqsave() and spin_unlock_irqrestore().
Signed-off-by: Paul Cercueil
---
drivers/input/keyboard/gpio_keys.c | 27 ---
1 file changed, 16
key is quickly pressed then released (on a human's time
scale).
Switching to hrtimers fixes this issue, and will work even on extremely
low HZ values (tested at HZ=24).
Signed-off-by: Paul Cercueil
---
drivers/input/keyboard/gpio_keys.c | 33 +++---
1 file changed,
: c4d5e638d6e9 ("scripts/dtc: Update to upstream version
v1.6.0-51-g183df9e9c2b9")
Signed-off-by: Paul Cercueil
---
arch/mips/boot/compressed/decompress.c | 8
arch/mips/kernel/vmlinux.lds.S | 2 ++
2 files changed, 10 insertions(+)
diff --git a/arch/mips/boot/compressed/decompress
Hi Rob,
Le mer. 3 mars 2021 à 14:37, Rob Herring a écrit :
On Wed, Mar 3, 2021 at 1:33 PM Paul Cercueil
wrote:
Since 5.12-rc1, the Device Tree blob must now be properly aligned.
I had checked the other built-in cases as microblaze broke too, but
missed some of the many ways MIPS can have
Add documentation for the devicetree bindings of the RDA5807 FM radio
I2C chip from Unisoc.
Signed-off-by: Paul Cercueil
---
.../bindings/media/i2c/rda,rda5807.yaml | 67 +++
1 file changed, 67 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/i2c
From: Maarten ter Huurne
Add a driver to support the RDA5807 FM radio I2C chip from Unisoc
Communications.
Tested and working with fmtools 2.x.
Signed-off-by: Maarten ter Huurne
Signed-off-by: Paul Cercueil
---
drivers/media/radio/Kconfig | 12 +
drivers/media/radio/Makefile
Le mar. 2 mars 2021 à 21:56, Tang Bin a
écrit :
The function devm_platform_ioremap_resource has already contained
error message, so remove the redundant dev_err here.
Signed-off-by: Tang Bin
Acked-by: Paul Cercueil
Thanks!
Cheers,
-Paul
---
Changes from v1
- to streamline the code
Hi Tang,
Le mar. 2 mars 2021 à 20:11, Tang Bin a
écrit :
The function devm_platform_ioremap_resource has already contained
error
message, so remove the redundant dev_err here.
Signed-off-by: Tang Bin
---
sound/soc/codecs/jz4760.c | 1 -
1 file changed, 1 deletion(-)
diff --git
"for_each_child_of_node" should have of_node_put() before return
around
line 2489.
Reported-by: Abaci Robot
Signed-off-by: Yang Li
Acked-by: Paul Cercueil
Cheers,
-Paul
---
Changes in v2:
-add braces for if
drivers/pinctrl/pinctrl-ingenic.c | 4 +++-
1 file changed, 3 insertions(+),
Hi,
Some feedback for patches 1-3? Laurent?
Cheers,
-Paul
Le dim. 24 janv. 2021 à 8:55, Paul Cercueil a
écrit :
Hi,
Here are three independent fixes. The first one addresses a
use-after-free in bridge/panel.c; the second one addresses a
use-after-free in the ingenic-drm driver; finally
ftw() has been obsolete for about 12 years now.
Fixes: bb1c15b60b98 ("perf stat: Support regex pattern in --for-each-cgroup")
CC: sta...@vger.kernel.org
Signed-off-by: Paul Cercueil
---
Notes:
NOTE: Not runtime-tested, I have no idea what I need to do in perf
to test this. Bu
Le dim. 24 janv. 2021 à 13:47, Paul Cercueil a
écrit :
- JZ4760 and JZ4760B have a similar register layout as the JZ4740, and
don't use the new register layout, which was introduced with the
JZ4770 SoC and not the JZ4760 or JZ4760B SoCs.
- The JZ4740 code path only expected two
with more than two. Fix
it for the JZ4760, which has four configurable function modes.
Fixes: 0257595a5cf4 ("pinctrl: Ingenic: Add pinctrl driver for JZ4760 and
JZ4760B.")
Cc: # 5.3
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 24
1 fi
can officially post it.
[1]
https://github.com/goldelico/letux-kernel/commit/3be1de5fdabf2cc1c17f198ded3328cc6e4b9844
Am 24.01.2021 um 09:55 schrieb Paul Cercueil :
Even though the JZ4740 did not have the OSD mode, it had (according
to
the documentation) two DMA channels, but there is absolut
Hi Sergei,
Le sam. 23 janv. 2021 à 19:41, Sergei Shtylyov
a écrit :
On 1/23/21 5:24 PM, Paul Cercueil wrote:
musb_queue_resume_work() would call the provided callback if the
runtime
PM status was 'active'. Otherwise, it would enqueue the request if
the
hardware was still suspended
to the DMA0 channel) as the primary
plane, instead of the foreground1 plane, which is the primary plane
when in OSD mode.
Fixes: 3c9bea4ef32b ("drm/ingenic: Add support for OSD mode")
Cc: # v5.8+
Signed-off-by: Paul Cercueil
Acked-by: Daniel Vetter
---
drivers/gpu/drm/ingenic/ingenic-drm-
: Use the new drmm_plain_simple_encoder_alloc() macro
Fixes: c369cb27c267 ("drm/ingenic: Support multiple panels/bridges")
Cc: # 5.8+
Signed-off-by: Paul Cercueil
---
Notes:
Use the V1 of this patch to fix v5.11 and older kernels. This V3 only
applies on the current drm-misc-n
This performs the same operation as drmm_simple_encoder_alloc(), but
only allocates and returns a struct drm_encoder instance.
Signed-off-by: Paul Cercueil
---
include/drm/drm_simple_kms_helper.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/include/drm
c: # 4.12+
Cc: Andrzej Hajda
Cc: Neil Armstrong
Cc: Laurent Pinchart
Cc: Jonas Karlman
Cc: Jernej Skrabec
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/bridge/panel.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/brid
, to fix it for v5.11 and older kernels, use the V1
of that patch.
Cheers,
-Paul
Paul Cercueil (4):
drm: bridge/panel: Cleanup connector on bridge detach
drm/simple_kms_helper: Add macro drmm_plain_simple_encoder_alloc()
drm/ingenic: Register devm action to cleanup encoders
drm/ingenic: Fix
Hi, thank you for your patch.
Le sam. 23 janv. 2021 à 23:01, Qiujun Huang a
écrit :
We should compile this driver only if we opened PHY_INGENIC_USB.
'opened' -> 'enable'.
Signed-off-by: Qiujun Huang
You will need to add a Fixes: tag and Cc linux-stable, since the
problem is already
Add a 'auto_boot' module parameter that instructs the remoteproc driver
whether or not it should auto-boot the remote processor, which will
default to "false", since the VPU in Ingenic SoCs does not really have
any predetermined function.
Signed-off-by: Paul Cercueil
---
drivers/
If you pass a string that is not terminated with a carriage return to
dev_err(), it will eventually be printed with a carriage return, but
not right away, since the kernel will wait for a pr_cont().
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/jz4740.c | 18 +-
1 file
Remove unused-but-set devctl variable.
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/musbhsdma.c | 4
1 file changed, 4 deletions(-)
diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c
index 0aacfc8be5a1..7acd1635850d 100644
--- a/drivers/usb/musb/musbhsdma.c
-check on the 'req' pointer
instead.
Signed-off-by: Paul Cercueil
Suggested-by: Maarten ter Huurne
Acked-by: Tony Lindgren
---
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
r hdrc glue")
Cc: sta...@vger.kernel.org # v4.9+
Signed-off-by: Paul Cercueil
Reviewed-by: Tony Lindgren
Tested-by: Tony Lindgren
---
drivers/usb/musb/musb_core.c | 31 +--
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/musb/musb_core
Add support for the JZ4760 and JZ4760B SoCs, which behave exactly as the
(newer) JZ4770 SoC.
Signed-off-by: Paul Cercueil
---
Notes:
v2: No change
drivers/phy/ingenic/phy-ingenic-usb.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/phy/ingenic/phy
Add the ingenic,jz4760-phy and ingenic,jz4760b-phy compatible strings,
and make the ingenic,jz4770-phy compatible string require
ingenic,jz4760-phy as a fallback, since both work the same, and the
JZ4760 SoC is older.
Signed-off-by: Paul Cercueil
---
Notes:
v2: Fix indentation
No need to show the options to build Ingenic-specific drivers on all
MIPS kernel configurations if Ingenic SoCs support is not enabled.
Signed-off-by: Paul Cercueil
---
sound/soc/codecs/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/Kconfig b
From: Christophe Branchereau
Add support for the internal codec found in the JZ4760 SoC from Ingenic.
Signed-off-by: Christophe Branchereau
Signed-off-by: Paul Cercueil
---
sound/soc/codecs/Kconfig | 13 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/jz4760.c | 889
Add the ingenic,jz4760b-codec and ingenic,jz4760-codec compatible
strings.
In the process, convert the previous compatible strings to use an enum
instead.
Signed-off-by: Paul Cercueil
---
.../devicetree/bindings/sound/ingenic,codec.yaml | 11 ---
1 file changed, 8 insertions(+), 3
Hi Rob,
Le ven. 22 janv. 2021 à 8:35, Rob Herring a
écrit :
On Wed, Jan 20, 2021 at 5:59 AM Paul Cercueil
wrote:
Add the ingenic,jz4760-phy and ingenic,jz4760b-phy compatible
strings,
and make the ingenic,jz4770-phy compatible string require
ingenic,jz4760-phy as a fallback, since
Hi Rob,
Le jeu. 21 janv. 2021 à 10:01, Rob Herring a écrit :
On Wed, 20 Jan 2021 11:59:44 +, Paul Cercueil wrote:
Add the ingenic,jz4760-phy and ingenic,jz4760b-phy compatible
strings,
and make the ingenic,jz4770-phy compatible string require
ingenic,jz4760-phy as a fallback, since
Le mer. 20 janv. 2021 à 17:03, Daniel Vetter a
écrit :
On Wed, Jan 20, 2021 at 1:35 PM Paul Cercueil
wrote:
If we don't call drm_connector_cleanup() manually in
panel_bridge_detach(), the connector will be cleaned up with the
other
DRM objects in the call to drm_mode_config_cleanup
Le mer. 20 janv. 2021 à 15:04, Daniel Vetter a
écrit :
On Wed, Jan 20, 2021 at 2:21 PM Paul Cercueil
wrote:
Le mer. 20 janv. 2021 à 14:01, Daniel Vetter a
écrit :
> On Wed, Jan 20, 2021 at 1:36 PM Paul Cercueil
> wrote:
>>
>> Since the encoders have b
of that patch.
Cheers,
-Paul
Paul Cercueil (3):
drm: bridge/panel: Cleanup connector on bridge detach
drm/ingenic: Register devm action to cleanup encoders
drm/ingenic: Fix non-OSD mode
drivers/gpu/drm/bridge/panel.c| 6 +
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 27
Le mer. 20 janv. 2021 à 14:01, Daniel Vetter a
écrit :
On Wed, Jan 20, 2021 at 1:36 PM Paul Cercueil
wrote:
Since the encoders have been devm-allocated, they will be freed way
before drm_mode_config_cleanup() is called. To avoid use-after-free
conditions, we then must ensure
Le mer. 20 janv. 2021 à 14:13, H. Nikolaus Schaller
a écrit :
Am 20.01.2021 um 12:07 schrieb Paul Cercueil :
- Add otg function and otg-vbus group.
- Add lcd-8bit, lcd-16bit, lcd-18bit, lcd-generic and lcd-special
groups. Change the lcd-24bit group so that it only selects the pins
c: Andrzej Hajda
Cc: Neil Armstrong
Cc: Laurent Pinchart
Cc: Jonas Karlman
Cc: Jernej Skrabec
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/bridge/panel.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c
index 0d
to the DMA0 channel) as the primary
plane, instead of the foreground1 plane, which is the primary plane
when in OSD mode.
Fixes: 3c9bea4ef32b ("drm/ingenic: Add support for OSD mode")
Cc: # v5.8+
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 11 +++
1 file
: c369cb27c267 ("drm/ingenic: Support multiple panels/bridges")
Cc: # 5.8+
Signed-off-by: Paul Cercueil
---
Notes:
Use the V1 of this patch to fix v5.11 and older kernels. This V2 only
applies on the current drm-misc-next branch.
drivers/gpu/drm/ingenic/ingenic-drm-
Add support for the JZ4760 SoC, which behave exactly as the (newer)
JZ4770 SoC.
Signed-off-by: Paul Cercueil
---
drivers/phy/ingenic/phy-ingenic-usb.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
b/drivers/phy/ingenic/phy
Add the ingenic,jz4760-phy and ingenic,jz4760b-phy compatible strings,
and make the ingenic,jz4770-phy compatible string require
ingenic,jz4760-phy as a fallback, since both work the same, and the
JZ4760 SoC is older.
Signed-off-by: Paul Cercueil
---
.../bindings/phy/ingenic,phy-usb.yaml
there for any JZ4760
based board, yet). Remove the lcd-no-pins group which is just useless.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 38 +++
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-ingenic.c
b
Add support for the JZ4760 and JZ4760B SoCs.
Both SoCs have only 5 DMA channels per chip. The JZ4760B introduced the
DCKES/DCKEC registers.
Signed-off-by: Paul Cercueil
---
drivers/dma/dma-jz4780.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/dma/dma-jz4780.c b
Add ingenic,jz4760-dma and ingenic,jz4760b-dma compatible strings to
support the DMA engines present in the JZ4760 and JZ4760B SoCs.
Signed-off-by: Paul Cercueil
---
Documentation/devicetree/bindings/dma/ingenic,dma.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation
Hi Laurent,
Le lun. 18 janv. 2021 à 11:43, Laurent Pinchart
a écrit :
Hi Paul,
Thank you for the patch.
On Sun, Jan 17, 2021 at 11:26:45AM +, Paul Cercueil wrote:
Since the encoders have been devm-allocated, they will be freed way
before drm_mode_config_cleanup() is called. To avoid
to the DMA0 channel) as the primary
plane, instead of the foreground1 plane, which is the primary plane
when in OSD mode.
Fixes: 3c9bea4ef32b ("drm/ingenic: Add support for OSD mode")
Cc: # v5.8+
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 11 +++
1 file
t Pinchart
Cc: Jonas Karlman
Cc: Jernej Skrabec
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/bridge/panel.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c
index 0ddc37551194..975d65c14c9c 100644
--- a/drivers/gpu/
anels/bridges")
Cc: # 5.8+
Signed-off-by: Paul Cercueil
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index 368bfef8b340..d23a3292a
Hi,
Here are three independent fixes. The first one addresses a
use-after-free in bridge/panel.c; the second one addresses a
use-after-free in the ingenic-drm driver; finally, the third one makes
the ingenic-drm driver work again on older Ingenic SoCs.
Cheers,
-Paul
Paul Cercueil (3):
drm
Le lun. 11 janv. 2021 à 12:04, Kees Cook a
écrit :
On Mon, Jan 11, 2021 at 05:28:39PM +, Paul Cercueil wrote:
We don't actually care about the value, since the kernel will panic
before that; but a value should nonetheless be returned, otherwise
the
compiler will complain.
Fixes
We don't actually care about the value, since the kernel will panic
before that; but a value should nonetheless be returned, otherwise the
compiler will complain.
Fixes: 8112c4f140fa ("seccomp: remove 2-phase API")
Cc: sta...@vger.kernel.org # 4.7+
Signed-off-by: Paul Cercueil
-
Hi,
Le lun. 14 déc. 2020 à 10:05, Linus Walleij
a écrit :
On Mon, Dec 14, 2020 at 12:54 AM Paul Cercueil
wrote:
IF_ENABLED(CONFIG_FOO, ptr) evaluates to (ptr) if CONFIG_FOO is set
to 'y'
or 'm', NULL otherwise. The (ptr) argument must be a pointer.
The IF_ENABLED() macro can be very
Hi Thomas,
Le sam. 9 janv. 2021 à 1:33, Thomas Bogendoerfer
a écrit :
On Sat, Jan 09, 2021 at 12:58:05AM +0100, Thomas Bogendoerfer wrote:
On Fri, Jan 08, 2021 at 08:20:43PM +, Paul Cercueil wrote:
> Hi Thomas,
>
> 5.11 does not boot anymore on Ingenic SoCs, I
Hi Thomas,
5.11 does not boot anymore on Ingenic SoCs, I bisected it to this
commit.
Any idea what could be happening?
Cheers,
-Paul
| 1 +
.../devicetree/bindings/usb/ti,j721e-usb.yaml | 3 ++-
.../bindings/usb/ti,keystone-dwc3.yaml| 2 ++
74 files changed, 118 insertions(+), 33 deletions(-)
For bindings/remoteproc/ingenic,vpu.yaml and
devicetree/bindings/usb/ingenic,musb.yaml:
Acked-by: Paul Cercueil
Cheers,
-Paul
Hi Thomas,
Le mar. 29 déc. 2020 à 16:08, Thomas Bogendoerfer
a écrit :
On Mon, Dec 28, 2020 at 10:30:36PM +, Paul Cercueil wrote:
Le lun. 28 déc. 2020 à 23:25, Thomas Bogendoerfer
a écrit :
> On Wed, Dec 16, 2020 at 11:39:56PM +0000, Paul Cercueil wrote:
> > The compresse
Hi Thomas,
Le lun. 28 déc. 2020 à 23:25, Thomas Bogendoerfer
a écrit :
On Wed, Dec 16, 2020 at 11:39:56PM +, Paul Cercueil wrote:
The compressed payload is not necesarily 4-byte aligned, at least
when
compiling with Clang. In that case, the 4-byte value appended to the
compressed
Hi,
Le mer. 23 déc. 2020 à 10:01, H. Nikolaus Schaller
a écrit :
I have not found any user for this struct component.
Signed-off-by: H. Nikolaus Schaller
Reviewed-by: Paul Cercueil
Cheers,
-Paul
---
drivers/mmc/host/jz4740_mmc.c | 1 -
1 file changed, 1 deletion(-)
diff --git
Remove the useless field .version from the private structure, which is
set but never read.
Signed-off-by: Paul Cercueil
---
drivers/phy/ingenic/phy-ingenic-usb.c | 23 ---
1 file changed, 23 deletions(-)
diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
b/drivers/phy
Hi Zhou,
Le lun. 21 déc. 2020 à 23:52, 周琰杰 (Zhou Yanjie)
a écrit :
1.When the clock does not have "CGU_CLK_MUX", the 2/3/4 bits in
parents do not need to be filled with -1. When the clock have
a "CGU_CLK_MUX" has only one bit, the 3/4 bits of parents do
not need to be filled with -1.
Hi Zhou,
Le lun. 21 déc. 2020 à 23:52, 周琰杰 (Zhou Yanjie)
a écrit :
Add CIM, AIC, DMIC, I2S clocks for the X1000 SoC and the
X1830 SoC from Ingenic.
Signed-off-by: 周琰杰 (Zhou Yanjie)
---
Notes:
v1->v2:
Add I2S clock for X1000.
v2->v3:
Correct the comment in x1000-cgu.c,
.
Reported-by: Paul Cercueil
Signed-off-by: Jiaxun Yang
---
arch/mips/boot/compressed/head.S | 17 +++--
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/arch/mips/boot/compressed/head.S
b/arch/mips/boot/compressed/head.S
index 409cb483a9ff..977218c90bc8 100644
--- a/arch/mips
Hi Nick,
Le mer. 16 déc. 2020 à 18:08, Nick Desaulniers
a écrit :
On Wed, Dec 16, 2020 at 3:40 PM Paul Cercueil
wrote:
The compressed payload is not necesarily 4-byte aligned, at least
when
compiling with Clang. In that case, the 4-byte value appended to the
compressed payload
ndings: display: Add ABT Y030XX067A panel bindings")
Signed-off-by: Paul Cercueil
---
.../devicetree/bindings/display/panel/abt,y030xx067a.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
b/D
on MIPS (tested on a Ingenic
JZ4770 board).
Fixes: b8f54f2cde78 ("MIPS: ZBOOT: copy appended dtb to the end of the kernel")
Cc: # v4.7
Signed-off-by: Paul Cercueil
---
arch/mips/boot/compressed/decompress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch
Tested on a JZ4740 system (ARCH=mips make qi_lb60_defconfig), this saves
about 14 KiB, by allowing the compiler to garbage-collect all the
functions and tables that correspond to SoCs that were disabled in the
config.
Signed-off-by: Paul Cercueil
---
Notes:
v2: Drop include
drivers
= IF_ENABLED(CONFIG_FOO_SUSPEND, foo_suspend),
};
The foo_suspend() function will now be automatically dropped by the
compiler, and it does not require any specific attribute.
Signed-off-by: Paul Cercueil
---
Notes:
v2: Only add IF_ENABLED() and don't verify that the argument
Hi Zhou,
Le lun. 14 déc. 2020 à 3:12, Zhou Yanjie
a écrit :
Hi Paul,
On 2020/12/12 上午8:03, Paul Cercueil wrote:
The JZ4760 has the HPTLB as well, but has a XBurst CPU with a D0
CPUID.
Disable the HPTLB for all XBurst CPUs with a D0 CPUID. In the case
where
there is no HPTLB (e.g
with the hardware value 0, and a /1 divider otherwise.
Fixes: a9fa2893fcc6 ("clk: ingenic: Add support for divider tables")
Cc: # 5.2
Signed-off-by: Paul Cercueil
---
drivers/clk/ingenic/cgu.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/ingen
")
Cc: # 5.4
Signed-off-by: Paul Cercueil
---
arch/mips/kernel/cpu-probe.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index e6853697a056..31cb9199197c 100644
--- a/arch/mips/kernel/cpu-probe.c
Now that JZ4760 support has been fixed, it looks wrong to have
JZ4760_GPIO_* registers being written if the SoC is a JZ4770 or later.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 54 +++
1 file changed, 27 insertions(+), 27 deletions(-)
diff
with more than two. Fix
it for the JZ4760, which has four configurable function modes.
Fixes: 0257595a5cf4 ("pinctrl: Ingenic: Add pinctrl driver for JZ4760 and
JZ4760B.")
Cc: # 5.3
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 26 +---
Hi Linus,
Le mer. 9 déc. 2020 à 9:59, Linus Walleij
a écrit :
On Tue, Dec 8, 2020 at 5:48 PM Paul Cercueil
wrote:
Introduce a new header , that brings two new
macros:
IF_ENABLED_OR_ELSE() and IF_ENABLED().
I understand what the patch is trying to do, but when we already have
Hi Ard,
Le mer. 9 déc. 2020 à 10:38, Ard Biesheuvel a
écrit :
On Tue, 8 Dec 2020 at 17:49, Paul Cercueil
wrote:
Introduce a new header , that brings two new
macros:
IF_ENABLED_OR_ELSE() and IF_ENABLED().
IF_ENABLED_OR_ELSE(CONFIG_FOO, a, b) evaluates to (a) if CONFIG_FOO
is set
Hi Randy,
Le mar. 8 déc. 2020 à 9:39, Randy Dunlap a
écrit :
On 12/8/20 8:48 AM, Paul Cercueil wrote:
Signed-off-by: Paul Cercueil
Hi Paul,
Why not just add these 2 new macros to ?
Maybe you don't want to add the other 2 headers there also?
That means including in , which
causes
Tested on a JZ4740 system (ARCH=mips make qi_lb60_defconfig), this saves
about 14 KiB, by allowing the compiler to garbage-collect all the
functions and tables that correspond to SoCs that were disabled in the
config.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 61
= {
.suspend = IF_ENABLED(CONFIG_FOO_SUSPEND, foo_suspend),
};
The foo_suspend() function will now be automatically dropped by the
compiler, and it does not require any specific attribute.
Signed-off-by: Paul Cercueil
---
include/linux/if_enabled.h | 22 ++
1 file changed, 22
Le mar. 8 déc. 2020 à 15:04, Arnd Bergmann a écrit
:
On Mon, Dec 7, 2020 at 1:33 PM Paul Cercueil
wrote:
Le ven. 4 déc. 2020 à 15:14, Arnd Bergmann a
écrit
By the way, as I'm ending up doing the same in a different context,
I
think it would be useful to have a IF_ENABLED() macro
Hi Christoph,
Le mar. 3 nov. 2020 à 19:13, Paul Cercueil a
écrit :
Hi Christoph,
Le mar. 3 nov. 2020 à 18:50, Christoph Hellwig a
écrit :
On Mon, Nov 02, 2020 at 10:06:49PM +, Paul Cercueil wrote:
This function can be used by drivers that need to mmap dumb buffers
created with non
When musb->xceiv is not provided but musb->phy is, support setting the
OTG mode (host, peripheral) using the generic PHY framework.
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/musb_gadget.c | 4
drivers/usb/musb/musb_host.c | 2 ++
2 files changed, 6 insertions(+)
diff
Some platforms (e.g. JZ4740) can run without a PHY.
Modify the core so that musb->xceiv is never deferenced without being
checked first.
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/musb_core.c| 2 +-
drivers/usb/musb/musb_core.h| 12 ++--
drivers/usb/musb/musb_gadge
The musb_otg_state_string() simply calls usb_otg_state_string().
This will make it easier to get rid of the musb->xceiv dependency later.
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/musb_core.c| 43 +++--
drivers/usb/musb/musb_core.h| 5
driv
HY subsystem.
Signed-off-by: Paul Cercueil
---
drivers/usb/musb/musb_core.c| 62 -
drivers/usb/musb/musb_core.h| 11 ++
drivers/usb/musb/musb_debugfs.c | 6 ++--
drivers/usb/musb/musb_gadget.c | 28 +++
drivers/usb/musb/musb_host.c| 6 +
Cap-less mode is useful e.g. if the headphones are used as an antenna
for a FM radio, so that the signal is not altered. For everything else,
we want the cap-couple mode.
Signed-off-by: Paul Cercueil
---
sound/soc/codecs/jz4770.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions
There is simply no reason to do that.
Signed-off-by: Paul Cercueil
---
sound/soc/codecs/jz4770.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/jz4770.c b/sound/soc/codecs/jz4770.c
index 0da966785aee..909b70e817b4 100644
--- a/sound/soc/codecs
101 - 200 of 2213 matches
Mail list logo