From: Archit Taneja <architt@codeaurora.org>
To: Peter Senna Tschudin <peter.senna@collabora.com>
Cc: martin.donnelly@ge.com, martyn.welch@collabora.co.uk,
airlied@linux.ie, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, peter.senna@gmail.com
Subject: Re: [PATCH] megachips-stdpxxxx-ge-b850v3-fw: Fix drm bridge initialization
Date: Mon, 3 Apr 2017 15:35:29 +0530 [thread overview]
Message-ID: <8f65733a-fe18-1b2f-28bf-52e0d2165047@codeaurora.org> (raw)
In-Reply-To: <20170330081928.8537-1-peter.senna@collabora.com>
On 03/30/2017 01:49 PM, Peter Senna Tschudin wrote:
> Reordering of the device nodes based on unit address resulted in
> ge_b850v3_lvds_attach() being called before
> ge_b850v3_lvds_ptr->stdp4028_i2c was populated.
>
> This patch moves the drm bridge initialization from
> ge_b850v3_lvds_init() to stdp4028_ge_b850v3_fw_probe() ensuring that
> ge_b850v3_lvds_ptr->stdp4028_i2c is properly populated.
queued to drm-misc-next
Archit
>
> Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com>
> ---
> drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> index e53c243..b9f32e8 100644
> --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> @@ -279,10 +279,6 @@ static int ge_b850v3_lvds_init(struct device *dev)
> return -ENOMEM;
> }
>
> - ge_b850v3_lvds_ptr->bridge.funcs = &ge_b850v3_lvds_funcs;
> - ge_b850v3_lvds_ptr->bridge.of_node = dev->of_node;
> - drm_bridge_add(&ge_b850v3_lvds_ptr->bridge);
> -
> success:
> mutex_unlock(&ge_b850v3_lvds_dev_mutex);
> return 0;
> @@ -317,6 +313,11 @@ static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c,
> ge_b850v3_lvds_ptr->stdp4028_i2c = stdp4028_i2c;
> i2c_set_clientdata(stdp4028_i2c, ge_b850v3_lvds_ptr);
>
> + /* drm bridge initialization */
> + ge_b850v3_lvds_ptr->bridge.funcs = &ge_b850v3_lvds_funcs;
> + ge_b850v3_lvds_ptr->bridge.of_node = dev->of_node;
> + drm_bridge_add(&ge_b850v3_lvds_ptr->bridge);
> +
> /* Clear pending interrupts since power up. */
> i2c_smbus_write_word_data(stdp4028_i2c,
> STDP4028_DPTX_IRQ_STS_REG,
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
prev parent reply other threads:[~2017-04-03 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 8:19 Peter Senna Tschudin
2017-04-03 10:05 ` Archit Taneja [this message]
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=8f65733a-fe18-1b2f-28bf-52e0d2165047@codeaurora.org \
--to=architt@codeaurora.org \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.donnelly@ge.com \
--cc=martyn.welch@collabora.co.uk \
--cc=peter.senna@collabora.com \
--cc=peter.senna@gmail.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
Powered by JetHome