[PATCH v2] video: fbdev: omapfb: Use kstrtobool() instead of strtobool()

2023-01-14 Thread Christophe JAILLET
strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET --- This patch

[RFC PATCH v2 0/2] drm/dsi-mipi: 16-bit Brightness Endianness Fix

2023-01-14 Thread Richard Acayan
Changes since v1: - move 16-bit brightness handling to new functions and revert API change (1/2) - remove Change-Id in compliance with checkpatch.pl (1/2) - separate panel driver changes (2/2) This series adds proper support for 16-bit MIPI DSI brightness and cleans up existing panel drivers

[RFC PATCH v2 2/2] drm/panel: sofef00: Use 16-bit panel brightness

2023-01-14 Thread Richard Acayan
These panels communicate brightness in big endian. This is not a quirk of the panels themselves, but rather, a part of the MIPI standard. Use the new mipi_dsi_dcs_set_display_brightness_wide() function that properly handles 16-bit brightness instead of doing special processing of the brightness val

Re: [RFC PATCH] drm/dsi-mipi: Fix byte order of DCS set/get brightness

2023-01-14 Thread Richard Acayan
On Fri, Jan 13, 2023 at 05:34:55PM +0100, Sam Ravnborg wrote: > Hi Richard/Daniel. Not sure if you saw the original commit that I linked. This patch was written in 2017 for the Pixel 3 and Pixel 3 XL smartphones. I didn't contact the original author before sending this, since the kernel that this

[RFC PATCH v2 1/2] drm/dsi-mipi: Fix byte order of DCS set/get brightness

2023-01-14 Thread Richard Acayan
From: Daniel Mentz The MIPI DCS specification demands that brightness values are sent in big endian byte order. It also states that one parameter (i.e. one byte) shall be sent/received for 8 bit wide values, and two parameters shall be used for values that are between 9 and 16 bits wide. Fixes:

Re: [RFC PATCH v2 1/2] drm/dsi-mipi: Fix byte order of DCS set/get brightness

2023-01-14 Thread Richard Acayan
On Fri, Jan 13, 2023 at 08:00:05PM -0500, Richard Acayan wrote: > From: Daniel Mentz > > The MIPI DCS specification demands that brightness values are sent in > big endian byte order. It also states that one parameter (i.e. one byte) > shall be sent/received for 8 bit wide values, and two paramet

[PATCH] drm/amd/display: Fix warning caused by a bad fake property

2023-01-14 Thread Guilherme G. Piccoli
Commit 5468c36d6285 ("drm/amd/display: Filter Invalid 420 Modes for HDMI TMDS") added a validation on driver probe to prevent invalid TMDS modes. For that, it requires to fake some plane properties before submitting to the validation routines. Happens that one of such fake properties (swizzle) cau

[PATCH] drm/i915/display: Convert i9xx_pipe_crc_auto_source to void

2023-01-14 Thread Deepak R Varma
Convert function i9xx_pipe_crc_auto_source() to return void instead of int since the current implementation always returns 0 to the caller. Issue identified using returnvar Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- Please note: The change is compile tested only. drivers/gpu/

nvkm_devinit_func.disable() to be made void

2023-01-14 Thread Deepak R Varma
Hello, It appears that the callback function disable() of struct nvkm_devinit_func does not need return U64 and can be transformed to be a void. This will impact a few drivers that have currently implementation of this callback since those always return 0ULL. So, Change from 8 struct nvk

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-14 Thread Laurent Pinchart
Geert, could you please take this in your tree for v6.3 ? The two patches that the DT changes depend on have been merged in v6.2. On Thu, Jun 16, 2022 at 01:14:09AM +0300, Laurent Pinchart wrote: > Now that a header exists with macros for the media interface bus-type > values, replace hardcoding n

Re: [PATCH v3 3/6] ARM: dts: freescale: Use new media bus type macros

2023-01-14 Thread Laurent Pinchart
Shawn, could you please take this in your tree for v6.3 ? The two patches that the DT changes depend on have been merged in v6.2. On Thu, Jun 16, 2022 at 01:14:07AM +0300, Laurent Pinchart wrote: > Now that a header exists with macros for the media interface bus-type > values, replace hardcoding n

Re: [PATCH v3 6/6] ARM: dts: stm32: Use new media bus type macros

2023-01-14 Thread Laurent Pinchart
Hugues, Maxime, Alexandre, could one of you take this patch in your tree for v6.3 ? The two patches that it depends on have both been merged in v6.2. On Thu, Jun 16, 2022 at 01:14:10AM +0300, Laurent Pinchart wrote: > Now that a header exists with macros for the media interface bus-type > values,

[PATCH] drm/nouveau/gr/gf100-: remove unnecessary semicolon

2023-01-14 Thread Deepak R Varma
Remove extra unnecessary semicolon. Issue identified using semcolon.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

Re: [PATCH v3 4/6] ARM: dts: omap: Use new media bus type macros

2023-01-14 Thread Laurent Pinchart
Tony, could you take this patch in your tree for v6.3 ? The two patches that it depends on have both been merged in v6.2. On Thu, Jun 16, 2022 at 01:14:08AM +0300, Laurent Pinchart wrote: > Now that a header exists with macros for the media interface bus-type > values, replace hardcoding numerical

[PATCH] drm/mediatek: dp: Remove extra semicolon

2023-01-14 Thread Deepak R Varma
Remove unnecessary semicolon at the end of switch block closing brace. Issue identified using semicolon Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/mediatek/mtk_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_

[PATCH] drm/i915/gvt: Remove extra semicolon

2023-01-14 Thread Deepak R Varma
Remove the extra semicolon at end. Issue identified using semicolon.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/i915/gvt/vgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vg

Re: [REGRESSION] GM20B probe fails after commit 2541626cfb79

2023-01-14 Thread Diogo Ivo
On Fri, Jan 13, 2023 at 02:19:06PM +0100, Linux kernel regression tracking (Thorsten Leemhuis) wrote: > Diogo, for that it would be really helpful to known: is the issue still > happening with latest mainline? Is it possible to revert 2541626cfb79 > easily? And if so: do things work afterwards aga

Re: [REGRESSION] GM20B probe fails after commit 2541626cfb79

2023-01-14 Thread Diogo Ivo
On Sat, Jan 14, 2023 at 04:27:38AM +0100, Karol Herbst wrote: > I tried to look into it, but my jetson nano, just constantly behaves > in very strange ways. I tried to compile and install a 6.1 kernel onto > it, but any kernel just refuses to boot and I have no idea what's up > with that device. Th

Re: [REGRESSION] GM20B probe fails after commit 2541626cfb79

2023-01-14 Thread Karol Herbst
On Sat, Jan 14, 2023 at 5:07 PM Diogo Ivo wrote: > > On Sat, Jan 14, 2023 at 04:27:38AM +0100, Karol Herbst wrote: > > I tried to look into it, but my jetson nano, just constantly behaves > > in very strange ways. I tried to compile and install a 6.1 kernel onto > > it, but any kernel just refuses

[PATCH 1/2] Docs/subsystem-apis: Remove '[The ]Linux' prefixes from titles of listed documents

2023-01-14 Thread SeongJae Park
Some documents that listed on subsystem-apis have 'Linux' or 'The Linux' title prefixes. It's duplicated information, and makes finding the document of interest with human eyes not easy. Remove the prefixes from the titles. Signed-off-by: SeongJae Park --- Documentation/PCI/index.rst|

[PATCH 2/2] Docs: Add some missing SPDX license identifiers of subsystem docs

2023-01-14 Thread SeongJae Park
Some subsystem documents are missing SPDX license identifiers. Add those. Signed-off-by: SeongJae Park --- Documentation/crypto/index.rst | 2 ++ Documentation/driver-api/index.rst | 2 ++ Documentation/gpu/index.rst| 2 ++ Documentation/hwmon/index.rst | 2 ++ Documentation/in

[PATCH 0/4] drm/amd/display: Use min()/max() helper macros

2023-01-14 Thread Deepak R Varma
This patch series proposes using standard min() / max() helper macros instead of direct variable comparison using the ternary operator or if/else evaluations. I have tested the change using a dummy module and similar simulations on my x86 machine. Deepak R Varma (4): drm/amd/display: Use min()/m

[PATCH 1/4] drm/amd/display: Use min()/max() macros in dcn_calc_math

2023-01-14 Thread Deepak R Varma
Use the standard min() / max() helper macros instead of direct variable comparison using if/else blocks or ternary operator. Change identified using minmax.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- .../gpu/drm/amd/display/dc/dml/calcs/dcn_calc_math.c | 10 +- 1

[PATCH 2/4] drm/amd/display: dcn20: Use min()/max() helper macros

2023-01-14 Thread Deepak R Varma
Use the standard min() / max() helper macros instead of direct variable comparison using if/else blocks or ternary operator. Change identified using minmax.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- .../gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c | 5 + .

[PATCH 3/4] drm/amd/display: dcn21: Use min()/max() helper macros

2023-01-14 Thread Deepak R Varma
Use the standard min() / max() helper macros instead of direct variable comparison using if/else blocks or ternary operator. Change identified using minmax.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- .../gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 5 + 1

[PATCH 4/4] drm/amd/display: dcn32: Use min()/max() helper macros

2023-01-14 Thread Deepak R Varma
Use the standard min() / max() helper macros instead of direct variable comparison using if/else blocks or ternary operator. Change identified using minmax.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 4 ++-- 1 file cha

Re: [PATCH 02/22] usb: remove the dead USB_OHCI_SH option

2023-01-14 Thread Rob Landley
On 1/13/23 01:12, Greg Kroah-Hartman wrote: > On Fri, Jan 13, 2023 at 07:23:19AM +0100, Christoph Hellwig wrote: >> USB_OHCI_SH is a dummy option that never builds any code, remove it. >> >> Signed-off-by: Christoph Hellwig >> --- >> drivers/usb/host/Kconfig | 11 --- >> 1 file change

[PATCH 0/3] drm/amd/pm/powerplay: use bitwise or for bitmasks addition

2023-01-14 Thread Deepak R Varma
The patch series proposes usage of bitwise or "|" operator for addition of bitmasks instead of using numerial additions. The former is quicker and cleaner. The proposed change is compile tested. Deepak R Varma (3): drm/amd/pm/powerplay/smumgr: use bitwise or for addition drm/amd/pm/powerplay/

[PATCH 1/3] drm/amd/pm/powerplay/smumgr: use bitwise or for addition

2023-01-14 Thread Deepak R Varma
For bit mask addition, it is recommended to use or operator "|" instead of numerical addition as the former is quicker and cleaner. Change suggested by orplus.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c | 2 +- drive

[PATCH 2/3] drm/amd/pm/powerplay/hwmgr: use bitwise or for bitmasks addition

2023-01-14 Thread Deepak R Varma
For bit mask addition, it is recommended to use or operator "|" instead of numerical addition as the former is quicker and cleaner. Change suggested by orplus.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 8 1 fi

[PATCH 3/3] drm/amd/pm/powerplay/smumgr/ci: use bitwise or for bitmasks addition

2023-01-14 Thread Deepak R Varma
For bit mask addition, it is recommended to use or operator "|" instead of numerical addition as the former is quicker and cleaner. Change suggested by orplus.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 2 +- 1 file cha