From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-omap@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
dri-devel@lists.freedesktop.org,
Sebastian Reichel <sre@kernel.org>
Subject: Re: [PATCH] drm/omap: dsi: Fix PM for display blank with paired dss_pll calls
Date: Tue, 5 Feb 2019 09:58:46 -0800 [thread overview]
Message-ID: <20190205175846.GV5720@atomide.com> (raw)
In-Reply-To: <45860ba9-93a6-199e-0db9-7d727b4bba76@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [190205 11:07]:
> Yep... So there's the DSI internal code which needs to deal with ulps
> and disconnect_lanes, and then the external interface to the DSI PLL (so
> that DPI can use DSI PLL) without ulps/disconnect.
>
> I think your patch breaks this latter one, as disconnect_lanes is zero
> in that case and would leave the regulator enabled. This would probably
> be visible on e.g. Pandaboard, which uses DSI PLLs for the TFP410 DVI
> output, if I recall right.
Sorry I don't quite follow what happens there with dvi
calling into dsi.. Care to describe a bit more?
> And storing the 'disconnect_lanes' is a bit ugly, but I don't see right
> away how to avoid it...
>
> Maybe the field in dsi_data should be something like
> "keep_lanes_powered", and default value false. In
> dsi_display_uninit_dsi(), we could set
>
> keep_lanes_powered = !disconnect_lanes;
>
> and after dss_pll_disable() call, set keep_lanes_powered back to false
> to keep it in the default state.
If we need more control over the lanes, maybe we should just
add a helper like this so that only panels that need it can
call it:
static int dsi_set_lane_power(struct omap_dss_device *dssdev,
bool enable)
{
struct dsi_data *dsi = to_dsi_data(dssdev);
dsi->keep_lanes_powered = enable;
return 0;
}
Regards,
Tony
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-02-05 17:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 3:32 [PATCH] drm/omap: dsi: Fix PM for display blank with paired dss_pll calls Tony Lindgren
2019-02-04 9:57 ` Tomi Valkeinen
2019-02-04 15:42 ` Tony Lindgren
2019-02-05 11:06 ` Tomi Valkeinen
2019-02-05 17:58 ` Tony Lindgren [this message]
2019-02-06 9:13 ` Tomi Valkeinen
2019-02-06 16:00 ` Tony Lindgren
2019-02-06 16:09 ` Tomi Valkeinen
2019-02-06 16:29 ` Tony Lindgren
2019-02-07 9:07 ` Tomi Valkeinen
2019-02-07 15:46 ` Tony Lindgren
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=20190205175846.GV5720@atomide.com \
--to=tony@atomide.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-omap@vger.kernel.org \
--cc=sre@kernel.org \
--cc=tomi.valkeinen@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 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.