From: neil.armstrong@linaro.org
To: Aradhya Bhatia <a-bhatia1@ti.com>,
Tomi Valkeinen <tomba@kernel.org>, Jyri Sarha <jyri.sarha@iki.fi>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Robert Foss <rfoss@kernel.org>, Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Rahul T R <r-ravikumar@ti.com>,
Swapnil Jakhade <sjakhade@cadence.com>,
Boris Brezillon <boris.brezillon@collabora.com>,
Francesco Dolcini <francesco@dolcini.it>
Cc: DRI Development List <dri-devel@lists.freedesktop.org>,
Linux Kernel List <linux-kernel@vger.kernel.org>,
Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
Devarsh Thakkar <devarsht@ti.com>,
Jayesh Choudhary <j-choudhary@ti.com>
Subject: Re: [PATCH v6 4/8] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check
Date: Mon, 22 May 2023 10:05:42 +0200 [thread overview]
Message-ID: <cc84cc53-53b6-1ab2-7053-36b3d3d3c423@linaro.org> (raw)
In-Reply-To: <1b95b75d-1b81-806b-7b7f-34cd93c9d0ec@ti.com>
On 17/05/2023 07:48, Aradhya Bhatia wrote:
> Hi Neil,
>
> On 16-May-23 12:54, Neil Armstrong wrote:
>> On 09/05/2023 11:30, Aradhya Bhatia wrote:
>>> From: Nikhil Devshatwar <nikhil.nd@ti.com>
>>>
>>> input_bus_flags are specified in drm_bridge_timings (legacy) as well
>>> as drm_bridge_state->input_bus_cfg.flags
>>>
>>> The flags from the timings will be deprecated. Bridges are supposed
>>> to validate and set the bridge state flags from atomic_check.
>>>
>>> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
>>> [a-bhatia1: replace timings in cdns_mhdp_platform_info by
>>> input_bus_flags]
>>> Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
>>> ---
>>>
>>> Notes:
>>>
>>> changes from v5:
>>> * removed the wrongly addded return statement in tfp410 driver.
>>> * replaced the timings field in cdns_mhdp_platform_info by
>>> input_bus_flags field, in order to get rid of bridge->timings
>>> altogether.
>>>
>>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 11 ++++++++---
>>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h | 2 +-
>>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.c | 9 ++++-----
>>> drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.h | 2 +-
>>> 4 files changed, 14 insertions(+), 10 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
>>> b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
>>> index 623e4235c94f..a677b1267525 100644
>>> --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
>>> +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
>>> @@ -2189,6 +2189,13 @@ static int cdns_mhdp_atomic_check(struct
>>> drm_bridge *bridge,
>>> return -EINVAL;
>>> }
>>> + /*
>>> + * There might be flags negotiation supported in future.
>>> + * Set the bus flags in atomic_check statically for now.
>>> + */
>>> + if (mhdp->info)
>>> + bridge_state->input_bus_cfg.flags =
>>> *mhdp->info->input_bus_flags;
>>> +
>>> mutex_unlock(&mhdp->link_mutex);
>>> return 0;
>>> }
>>> @@ -2554,8 +2561,6 @@ static int cdns_mhdp_probe(struct
>>> platform_device *pdev)
>>> mhdp->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID |
>>> DRM_BRIDGE_OP_HPD;
>>> mhdp->bridge.type = DRM_MODE_CONNECTOR_DisplayPort;
>>> - if (mhdp->info)
>>> - mhdp->bridge.timings = mhdp->info->timings;
>>
>> Won't this cause a breakage because at this point in time
>> bridge.timings->input_bus_flags
>> seems to be still used by tidss right ?
>>
>
> tidss was using the bridge.timings->input_bus_flags before the 7th
> patch[1] in this series.
>
> After the patch, it only relies on bridge_state and display_info for bus
> flags and formats.
OK thanks, then:
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
if you resend a new version, please add this info in the commit message.
Neil
>
>
> Regards
> Aradhya
>
> [1]: https://lore.kernel.org/all/20230509093036.3303-8-a-bhatia1@ti.com/
>
>
>>
>>> ret = phy_init(mhdp->phy);
>>> if (ret) {
>>> @@ -2642,7 +2647,7 @@ static const struct of_device_id mhdp_ids[] = {
>>> #ifdef CONFIG_DRM_CDNS_MHDP8546_J721E
>>> { .compatible = "ti,j721e-mhdp8546",
>>> .data = &(const struct cdns_mhdp_platform_info) {
>>> - .timings = &mhdp_ti_j721e_bridge_timings,
>>> + .input_bus_flags = &mhdp_ti_j721e_bridge_input_bus_flags,
>>> .ops = &mhdp_ti_j721e_ops,
>>> },
>>> },
>>> diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
>>> b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
>>> index bedddd510d17..bad2fc0c7306 100644
>>> --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
>>> +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
>>> @@ -336,7 +336,7 @@ struct cdns_mhdp_bridge_state {
>>> };
>>> struct cdns_mhdp_platform_info {
>>> - const struct drm_bridge_timings *timings;
>>> + const u32 *input_bus_flags;
>>> const struct mhdp_platform_ops *ops;
>>> };
>>> diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.c
>>> b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.c
>>> index dfe1b59514f7..12d04be4e242 100644
>>> --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.c
>>> +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.c
>>> @@ -71,8 +71,7 @@ const struct mhdp_platform_ops mhdp_ti_j721e_ops = {
>>> .disable = cdns_mhdp_j721e_disable,
>>> };
>>> -const struct drm_bridge_timings mhdp_ti_j721e_bridge_timings = {
>>> - .input_bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
>>> - DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE |
>>> - DRM_BUS_FLAG_DE_HIGH,
>>> -};
>>> +const u32
>>> +mhdp_ti_j721e_bridge_input_bus_flags =
>>> DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
>>> + DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE |
>>> + DRM_BUS_FLAG_DE_HIGH;
>>> diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.h
>>> b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.h
>>> index 97d20d115a24..5ddca07a4255 100644
>>> --- a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.h
>>> +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-j721e.h
>>> @@ -14,6 +14,6 @@
>>> struct mhdp_platform_ops;
>>> extern const struct mhdp_platform_ops mhdp_ti_j721e_ops;
>>> -extern const struct drm_bridge_timings mhdp_ti_j721e_bridge_timings;
>>> +extern const u32 mhdp_ti_j721e_bridge_input_bus_flags;
>>> #endif /* !CDNS_MHDP8546_J721E_H */
>>
next prev parent reply other threads:[~2023-05-22 8:05 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-09 9:30 [PATCH v6 0/8] drm/tidss: Use new connector model for tidss Aradhya Bhatia
2023-05-09 9:30 ` [PATCH v6 1/8] drm/bridge: tfp410: Support format negotiation hooks Aradhya Bhatia
2023-05-09 9:30 ` [PATCH v6 2/8] drm/bridge: tfp410: Set input_bus_flags in atomic_check Aradhya Bhatia
2023-05-16 7:25 ` Neil Armstrong
2023-05-16 14:27 ` Aradhya Bhatia
2023-05-09 9:30 ` [PATCH v6 3/8] drm/bridge: mhdp8546: Add minimal format negotiation Aradhya Bhatia
2023-05-12 9:15 ` Tomi Valkeinen
2023-05-15 15:59 ` Aradhya Bhatia
2023-05-16 7:21 ` Neil Armstrong
2023-05-16 14:25 ` Aradhya Bhatia
2023-05-26 9:29 ` Tomi Valkeinen
2023-05-29 5:37 ` Aradhya Bhatia
2023-05-29 11:12 ` Tomi Valkeinen
2023-05-09 9:30 ` [PATCH v6 4/8] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check Aradhya Bhatia
2023-05-16 7:24 ` Neil Armstrong
2023-05-17 5:48 ` Aradhya Bhatia
2023-05-22 8:05 ` neil.armstrong [this message]
2023-05-23 5:57 ` Aradhya Bhatia
2023-05-09 9:30 ` [PATCH v6 5/8] drm/bridge: sii902x: Support format negotiation hooks Aradhya Bhatia
2023-05-16 7:16 ` Neil Armstrong
2023-05-09 9:30 ` [PATCH v6 6/8] drm/bridge: sii902x: Set input_bus_flags in atomic_check Aradhya Bhatia
2023-05-16 7:24 ` Neil Armstrong
2023-05-09 9:30 ` [PATCH v6 7/8] drm/tidss: Update encoder/bridge chain connect model Aradhya Bhatia
2023-05-09 9:30 ` [PATCH v6 8/8] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable Aradhya Bhatia
2023-05-12 9:20 ` [PATCH v6 0/8] drm/tidss: Use new connector model for tidss Tomi Valkeinen
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=cc84cc53-53b6-1ab2-7053-36b3d3d3c423@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=a-bhatia1@ti.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=boris.brezillon@collabora.com \
--cc=daniel@ffwll.ch \
--cc=devarsht@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=francesco@dolcini.it \
--cc=j-choudhary@ti.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=jyri.sarha@iki.fi \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=r-ravikumar@ti.com \
--cc=rfoss@kernel.org \
--cc=sjakhade@cadence.com \
--cc=tomba@kernel.org \
--cc=vigneshr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®