All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Jagan Teki <jagan@amarulasolutions.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
	Inki Dae <inki.dae@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Joonyoung Shim <jy0922.shim@samsung.com>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Tim Harvey <tharvey@gateworks.com>,
	Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
	Adam Ford <aford173@gmail.com>,
	Robert Foss <robert.foss@linaro.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Tommaso Merciai <tommaso.merciai@amarulasolutions.com>,
	Matteo Lisi <matteo.lisi@engicam.com>,
	dri-devel@lists.freedesktop.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	NXP Linux Team <linux-imx@nxp.com>,
	linux-amarula <linux-amarula@amarulasolutions.com>
Subject: Re: [RESEND PATCH v11 13/18] drm: exynos: dsi: Add Exynos based host irq hooks
Date: Wed, 25 Jan 2023 19:03:54 +0100	[thread overview]
Message-ID: <94f847b0-769d-e28b-11c0-b817b30c704f@denx.de> (raw)
In-Reply-To: <CAMty3ZDTcnN_NgjL8hEBnABpFcaE=hCegZnzaC9tz-7wFxYSmw@mail.gmail.com>

On 1/25/23 18:35, Jagan Teki wrote:

[...]

>>> exynos_dsi_register_te_irq is done after the bridge attach is done in
>>> Exynos, here bridge attach is triggered in the component ops bind
>>> call, since samsung-dsim is a pure bridge w/o any component ops.
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/bridge/samsung-dsim.c#L1527
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/exynos/exynos_drm_dsi.c#L112
>>>
>>> Any suggestion on how to handle this?
>>
>> Why isn't the generic code calling drm_bridge_attach() in
>> samsung_dsim_host_attach(), like the exynos one ?
> 
> Exynos drm drivers follow component ops and generic dsim is a pure drm
> bridge whose downstream bridge will attach in bridge ops attach and
> the component-based drivers require an initial bridge attach (whose
> previous is NULL) call in the component bind hook for establishing the
> bridge chain.

Well in that case, call the exynos optional host_attach and register the 
TE IRQ handler at the end, that should work just fine too, right ? If 
so, then you can also move the IRQ handler registration into the generic 
part of the driver.

WARNING: multiple messages have this Message-ID (diff)
From: Marek Vasut <marex@denx.de>
To: Jagan Teki <jagan@amarulasolutions.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
	Inki Dae <inki.dae@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Joonyoung Shim <jy0922.shim@samsung.com>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Tim Harvey <tharvey@gateworks.com>,
	Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
	Adam Ford <aford173@gmail.com>,
	Robert Foss <robert.foss@linaro.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Tommaso Merciai <tommaso.merciai@amarulasolutions.com>,
	Matteo Lisi <matteo.lisi@engicam.com>,
	dri-devel@lists.freedesktop.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	NXP Linux Team <linux-imx@nxp.com>,
	linux-amarula <linux-amarula@amarulasolutions.com>
Subject: Re: [RESEND PATCH v11 13/18] drm: exynos: dsi: Add Exynos based host irq hooks
Date: Wed, 25 Jan 2023 19:03:54 +0100	[thread overview]
Message-ID: <94f847b0-769d-e28b-11c0-b817b30c704f@denx.de> (raw)
In-Reply-To: <CAMty3ZDTcnN_NgjL8hEBnABpFcaE=hCegZnzaC9tz-7wFxYSmw@mail.gmail.com>

On 1/25/23 18:35, Jagan Teki wrote:

[...]

>>> exynos_dsi_register_te_irq is done after the bridge attach is done in
>>> Exynos, here bridge attach is triggered in the component ops bind
>>> call, since samsung-dsim is a pure bridge w/o any component ops.
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/bridge/samsung-dsim.c#L1527
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/exynos/exynos_drm_dsi.c#L112
>>>
>>> Any suggestion on how to handle this?
>>
>> Why isn't the generic code calling drm_bridge_attach() in
>> samsung_dsim_host_attach(), like the exynos one ?
> 
> Exynos drm drivers follow component ops and generic dsim is a pure drm
> bridge whose downstream bridge will attach in bridge ops attach and
> the component-based drivers require an initial bridge attach (whose
> previous is NULL) call in the component bind hook for establishing the
> bridge chain.

Well in that case, call the exynos optional host_attach and register the 
TE IRQ handler at the end, that should work just fine too, right ? If 
so, then you can also move the IRQ handler registration into the generic 
part of the driver.

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

WARNING: multiple messages have this Message-ID (diff)
From: Marek Vasut <marex@denx.de>
To: Jagan Teki <jagan@amarulasolutions.com>
Cc: dri-devel@lists.freedesktop.org,
	linux-samsung-soc@vger.kernel.org,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Joonyoung Shim <jy0922.shim@samsung.com>,
	linux-amarula <linux-amarula@amarulasolutions.com>,
	Seung-Woo Kim <sw0312.kim@samsung.com>,
	Tommaso Merciai <tommaso.merciai@amarulasolutions.com>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Matteo Lisi <matteo.lisi@engicam.com>,
	Robert Foss <robert.foss@linaro.org>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
	Adam Ford <aford173@gmail.com>,
	linux-arm-kernel@lists.infradead.org,
	Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [RESEND PATCH v11 13/18] drm: exynos: dsi: Add Exynos based host irq hooks
Date: Wed, 25 Jan 2023 19:03:54 +0100	[thread overview]
Message-ID: <94f847b0-769d-e28b-11c0-b817b30c704f@denx.de> (raw)
In-Reply-To: <CAMty3ZDTcnN_NgjL8hEBnABpFcaE=hCegZnzaC9tz-7wFxYSmw@mail.gmail.com>

On 1/25/23 18:35, Jagan Teki wrote:

[...]

>>> exynos_dsi_register_te_irq is done after the bridge attach is done in
>>> Exynos, here bridge attach is triggered in the component ops bind
>>> call, since samsung-dsim is a pure bridge w/o any component ops.
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/bridge/samsung-dsim.c#L1527
>>> https://github.com/openedev/kernel/blob/imx8mm-dsi-v12/drivers/gpu/drm/exynos/exynos_drm_dsi.c#L112
>>>
>>> Any suggestion on how to handle this?
>>
>> Why isn't the generic code calling drm_bridge_attach() in
>> samsung_dsim_host_attach(), like the exynos one ?
> 
> Exynos drm drivers follow component ops and generic dsim is a pure drm
> bridge whose downstream bridge will attach in bridge ops attach and
> the component-based drivers require an initial bridge attach (whose
> previous is NULL) call in the component bind hook for establishing the
> bridge chain.

Well in that case, call the exynos optional host_attach and register the 
TE IRQ handler at the end, that should work just fine too, right ? If 
so, then you can also move the IRQ handler registration into the generic 
part of the driver.

  reply	other threads:[~2023-01-25 18:04 UTC|newest]

Thread overview: 205+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-23 15:11 [RESEND PATCH v11 00/18] drm: Add Samsung MIPI DSIM bridge Jagan Teki
2023-01-23 15:11 ` Jagan Teki
2023-01-23 15:11 ` Jagan Teki
2023-01-23 15:11 ` [RESEND PATCH v11 01/18] drm: of: Lookup if child node has DSI panel or bridge Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11 ` [RESEND PATCH v11 02/18] drm: bridge: panel: Add devm_drm_of_dsi_get_bridge helper Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-26 12:12   ` Maxime Ripard
2023-01-26 12:12     ` Maxime Ripard
2023-01-26 12:12     ` Maxime Ripard
2023-01-26 15:18     ` Jagan Teki
2023-01-26 15:18       ` Jagan Teki
2023-01-26 15:18       ` Jagan Teki
2023-01-27 17:39       ` Jagan Teki
2023-01-27 17:39         ` Jagan Teki
2023-01-27 17:39         ` Jagan Teki
2023-01-30 12:56         ` Maxime Ripard
2023-01-30 12:56           ` Maxime Ripard
2023-01-30 12:56           ` Maxime Ripard
2023-01-30 13:24           ` Jagan Teki
2023-01-30 13:24             ` Jagan Teki
2023-01-30 13:24             ` Jagan Teki
2023-01-31 12:45             ` Maxime Ripard
2023-01-31 12:45               ` Maxime Ripard
2023-01-31 12:45               ` Maxime Ripard
2023-01-31 13:47               ` Jagan Teki
2023-01-31 13:47                 ` Jagan Teki
2023-01-31 13:47                 ` Jagan Teki
2023-01-31 13:59                 ` Maxime Ripard
2023-01-31 13:59                   ` Maxime Ripard
2023-01-31 13:59                   ` Maxime Ripard
2023-01-31 14:14                   ` Jagan Teki
2023-01-31 14:14                     ` Jagan Teki
2023-01-31 14:14                     ` Jagan Teki
2023-01-30 12:58       ` Maxime Ripard
2023-01-30 12:58         ` Maxime Ripard
2023-01-30 12:58         ` Maxime Ripard
2023-01-30 13:22         ` Jagan Teki
2023-01-30 13:22           ` Jagan Teki
2023-01-30 13:22           ` Jagan Teki
2023-02-02 16:52         ` Jagan Teki
2023-02-02 16:52           ` Jagan Teki
2023-02-02 16:52           ` Jagan Teki
2023-02-03  8:26           ` Maxime Ripard
2023-02-03  8:26             ` Maxime Ripard
2023-02-03  8:26             ` Maxime Ripard
2023-02-03 10:43             ` Jagan Teki
2023-02-03 10:43               ` Jagan Teki
2023-02-03 10:43               ` Jagan Teki
2023-02-03 10:49               ` Maxime Ripard
2023-02-03 10:49                 ` Maxime Ripard
2023-02-03 10:49                 ` Maxime Ripard
2023-02-03 10:58                 ` Jagan Teki
2023-02-03 10:58                   ` Jagan Teki
2023-02-03 10:58                   ` Jagan Teki
2023-02-03 11:04                   ` Maxime Ripard
2023-02-03 11:04                     ` Maxime Ripard
2023-02-03 11:04                     ` Maxime Ripard
2023-02-27 11:25                     ` Jagan Teki
2023-02-27 11:25                       ` Jagan Teki
2023-02-27 11:25                       ` Jagan Teki
2023-01-23 15:11 ` [RESEND PATCH v11 03/18] drm: exynos: dsi: Drop explicit call to bridge detach Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11 ` [RESEND PATCH v11 04/18] drm: exynos: dsi: Switch to devm_drm_of_dsi_get_bridge Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11 ` [RESEND PATCH v11 05/18] drm: exynos: dsi: Mark PHY as optional Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:11   ` Jagan Teki
2023-01-23 15:12 ` [RESEND PATCH v11 06/18] drm: exynos: dsi: Add platform PLL_P (PMS_P) offset Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12 ` [RESEND PATCH v11 07/18] drm: exynos: dsi: Introduce hw_type platform data Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:54   ` Marek Vasut
2023-01-24 20:54     ` Marek Vasut
2023-01-24 20:54     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 08/18] drm: exynos: dsi: Handle proper host initialization Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 21:00   ` Marek Vasut
2023-01-24 21:00     ` Marek Vasut
2023-01-24 21:00     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 09/18] drm: exynos: dsi: Add atomic check Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:55   ` Marek Vasut
2023-01-24 20:55     ` Marek Vasut
2023-01-24 20:55     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 10/18] drm: exynos: dsi: Add input_bus_flags Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:55   ` Marek Vasut
2023-01-24 20:55     ` Marek Vasut
2023-01-24 20:55     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 11/18] drm: exynos: dsi: Add atomic_get_input_bus_fmts Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:45   ` Marek Vasut
2023-01-24 20:45     ` Marek Vasut
2023-01-24 20:45     ` Marek Vasut
2023-01-24 21:16     ` Jagan Teki
2023-01-24 21:16       ` Jagan Teki
2023-01-24 21:16       ` Jagan Teki
2023-01-24 21:19       ` Marek Vasut
2023-01-24 21:19         ` Marek Vasut
2023-01-24 21:19         ` Marek Vasut
2023-01-24 21:22         ` Jagan Teki
2023-01-24 21:22           ` Jagan Teki
2023-01-24 21:22           ` Jagan Teki
2023-01-23 15:12 ` [RESEND PATCH v11 12/18] drm: exynos: dsi: Consolidate component and bridge Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 21:04   ` Marek Vasut
2023-01-24 21:04     ` Marek Vasut
2023-01-24 21:04     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 13/18] drm: exynos: dsi: Add Exynos based host irq hooks Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:48   ` Marek Vasut
2023-01-24 20:48     ` Marek Vasut
2023-01-24 20:48     ` Marek Vasut
2023-01-24 21:01     ` Jagan Teki
2023-01-24 21:01       ` Jagan Teki
2023-01-24 21:01       ` Jagan Teki
2023-01-24 21:12       ` Marek Vasut
2023-01-24 21:12         ` Marek Vasut
2023-01-24 21:12         ` Marek Vasut
2023-01-24 21:24         ` Jagan Teki
2023-01-24 21:24           ` Jagan Teki
2023-01-24 21:24           ` Jagan Teki
2023-01-24 21:24           ` Jagan Teki
2023-01-24 21:24             ` Jagan Teki
2023-01-24 21:24             ` Jagan Teki
2023-01-25  6:54             ` Jagan Teki
2023-01-25  6:54               ` Jagan Teki
2023-01-25  6:54               ` Jagan Teki
2023-01-25 13:53               ` Marek Vasut
2023-01-25 13:53                 ` Marek Vasut
2023-01-25 13:53                 ` Marek Vasut
2023-01-25 14:04                 ` Jagan Teki
2023-01-25 14:04                   ` Jagan Teki
2023-01-25 14:04                   ` Jagan Teki
2023-01-25 16:46                   ` Marek Vasut
2023-01-25 16:46                     ` Marek Vasut
2023-01-25 16:46                     ` Marek Vasut
2023-01-25 17:12                     ` Jagan Teki
2023-01-25 17:12                       ` Jagan Teki
2023-01-25 17:12                       ` Jagan Teki
2023-01-25 17:27                       ` Marek Vasut
2023-01-25 17:27                         ` Marek Vasut
2023-01-25 17:27                         ` Marek Vasut
2023-01-25 17:35                         ` Jagan Teki
2023-01-25 17:35                           ` Jagan Teki
2023-01-25 17:35                           ` Jagan Teki
2023-01-25 18:03                           ` Marek Vasut [this message]
2023-01-25 18:03                             ` Marek Vasut
2023-01-25 18:03                             ` Marek Vasut
2023-01-25 19:24                             ` Jagan Teki
2023-01-25 19:24                               ` Jagan Teki
2023-01-25 19:24                               ` Jagan Teki
2023-01-25 21:53                               ` Marek Vasut
2023-01-25 21:53                                 ` Marek Vasut
2023-01-25 21:53                                 ` Marek Vasut
2023-01-25 16:02         ` Jagan Teki
2023-01-25 16:02           ` Jagan Teki
2023-01-25 16:02           ` Jagan Teki
2023-01-23 15:12 ` [RESEND PATCH v11 14/18] drm: bridge: Generalize Exynos-DSI driver into a Samsung DSIM bridge Jagan Teki
2023-01-24 20:57   ` Marek Vasut
2023-01-24 20:57     ` Marek Vasut
2023-01-24 20:57     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 15/18] dt-bindings: display: exynos: dsim: Add NXP i.MX8M Mini/Nano support Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:56   ` Marek Vasut
2023-01-24 20:56     ` Marek Vasut
2023-01-24 20:56     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 16/18] drm: bridge: samsung-dsim: Add " Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:56   ` Marek Vasut
2023-01-24 20:56     ` Marek Vasut
2023-01-24 20:56     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 17/18] dt-bindings: display: exynos: dsim: Add NXP i.MX8M Plus support Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:57   ` Marek Vasut
2023-01-24 20:57     ` Marek Vasut
2023-01-24 20:57     ` Marek Vasut
2023-01-23 15:12 ` [RESEND PATCH v11 18/18] drm: bridge: samsung-dsim: Add " Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-23 15:12   ` Jagan Teki
2023-01-24 20:59   ` Marek Vasut
2023-01-24 20:59     ` Marek Vasut
2023-01-24 20:59     ` Marek Vasut
2023-01-24 19:12 ` [RESEND PATCH v11 00/18] drm: Add Samsung MIPI DSIM bridge Jagan Teki
2023-01-24 19:12   ` Jagan Teki
2023-01-24 19:12   ` Jagan Teki
2023-01-24 21:13 ` Marek Vasut
2023-01-24 21:13   ` Marek Vasut
2023-01-24 21:13   ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=94f847b0-769d-e28b-11c0-b817b30c704f@denx.de \
    --to=marex@denx.de \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=aford173@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=frieder.schrempf@kontron.de \
    --cc=inki.dae@samsung.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jy0922.shim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=matteo.lisi@engicam.com \
    --cc=michael@amarulasolutions.com \
    --cc=robert.foss@linaro.org \
    --cc=sw0312.kim@samsung.com \
    --cc=tharvey@gateworks.com \
    --cc=tommaso.merciai@amarulasolutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.