[PATCH] drm/connector: document supported_colorspaces and DRM_MODE_COLORIMETRY_COUNT

2023-09-07 Thread Javier Carrasco
supported_colorspaces parameter. The drm_colorspace enum member DRM_MODE_COLORIMETRY_COUNT has been properly documented by moving the description out of the enum to the member description list to get rid of an additional warning and improve documentation clarity. Signed-off-by: Javier Carrasco --- The

[PATCH v2] drm/connector: document DRM_MODE_COLORIMETRY_COUNT

2023-09-07 Thread Javier Carrasco
The drm_colorspace enum member DRM_MODE_COLORIMETRY_COUNT has been properly documented by moving the description out of the enum to the member description list to get rid of an additional warning and improve documentation clarity. Signed-off-by: Javier Carrasco Reviewed-by: Randy Dunlap

Re: [PATCH v7 2/9] usb: misc: onboard_hub: use device supply names

2024-03-05 Thread Javier Carrasco
On 05.03.24 14:34, Greg Kroah-Hartman wrote: > On Tue, Mar 05, 2024 at 06:55:02AM +0100, Javier Carrasco wrote: >> The current implementation uses generic names for the power supplies, >> which conflicts with proper name definitions in the device bindings. >> >> A

[PATCH v8 0/8] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-03-25 Thread Javier Carrasco
Deacon To: Russell King Cc: linux-so...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Javier Carrasco Changes in v8: - General: rebase to

[PATCH v8 1/8] usb: misc: onboard_hub: use device supply names

2024-03-25 Thread Javier Carrasco
Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_hub.c | 49 -- drivers/usb/misc/onboard_usb_hub.h | 13 ++ 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc

[PATCH v8 8/8] usb: misc: onboard_dev: add support for XMOS XVF3500

2024-03-25 Thread Javier Carrasco
least 100ns. Once in normal operation, the XVF3500 registers itself as a USB device, and it does not require any device-specific operations in the driver. [1] https://www.xmos.com/xvf3500/ Acked-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 2

[PATCH v8 3/8] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-03-25 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Acked-by: Helen Koike Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1

[PATCH v8 5/8] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB to ONBOAD_USB_DEV

2024-03-25 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- arch/arm/configs

[PATCH v8 7/8] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor

2024-03-25 Thread Javier Carrasco
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Reviewed-by: Krzysztof Kozlowski Acked-by: Mark Brown Signed-off-by: Javier Carrasco

[PATCH v8 2/8] usb: misc: onboard_hub: rename to onboard_dev

2024-03-25 Thread Javier Carrasco
). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Acked-by: Matthias Kaehlcke S

[PATCH v8 6/8] usb: misc: onboard_dev: add support for non-hub devices

2024-03-25 Thread Javier Carrasco
eeping the driver's default behavior for non-hub devices (keep on in suspend). Acked-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 25 - drivers/usb/misc/onboard_usb_dev.h | 11 +++ 2 files changed, 35 insertions

[PATCH v8 4/8] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-03-25 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion

Re: [PATCH] gpu: ipu-v3: Removal of of_node_put with __free for auto cleanup

2024-07-02 Thread Javier Carrasco
you are aiming for a code refactoring, do not apply the __free() macro to a single device_node, leaving the rest untouched. Best regards, Javier Carrasco

Re: [PATCH] gpu: ipu-v3: Removal of of_node_put with __free for auto cleanup

2024-07-02 Thread Javier Carrasco
e.g. to remove the need for explicit of_node_put() when the variable goes out of scope). The need for of_node_put() does no vanish, it is only automated and no longer visible at first glance by means of the cleanup attribute. Best regards, Javier Carrasco

[PATCH v4 1/8] usb: misc: onboard_hub: rename to onboard_dev

2024-02-21 Thread Javier Carrasco
). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Signed-off-by: Javier Carras

[PATCH v4 6/8] usb: misc: onboard_dev: use device supply names

2024-02-21 Thread Javier Carrasco
The current mechanism uses generic names for the power supplies, which conflicts with proper name definitions in the device bindings. Add a per-device property to include real supply names and keep generic names as a fallback mechanism for backward compatibility. Signed-off-by: Javier Carrasco

[PATCH v4 7/8] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor

2024-02-21 Thread Javier Carrasco
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Signed-off-by: Javier Carrasco --- .../devicetree/bindings/sound/xmos,xvf3500.yaml| 63

[PATCH v4 2/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-21 Thread Javier Carrasco
Most of the functionality this driver provides can be used by non-hub devices as well. To account for the hub-specific code, add a flag to the device data structure and check its value for hub-specific code. Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 3

[PATCH v4 8/8] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-02-21 Thread Javier Carrasco
://www.xmos.com/xvf3500/ Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 2 ++ drivers/usb/misc/onboard_usb_dev.h | 8 2 files changed, 10 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c index e66fcac93006..e717d1ca8d79

[PATCH v4 3/8] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-21 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v4 4/8] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-21 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH v4 5/8] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB name

2024-02-21 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1

[PATCH v4 0/8] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-02-21 Thread Javier Carrasco
: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Javier Carrasco Changes in v4: - General: use device supply names and generics as fallback. - onbord_usb_dev.c: fix suspend callback for non-hub devices. - onboard_usb_dev.c: fix

Re: [PATCH v4 6/8] usb: misc: onboard_dev: use device supply names

2024-02-21 Thread Javier Carrasco
On 21.02.24 21:25, Matthias Kaehlcke wrote: > On Tue, Feb 20, 2024 at 03:05:50PM +0100, Javier Carrasco wrote: >> The current mechanism uses generic names for the power supplies, which >> conflicts with proper name definitions in the device bindings. >> >> Add a per-devi

Re: [PATCH v4 6/8] usb: misc: onboard_dev: use device supply names

2024-02-21 Thread Javier Carrasco
et me know if you still think the extra names are needed. Not really, the only case I could come up is if an existing device that uses generic names might end up requiring a third supply, which would also be generic. But even such an unlikely event would be cover without ARRAY_SIZE. Actually one could argue that every existing device could have "vdd" and "vdd2" as their supply names and remove checks and the generic array. Best regards, Javier Carrasco

Re: [PATCH v4 2/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-22 Thread Javier Carrasco
On 21.02.24 20:24, Matthias Kaehlcke wrote: > On Tue, Feb 20, 2024 at 03:05:46PM +0100, Javier Carrasco wrote: >> Most of the functionality this driver provides can be used by non-hub >> devices as well. >> >> To account for the hub-specific code, add a flag to the d

[PATCH v5 0/8] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-02-28 Thread Javier Carrasco
: linux-so...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Javier Carrasco Changes in v5: - onboard_usb_dev: move device suppy names handling to [1

[PATCH v5 1/8] usb: misc: onboard_hub: use device supply names

2024-02-28 Thread Javier Carrasco
The current implementation uses generic names for the power supplies, which conflicts with proper name definitions in the device bindings. Add a per-device property to include real supply names and keep generic names for existing devices to keep backward compatibility. Signed-off-by: Javier

[PATCH v5 5/8] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB to ONBOAD_USB_DEV

2024-02-28 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1

[PATCH v5 4/8] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-28 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH v5 3/8] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-28 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Acked-by: Helen Koike Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v5 7/8] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor

2024-02-28 Thread Javier Carrasco
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Reviewed-by: Krzysztof Kozlowski Signed-off-by: Javier Carrasco --- .../devicetree/bindings

[PATCH v5 8/8] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-02-28 Thread Javier Carrasco
://www.xmos.com/xvf3500/ Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 2 ++ drivers/usb/misc/onboard_usb_dev.h | 8 2 files changed, 10 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c index df0ed172c7ec..50f84c5278a2

[PATCH v5 2/8] usb: misc: onboard_hub: rename to onboard_dev

2024-02-28 Thread Javier Carrasco
). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Signed-off-by: Javier Carras

[PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-28 Thread Javier Carrasco
eeping the driver's default behavior for non-hub devices (keep on in suspend). Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 25 +++-- drivers/usb/misc/onboard_usb_dev.h | 10 ++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --gi

Re: [PATCH v5 1/8] usb: misc: onboard_hub: use device supply names

2024-02-28 Thread Javier Carrasco
On 28.02.24 16:37, Matthias Kaehlcke wrote: > Hi Javier, > > Thanks for moving this patch to the front of the series! > > A few more comments inline. > > On Wed, Feb 28, 2024 at 02:51:28PM +0100, Javier Carrasco wrote: >> The current implementation uses generic n

Re: [PATCH v5 2/8] usb: misc: onboard_hub: rename to onboard_dev

2024-02-28 Thread Javier Carrasco
On 28.02.24 19:18, Matthias Kaehlcke wrote: > On Wed, Feb 28, 2024 at 02:51:29PM +0100, Javier Carrasco wrote: >> This patch prepares onboad_hub to support non-hub devices by renaming >> the driver files and their content, the headers and their references. >> >> The com

Re: [PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-28 Thread Javier Carrasco
On 28.02.24 19:10, Matthias Kaehlcke wrote: > On Wed, Feb 28, 2024 at 02:51:33PM +0100, Javier Carrasco wrote: >> Most of the functionality this driver provides can be used by non-hub >> devices as well. >> >> To account for the hub-specific code, add a flag to the d

Re: [PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-28 Thread Javier Carrasco
On 28.02.24 21:41, Matthias Kaehlcke wrote: > On Wed, Feb 28, 2024 at 09:21:00PM +0100, Javier Carrasco wrote: >> On 28.02.24 19:10, Matthias Kaehlcke wrote: >>> On Wed, Feb 28, 2024 at 02:51:33PM +0100, Javier Carrasco wrote: >>>> Most of the functionality this driv

Re: [PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices

2024-02-28 Thread Javier Carrasco
On 28.02.24 22:34, Matthias Kaehlcke wrote: > On Wed, Feb 28, 2024 at 09:50:22PM +0100, Javier Carrasco wrote: >> On 28.02.24 21:41, Matthias Kaehlcke wrote: >>> On Wed, Feb 28, 2024 at 09:21:00PM +0100, Javier Carrasco wrote: >>>> On 28.02.24 19:10, Matthias Kaehlc

[PATCH v6 1/9] usb: misc: onboard_hub: use pointer consistently in the probe function

2024-02-29 Thread Javier Carrasco
Commit 14485de431b0 ("usb: Use device_get_match_data()") overlooked the already existing pointer to pdev->dev 'dev'. Use the existing pointer 'dev' in device_get_match_data() to keep code consistency. Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard

[PATCH v6 2/9] usb: misc: onboard_hub: use device supply names

2024-02-29 Thread Javier Carrasco
The current implementation uses generic names for the power supplies, which conflicts with proper name definitions in the device bindings. Add a per-device property to include real supply names and keep generic names for existing devices to keep backward compatibility. Signed-off-by: Javier

[PATCH v6 0/9] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-02-29 Thread Javier Carrasco
: linux-so...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Javier Carrasco Changes in v6: - onboard_usb_hub.c: use dev pointer in probe

[PATCH v6 3/9] usb: misc: onboard_hub: rename to onboard_dev

2024-02-29 Thread Javier Carrasco
). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Signed-off-by: Javier Carras

[PATCH v6 6/9] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB to ONBOAD_USB_DEV

2024-02-29 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1

[PATCH v6 8/9] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor

2024-02-29 Thread Javier Carrasco
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Reviewed-by: Krzysztof Kozlowski Acked-by: Mark Brown Signed-off-by: Javier Carrasco

[PATCH v6 9/9] usb: misc: onboard_dev: add support for XMOS XVF3500

2024-02-29 Thread Javier Carrasco
least 100ns. Once in normal operation, the XVF3500 registers itself as a USB device, and it does not require any device-specific operations in the driver. [1] https://www.xmos.com/xvf3500/ Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 2 ++ drivers/usb/misc

[PATCH v6 7/9] usb: misc: onboard_dev: add support for non-hub devices

2024-02-29 Thread Javier Carrasco
eeping the driver's default behavior for non-hub devices (keep on in suspend). Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 25 - drivers/usb/misc/onboard_usb_dev.h | 10 ++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --gi

[PATCH v6 4/9] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-29 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Acked-by: Helen Koike Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v6 5/9] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-02-29 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

Re: [PATCH v6 7/9] usb: misc: onboard_dev: add support for non-hub devices

2024-03-01 Thread Javier Carrasco
On 29.02.24 20:52, Matthias Kaehlcke wrote: > On Thu, Feb 29, 2024 at 09:34:50AM +0100, Javier Carrasco wrote: >> Most of the functionality this driver provides can be used by non-hub >> devices as well. >> >> To account for the hub-specific code, add a flag to the d

[PATCH v7 2/9] usb: misc: onboard_hub: use device supply names

2024-03-04 Thread Javier Carrasco
Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_hub.c | 49 -- drivers/usb/misc/onboard_usb_hub.h | 12 ++ 2 files changed, 38 insertions(+), 23 deletions(-) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc

[PATCH v7 0/9] usb: misc: onboard_hub: add support for XMOS XVF3500

2024-03-04 Thread Javier Carrasco
: linux-so...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Javier Carrasco Changes in v7: - onboard_usb_dev.c: drop comment for is_hub field

[PATCH v7 1/9] usb: misc: onboard_hub: use pointer consistently in the probe function

2024-03-04 Thread Javier Carrasco
Commit 14485de431b0 ("usb: Use device_get_match_data()") overlooked the already existing pointer to pdev->dev 'dev'. Use the existing pointer 'dev' in device_get_match_data() to keep code consistency. Acked-by: Matthias Kaehlcke Signed-off-by: Javie

[PATCH v7 7/9] usb: misc: onboard_dev: add support for non-hub devices

2024-03-04 Thread Javier Carrasco
eeping the driver's default behavior for non-hub devices (keep on in suspend). Acked-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 25 - drivers/usb/misc/onboard_usb_dev.h | 10 ++ 2 files changed, 34 insertions

[PATCH v7 4/9] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-03-04 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Acked-by: Helen Koike Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1

[PATCH v7 8/9] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor

2024-03-04 Thread Javier Carrasco
The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Reviewed-by: Krzysztof Kozlowski Acked-by: Mark Brown Signed-off-by: Javier Carrasco

[PATCH v7 3/9] usb: misc: onboard_hub: rename to onboard_dev

2024-03-04 Thread Javier Carrasco
). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Acked-by: Matthias Kaehlcke S

[PATCH v7 5/9] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV

2024-03-04 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion

[PATCH v7 6/9] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB to ONBOAD_USB_DEV

2024-03-04 Thread Javier Carrasco
The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Reviewed-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- arch/arm/configs

[PATCH v7 9/9] usb: misc: onboard_dev: add support for XMOS XVF3500

2024-03-04 Thread Javier Carrasco
least 100ns. Once in normal operation, the XVF3500 registers itself as a USB device, and it does not require any device-specific operations in the driver. [1] https://www.xmos.com/xvf3500/ Acked-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 2

[PATCH] drm/kmb: Replace of_node_put() with automatic cleanup handler

2024-04-10 Thread Javier Carrasco
Make use of the __free() cleanup handler to automatically free nodes when they get out of scope. Suggested-by: Julia Lawall Signed-off-by: Javier Carrasco --- The patch is based on the latest linux-next tag (next-20240410). --- drivers/gpu/drm/kmb/kmb_drv.c | 13 - drivers/gpu/drm

[PATCH] backlight: lm3509_bl: Fix early returns in for_each_child_of_node()

2024-06-24 Thread Javier Carrasco
exits without the need for explicit calls to of_node_put(). Reported-by: kernel test robot Reported-by: Julia Lawall Closes: https://lore.kernel.org/r/202406172314.2vvgelas-...@intel.com/ Fixes: b72755f5b577 ("backlight: Add new lm3509 backlight driver") Signed-off-by: Javier Carrasco --

[PATCH 0/3] drm/mediatek: fixes for ovl_adaptor

2024-06-24 Thread Javier Carrasco
mistakes if new break/return instructions are added, but the macro might not be available in older kernels. When at it, an unused header has been dropped. Signed-off-by: Javier Carrasco --- Javier Carrasco (3): drm/mediatek: ovl_adaptor: drop unused mtk_crtc.h header drm/mediatek

[PATCH 3/3] drm/mediatek: ovl_adaptor: use scoped variant of for_each_child_of_node()

2024-06-24 Thread Javier Carrasco
calls to of_node_put(). Signed-off-by: Javier Carrasco --- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c index 3faf26a55e77

[PATCH 1/3] drm/mediatek: ovl_adaptor: drop unused mtk_crtc.h header

2024-06-24 Thread Javier Carrasco
None of the elements from that header is used in this file. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c

[PATCH 2/3] drm/mediatek: ovl_adaptor: add missing of_node_put()

2024-06-24 Thread Javier Carrasco
Error paths that exit for_each_child_of_node() need to call of_node_put() to decerement the child refcount and avoid memory leaks. Add the missing of_node_put(). Cc: sta...@vger.kernel.org Fixes: 453c3364632a ("drm/mediatek: Add ovl_adaptor support for MT8195") Signed-off-by: Javie

Re: [PATCH] drm/kmb: Replace of_node_put() with automatic cleanup handler

2024-04-29 Thread Javier Carrasco
On 4/10/24 22:45, Javier Carrasco wrote: > Make use of the __free() cleanup handler to automatically free nodes > when they get out of scope. > > Suggested-by: Julia Lawall > Signed-off-by: Javier Carrasco > --- > The patch is based on the latest linux-next tag (next-202404

[PATCH] drm/bridge: tc358767: fix missing of_node_put() in for_each_endpoint_of_node()

2024-10-13 Thread Javier Carrasco
hasis") Signed-off-by: Javier Carrasco --- drivers/gpu/drm/bridge/tc358767.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 159c95b26d33..942fbaa1413a 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drive

[PATCH 0/3] drm: logicvc: add of_node_put() and switch to a more secure approach

2024-10-10 Thread Javier Carrasco
paths, this series provides a first patch with the classical approach of adding the missing of_node_put(), and two more patches to use the cleanup attribute and avoid issues with device nodes again. Signed-off-by: Javier Carrasco --- Javier Carrasco (3): drm: logicvc: fix missing of_node_put

[PATCH 1/3] drm: logicvc: fix missing of_node_put() in for_each_child_of_node()

2024-10-10 Thread Javier Carrasco
quot;) Signed-off-by: Javier Carrasco --- drivers/gpu/drm/logicvc/logicvc_layer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/logicvc/logicvc_layer.c b/drivers/gpu/drm/logicvc/logicvc_layer.c index 464000aea765..52dabacd42ee 100644 --- a/drivers/gpu/drm/logicvc/logicvc_layer

[PATCH 2/3] drm: logicvc: switch to for_each_child_of_node_scoped()

2024-10-10 Thread Javier Carrasco
Use the scoped variant of the macro to avoid leaking memory upon early exits without the required call to of_node_put(). Signed-off-by: Javier Carrasco --- drivers/gpu/drm/logicvc/logicvc_layer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/logicvc

[PATCH 3/3] drm: logicvc: use automatic cleanup facility for layers_node

2024-10-10 Thread Javier Carrasco
Use the more robust approach provided by the __free() macro to automatically call of_node_put() when the device node goes out of scope. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/logicvc/logicvc_layer.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a

[PATCH 0/2] drm/mediatek: Fix child node refcount handling and use scoped macro

2024-10-11 Thread Javier Carrasco
ff-by: Javier Carrasco --- Javier Carrasco (2): drm/mediatek: Fix child node refcount handling in early exit drm/mediatek: Switch to for_each_child_of_node_scoped() drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- base-c

[PATCH 1/2] drm/mediatek: Fix child node refcount handling in early exit

2024-10-11 Thread Javier Carrasco
cking for coverity issue") Signed-off-by: Javier Carrasco --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index a4594f8873d5..0878df832859 10

[PATCH 2/2] drm/mediatek: Switch to for_each_child_of_node_scoped()

2024-10-11 Thread Javier Carrasco
Introduce the scoped variant of the loop to automatically release the child node when it goes out of scope, which is more robust than the non-scoped variant, and accounts for new early exits that could be added in the future. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/mediatek

Re: [PATCH 2/3] drm: logicvc: switch to for_each_child_of_node_scoped()

2024-10-11 Thread Javier Carrasco
sh them because the first one would apply to stable patches (note the Cc: tag) that are older than the scoped macro, which was introduced this year. Best regards, Javier Carrasco

[PATCH 4/6] drm/meson: Constify struct regmap_config

2024-09-25 Thread Javier Carrasco
`meson_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/meson/meson_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu

[PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus

2024-09-25 Thread Javier Carrasco
`ili9322_regmap_bus` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek

[PATCH 6/6] drm/sprd: Constify struct regmap_bus

2024-09-25 Thread Javier Carrasco
`regmap_txt_io` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/sprd/sprd_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sprd/sprd_dsi.c b/drivers/gpu/drm/sprd

[PATCH 2/6] drm/fsl-dcu: Constify struct regmap_config

2024-09-25 Thread Javier Carrasco
`fsl_tcon_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/fsl-dcu/fsl_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c b/drivers

[PATCH 3/6] drm/mediatek: dp: Constify struct regmap_config

2024-09-25 Thread Javier Carrasco
`mtk_dp_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/mediatek/mtk_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu

[PATCH 0/6] drm: constify read-only regmap structs

2024-09-25 Thread Javier Carrasco
This series adds the const modifier to the remaining regmap_bus and regmap_config structs under drm/ that are effectively used as const (i.e., only read after their declaration), but kept ad writtable data. Signed-off-by: Javier Carrasco --- Javier Carrasco (6): drm/bridge: dpc3433

[PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config

2024-09-25 Thread Javier Carrasco
`dlpc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-dlpc3433.c b/drivers

Re: [git pull] drm for 6.13-rc1

2024-11-24 Thread Javier Carrasco
uct platform_device *pdev; of_id = of_match_node(mtk_drm_of_ids, node); --- This chunk can be found in mtk_drm_get_all_drm_priv(), which is not listed in the trace, but it is called from mtk_drm_bind(). The loop did not release the child_node if cnt == MAX_CRTC (by means of a break), which goes against how for_each_child_of_node() should be handled. If the child_node is indeed required afterwards (it is not referenced anywhere after the loop), it should be acquired via of_node_get() and stored somewhere to be able to put it later. Then another issue would lie underneath as the reference to the child_node is not stored in any way. But if this patch fixes the issue, then I suppose it should be applied immediately, and the rest should be discussed later on. By the way, are there any logs with debug/error messages to analyze further is the issue is something different? Thanks and best regards, Javier Carrasco

Re: [git pull] drm for 6.13-rc1

2024-12-09 Thread Javier Carrasco
On 09/12/2024 09:56, AngeloGioacchino Del Regno wrote: > Il 06/12/24 09:54, CK Hu (胡俊光) ha scritto: >> Hi, Sasha: >> >> On Mon, 2024-11-25 at 01:35 +0100, Javier Carrasco wrote: >>> External email : Please do not click links or open attachments until >>> you