All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-20 13:01 ` Leonard Crestez
  0 siblings, 0 replies; 12+ messages in thread
From: Leonard Crestez @ 2019-03-20 13:01 UTC (permalink / raw)
  To: Shawn Guo, Uwe Kleine-König, Philipp Zabel
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, kernel,
	Fabio Estevam, linux-arm-kernel

Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
enable it by default for imx.

Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
various imx6qdl-sabresd boards.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reported-by: Abel Vesa <abel.vesa@nxp.com>
---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

Probe loop repeats following lines:

[    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
[    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
[    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.651478] [drm] No driver support for vblank timestamp query.
[    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
[    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
[    3.716921] imx-drm display-subsystem: master bind failed: -517

Maybe it's an imx-drm bug which got exposed by accident?

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 5586a5074a96..2fa5074f5244 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
 CONFIG_MAG3110=y
 CONFIG_MPL3115=y
 CONFIG_PWM=y
 CONFIG_PWM_FSL_FTM=y
 CONFIG_PWM_IMX=y
+CONFIG_PWM_IMX27=y
 CONFIG_NVMEM_IMX_OCOTP=y
 CONFIG_NVMEM_VF610_OCOTP=y
 CONFIG_TEE=y
 CONFIG_OPTEE=y
 CONFIG_MUX_MMIO=y
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-20 13:01 ` Leonard Crestez
  0 siblings, 0 replies; 12+ messages in thread
From: Leonard Crestez @ 2019-03-20 13:01 UTC (permalink / raw)
  To: Shawn Guo, Uwe Kleine-König, Philipp Zabel
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, kernel,
	Fabio Estevam, linux-arm-kernel

Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
enable it by default for imx.

Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
various imx6qdl-sabresd boards.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reported-by: Abel Vesa <abel.vesa@nxp.com>
---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

Probe loop repeats following lines:

[    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
[    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
[    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.651478] [drm] No driver support for vblank timestamp query.
[    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
[    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
[    3.716921] imx-drm display-subsystem: master bind failed: -517

Maybe it's an imx-drm bug which got exposed by accident?

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 5586a5074a96..2fa5074f5244 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
 CONFIG_MAG3110=y
 CONFIG_MPL3115=y
 CONFIG_PWM=y
 CONFIG_PWM_FSL_FTM=y
 CONFIG_PWM_IMX=y
+CONFIG_PWM_IMX27=y
 CONFIG_NVMEM_IMX_OCOTP=y
 CONFIG_NVMEM_VF610_OCOTP=y
 CONFIG_TEE=y
 CONFIG_OPTEE=y
 CONFIG_MUX_MMIO=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
  2019-03-20 13:01 ` Leonard Crestez
@ 2019-03-21  9:49   ` Uwe Kleine-König
  -1 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-03-21  9:49 UTC (permalink / raw)
  To: Leonard Crestez, Thierry Reding
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Philipp Zabel,
	Fabio Estevam, Shawn Guo, kernel, linux-arm-kernel

Hello,

On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> enable it by default for imx.
> 
> Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> various imx6qdl-sabresd boards.
> 
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> Reported-by: Abel Vesa <abel.vesa@nxp.com>

This is prior art:

https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both

unfortunately this didn't get an Ack by Shawn and Thierry (added to
recipients) marked it as "Not Applicable".

Given that the driver change is in Linus Torvald's tree now (since
v5.1-rc1~38) it doesn't matter much via which tree this goes in and
Shawn's tree is the easier now.

@Shawn: Would you please apply my patches? If you don't have them any
more, I can bounce them to you. See

	git show v5.1-rc1~38^2~17 -- drivers/pwm/Kconfig

for their justification.

> ---
>  arch/arm/configs/imx_v6_v7_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> Probe loop repeats following lines:
> 
> [    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
> [    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
> [    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [    3.651478] [drm] No driver support for vblank timestamp query.
> [    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
> [    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
> [    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
> [    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
> [    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
> [    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
> [    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
> [    3.716921] imx-drm display-subsystem: master bind failed: -517
>
> Maybe it's an imx-drm bug which got exposed by accident?

IMHO this should be debugged independent of this patch.
 
> diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
> index 5586a5074a96..2fa5074f5244 100644
> --- a/arch/arm/configs/imx_v6_v7_defconfig
> +++ b/arch/arm/configs/imx_v6_v7_defconfig
> @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
>  CONFIG_MAG3110=y
>  CONFIG_MPL3115=y
>  CONFIG_PWM=y
>  CONFIG_PWM_FSL_FTM=y
>  CONFIG_PWM_IMX=y
> +CONFIG_PWM_IMX27=y

PWM_IMX is gone, so this can be dropped (but see my patch referenced
above).

>  CONFIG_NVMEM_IMX_OCOTP=y
>  CONFIG_NVMEM_VF610_OCOTP=y
>  CONFIG_TEE=y
>  CONFIG_OPTEE=y
>  CONFIG_MUX_MMIO=y

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-21  9:49   ` Uwe Kleine-König
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-03-21  9:49 UTC (permalink / raw)
  To: Leonard Crestez, Thierry Reding
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Fabio Estevam,
	Shawn Guo, kernel, linux-arm-kernel

Hello,

On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> enable it by default for imx.
> 
> Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> various imx6qdl-sabresd boards.
> 
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> Reported-by: Abel Vesa <abel.vesa@nxp.com>

This is prior art:

https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both

unfortunately this didn't get an Ack by Shawn and Thierry (added to
recipients) marked it as "Not Applicable".

Given that the driver change is in Linus Torvald's tree now (since
v5.1-rc1~38) it doesn't matter much via which tree this goes in and
Shawn's tree is the easier now.

@Shawn: Would you please apply my patches? If you don't have them any
more, I can bounce them to you. See

	git show v5.1-rc1~38^2~17 -- drivers/pwm/Kconfig

for their justification.

> ---
>  arch/arm/configs/imx_v6_v7_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> Probe loop repeats following lines:
> 
> [    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
> [    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
> [    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [    3.651478] [drm] No driver support for vblank timestamp query.
> [    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
> [    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
> [    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
> [    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
> [    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
> [    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
> [    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
> [    3.716921] imx-drm display-subsystem: master bind failed: -517
>
> Maybe it's an imx-drm bug which got exposed by accident?

IMHO this should be debugged independent of this patch.
 
> diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
> index 5586a5074a96..2fa5074f5244 100644
> --- a/arch/arm/configs/imx_v6_v7_defconfig
> +++ b/arch/arm/configs/imx_v6_v7_defconfig
> @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
>  CONFIG_MAG3110=y
>  CONFIG_MPL3115=y
>  CONFIG_PWM=y
>  CONFIG_PWM_FSL_FTM=y
>  CONFIG_PWM_IMX=y
> +CONFIG_PWM_IMX27=y

PWM_IMX is gone, so this can be dropped (but see my patch referenced
above).

>  CONFIG_NVMEM_IMX_OCOTP=y
>  CONFIG_NVMEM_VF610_OCOTP=y
>  CONFIG_TEE=y
>  CONFIG_OPTEE=y
>  CONFIG_MUX_MMIO=y

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
  2019-03-21  9:49   ` Uwe Kleine-König
@ 2019-03-21 10:03     ` Leonard Crestez
  -1 siblings, 0 replies; 12+ messages in thread
From: Leonard Crestez @ 2019-03-21 10:03 UTC (permalink / raw)
  To: Uwe Kleine-König, Thierry Reding, Shawn Guo
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, kernel,
	Fabio Estevam, Philipp Zabel, linux-arm-kernel

On 3/21/2019 11:49 AM, Uwe Kleine-König wrote:
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
>> Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
>> CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
>> enable it by default for imx.
>>
>> Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
>> various imx6qdl-sabresd boards.

> This is prior art:
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you.

+1 from me because it fixes boot.

>> --- a/arch/arm/configs/imx_v6_v7_defconfig
>> +++ b/arch/arm/configs/imx_v6_v7_defconfig
>> @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
>>   CONFIG_MAG3110=y
>>   CONFIG_MPL3115=y
>>   CONFIG_PWM=y
>>   CONFIG_PWM_FSL_FTM=y
>>   CONFIG_PWM_IMX=y
>> +CONFIG_PWM_IMX27=y
> 
> PWM_IMX is gone, so this can be dropped (but see my patch referenced
> above).

Noticed that after sending; your patch deals with this correctly and 
also covers imx_v4_v5

--
Regards,
Leonard

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-21 10:03     ` Leonard Crestez
  0 siblings, 0 replies; 12+ messages in thread
From: Leonard Crestez @ 2019-03-21 10:03 UTC (permalink / raw)
  To: Uwe Kleine-König, Thierry Reding, Shawn Guo
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, kernel,
	Fabio Estevam, Philipp Zabel, linux-arm-kernel

On 3/21/2019 11:49 AM, Uwe Kleine-König wrote:
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
>> Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
>> CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
>> enable it by default for imx.
>>
>> Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
>> various imx6qdl-sabresd boards.

> This is prior art:
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you.

+1 from me because it fixes boot.

>> --- a/arch/arm/configs/imx_v6_v7_defconfig
>> +++ b/arch/arm/configs/imx_v6_v7_defconfig
>> @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
>>   CONFIG_MAG3110=y
>>   CONFIG_MPL3115=y
>>   CONFIG_PWM=y
>>   CONFIG_PWM_FSL_FTM=y
>>   CONFIG_PWM_IMX=y
>> +CONFIG_PWM_IMX27=y
> 
> PWM_IMX is gone, so this can be dropped (but see my patch referenced
> above).

Noticed that after sending; your patch deals with this correctly and 
also covers imx_v4_v5

--
Regards,
Leonard

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
  2019-03-21  9:49   ` Uwe Kleine-König
@ 2019-03-22  2:18     ` Shawn Guo
  -1 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2019-03-22  2:18 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Aisheng Dong, Abel Vesa, dri-devel, Thierry Reding, dl-linux-imx,
	Philipp Zabel, Fabio Estevam, Leonard Crestez, kernel,
	linux-arm-kernel

On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > enable it by default for imx.
> > 
> > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > various imx6qdl-sabresd boards.
> > 
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> 
> This is prior art:
> 
> https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> 
> unfortunately this didn't get an Ack by Shawn and Thierry (added to
> recipients) marked it as "Not Applicable".
> 
> Given that the driver change is in Linus Torvald's tree now (since
> v5.1-rc1~38) it doesn't matter much via which tree this goes in and
> Shawn's tree is the easier now.
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you. See

Yeah, just applied.  Sorry for being sluggish.

Shawn

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-22  2:18     ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2019-03-22  2:18 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Aisheng Dong, Abel Vesa, dri-devel, Thierry Reding, dl-linux-imx,
	Fabio Estevam, Leonard Crestez, kernel, linux-arm-kernel

On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > enable it by default for imx.
> > 
> > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > various imx6qdl-sabresd boards.
> > 
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> 
> This is prior art:
> 
> https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> 
> unfortunately this didn't get an Ack by Shawn and Thierry (added to
> recipients) marked it as "Not Applicable".
> 
> Given that the driver change is in Linus Torvald's tree now (since
> v5.1-rc1~38) it doesn't matter much via which tree this goes in and
> Shawn's tree is the easier now.
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you. See

Yeah, just applied.  Sorry for being sluggish.

Shawn
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
  2019-03-21  9:49   ` Uwe Kleine-König
@ 2019-03-22  9:47     ` Thierry Reding
  -1 siblings, 0 replies; 12+ messages in thread
From: Thierry Reding @ 2019-03-22  9:47 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Philipp Zabel,
	Fabio Estevam, Leonard Crestez, Shawn Guo, kernel,
	linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 3517 bytes --]

On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > enable it by default for imx.
> > 
> > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > various imx6qdl-sabresd boards.
> > 
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> 
> This is prior art:
> 
> https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> 
> unfortunately this didn't get an Ack by Shawn and Thierry (added to
> recipients) marked it as "Not Applicable".

If I mark patches as "not applicable" it generally means that I don't
intend to apply them to the PWM tree.

Thierry

> Given that the driver change is in Linus Torvald's tree now (since
> v5.1-rc1~38) it doesn't matter much via which tree this goes in and
> Shawn's tree is the easier now.
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you. See
> 
> 	git show v5.1-rc1~38^2~17 -- drivers/pwm/Kconfig
> 
> for their justification.
> 
> > ---
> >  arch/arm/configs/imx_v6_v7_defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > Probe loop repeats following lines:
> > 
> > [    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
> > [    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
> > [    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> > [    3.651478] [drm] No driver support for vblank timestamp query.
> > [    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
> > [    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
> > [    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
> > [    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
> > [    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
> > [    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
> > [    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
> > [    3.716921] imx-drm display-subsystem: master bind failed: -517
> >
> > Maybe it's an imx-drm bug which got exposed by accident?
> 
> IMHO this should be debugged independent of this patch.
>  
> > diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
> > index 5586a5074a96..2fa5074f5244 100644
> > --- a/arch/arm/configs/imx_v6_v7_defconfig
> > +++ b/arch/arm/configs/imx_v6_v7_defconfig
> > @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
> >  CONFIG_MAG3110=y
> >  CONFIG_MPL3115=y
> >  CONFIG_PWM=y
> >  CONFIG_PWM_FSL_FTM=y
> >  CONFIG_PWM_IMX=y
> > +CONFIG_PWM_IMX27=y
> 
> PWM_IMX is gone, so this can be dropped (but see my patch referenced
> above).
> 
> >  CONFIG_NVMEM_IMX_OCOTP=y
> >  CONFIG_NVMEM_VF610_OCOTP=y
> >  CONFIG_TEE=y
> >  CONFIG_OPTEE=y
> >  CONFIG_MUX_MMIO=y
> 
> Best regards
> Uwe
> 
> -- 
> Pengutronix e.K.                           | Uwe Kleine-König            |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-22  9:47     ` Thierry Reding
  0 siblings, 0 replies; 12+ messages in thread
From: Thierry Reding @ 2019-03-22  9:47 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Fabio Estevam,
	Leonard Crestez, Shawn Guo, kernel, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 3517 bytes --]

On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > enable it by default for imx.
> > 
> > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > various imx6qdl-sabresd boards.
> > 
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> 
> This is prior art:
> 
> https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> 
> unfortunately this didn't get an Ack by Shawn and Thierry (added to
> recipients) marked it as "Not Applicable".

If I mark patches as "not applicable" it generally means that I don't
intend to apply them to the PWM tree.

Thierry

> Given that the driver change is in Linus Torvald's tree now (since
> v5.1-rc1~38) it doesn't matter much via which tree this goes in and
> Shawn's tree is the easier now.
> 
> @Shawn: Would you please apply my patches? If you don't have them any
> more, I can bounce them to you. See
> 
> 	git show v5.1-rc1~38^2~17 -- drivers/pwm/Kconfig
> 
> for their justification.
> 
> > ---
> >  arch/arm/configs/imx_v6_v7_defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > Probe loop repeats following lines:
> > 
> > [    3.625031] pwm-backlight backlight-lvds: backlight-lvds supply power not found, using dummy regulator
> > [    3.635868] panel-simple panel: panel supply power not found, using dummy regulator
> > [    3.644844] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> > [    3.651478] [drm] No driver support for vblank timestamp query.
> > [    3.657660] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
> > [    3.665240] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
> > [    3.672819] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
> > [    3.680393] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
> > [    3.688312] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
> > [    3.699743] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
> > [    3.707343] imx-drm display-subsystem: failed to bind ldb (ops imx_ldb_ops): -517
> > [    3.716921] imx-drm display-subsystem: master bind failed: -517
> >
> > Maybe it's an imx-drm bug which got exposed by accident?
> 
> IMHO this should be debugged independent of this patch.
>  
> > diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
> > index 5586a5074a96..2fa5074f5244 100644
> > --- a/arch/arm/configs/imx_v6_v7_defconfig
> > +++ b/arch/arm/configs/imx_v6_v7_defconfig
> > @@ -397,10 +397,11 @@ CONFIG_SENSORS_ISL29018=y
> >  CONFIG_MAG3110=y
> >  CONFIG_MPL3115=y
> >  CONFIG_PWM=y
> >  CONFIG_PWM_FSL_FTM=y
> >  CONFIG_PWM_IMX=y
> > +CONFIG_PWM_IMX27=y
> 
> PWM_IMX is gone, so this can be dropped (but see my patch referenced
> above).
> 
> >  CONFIG_NVMEM_IMX_OCOTP=y
> >  CONFIG_NVMEM_VF610_OCOTP=y
> >  CONFIG_TEE=y
> >  CONFIG_OPTEE=y
> >  CONFIG_MUX_MMIO=y
> 
> Best regards
> Uwe
> 
> -- 
> Pengutronix e.K.                           | Uwe Kleine-König            |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
  2019-03-22  9:47     ` Thierry Reding
@ 2019-03-22 10:43       ` Uwe Kleine-König
  -1 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-03-22 10:43 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Philipp Zabel,
	Fabio Estevam, Leonard Crestez, Shawn Guo, kernel,
	linux-arm-kernel

On Fri, Mar 22, 2019 at 10:47:00AM +0100, Thierry Reding wrote:
> On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> > Hello,
> > 
> > On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > > enable it by default for imx.
> > > 
> > > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > > various imx6qdl-sabresd boards.
> > > 
> > > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> > 
> > This is prior art:
> > 
> > https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> > 
> > unfortunately this didn't get an Ack by Shawn and Thierry (added to
> > recipients) marked it as "Not Applicable".
> 
> If I mark patches as "not applicable" it generally means that I don't
> intend to apply them to the PWM tree.

I understood that. In this case however it would in my eyes have made
sense to take these patches together with the patch that does the driver
split via the pwm tree to make it less likely that people using the
respective defconfigs don't get the PWM driver enabled. That's the
situation now on 5.1-rc1 and people actuall hit this problem. :-| That's
why I wrote:

	I think the easiest handling would be to let them go via the pwm
	tree with Shawn's Ack to get the update near to the actual split
	into the mainline.

in the cover letter.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27
@ 2019-03-22 10:43       ` Uwe Kleine-König
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-03-22 10:43 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Aisheng Dong, Abel Vesa, dri-devel, dl-linux-imx, Fabio Estevam,
	Leonard Crestez, Shawn Guo, kernel, linux-arm-kernel

On Fri, Mar 22, 2019 at 10:47:00AM +0100, Thierry Reding wrote:
> On Thu, Mar 21, 2019 at 10:49:03AM +0100, Uwe Kleine-König wrote:
> > Hello,
> > 
> > On Wed, Mar 20, 2019 at 01:01:26PM +0000, Leonard Crestez wrote:
> > > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new
> > > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should
> > > enable it by default for imx.
> > > 
> > > Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on
> > > various imx6qdl-sabresd boards.
> > > 
> > > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > > Reported-by: Abel Vesa <abel.vesa@nxp.com>
> > 
> > This is prior art:
> > 
> > https://patchwork.ozlabs.org/project/linux-pwm/list/?series=85452&state=%2A&archive=both
> > 
> > unfortunately this didn't get an Ack by Shawn and Thierry (added to
> > recipients) marked it as "Not Applicable".
> 
> If I mark patches as "not applicable" it generally means that I don't
> intend to apply them to the PWM tree.

I understood that. In this case however it would in my eyes have made
sense to take these patches together with the patch that does the driver
split via the pwm tree to make it less likely that people using the
respective defconfigs don't get the PWM driver enabled. That's the
situation now on 5.1-rc1 and people actuall hit this problem. :-| That's
why I wrote:

	I think the easiest handling would be to let them go via the pwm
	tree with Shawn's Ack to get the update near to the actual split
	into the mainline.

in the cover letter.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-03-22 10:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 13:01 [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27 Leonard Crestez
2019-03-20 13:01 ` Leonard Crestez
2019-03-21  9:49 ` Uwe Kleine-König
2019-03-21  9:49   ` Uwe Kleine-König
2019-03-21 10:03   ` Leonard Crestez
2019-03-21 10:03     ` Leonard Crestez
2019-03-22  2:18   ` Shawn Guo
2019-03-22  2:18     ` Shawn Guo
2019-03-22  9:47   ` Thierry Reding
2019-03-22  9:47     ` Thierry Reding
2019-03-22 10:43     ` Uwe Kleine-König
2019-03-22 10:43       ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.