* [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice
@ 2020-05-05 4:32 Douglas Anderson
2020-05-05 5:36 ` Stephen Boyd
2020-05-15 21:49 ` Rob Clark
0 siblings, 2 replies; 5+ messages in thread
From: Douglas Anderson @ 2020-05-05 4:32 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Laurent Pinchart
Cc: linux-arm-msm, seanpaul, robdclark, Douglas Anderson,
Daniel Vetter, David Airlie, Jernej Skrabec, Jonas Karlman,
Sandeep Panda, dri-devel, linux-kernel
If the rate in our table is _equal_ to the rate we want then it's OK
to pick it. It doesn't need to be greater than the one we want.
Fixes: a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index 6ad688b320ae..be000b0ca56b 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -475,7 +475,7 @@ static int ti_sn_bridge_calc_min_dp_rate_idx(struct ti_sn_bridge *pdata)
1000 * pdata->dp_lanes * DP_CLK_FUDGE_DEN);
for (i = 1; i < ARRAY_SIZE(ti_sn_bridge_dp_rate_lut) - 1; i++)
- if (ti_sn_bridge_dp_rate_lut[i] > dp_rate_mhz)
+ if (ti_sn_bridge_dp_rate_lut[i] >= dp_rate_mhz)
break;
return i;
--
2.26.2.526.g744177e7f7-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice
2020-05-05 4:32 [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice Douglas Anderson
@ 2020-05-05 5:36 ` Stephen Boyd
2020-05-15 21:49 ` Rob Clark
1 sibling, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2020-05-05 5:36 UTC (permalink / raw)
To: Andrzej Hajda, Douglas Anderson, Laurent Pinchart, Neil Armstrong
Cc: linux-arm-msm, seanpaul, robdclark, Douglas Anderson,
Daniel Vetter, David Airlie, Jernej Skrabec, Jonas Karlman,
Sandeep Panda, dri-devel, linux-kernel
Quoting Douglas Anderson (2020-05-04 21:32:29)
> If the rate in our table is _equal_ to the rate we want then it's OK
> to pick it. It doesn't need to be greater than the one we want.
>
> Fixes: a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice
2020-05-05 4:32 [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice Douglas Anderson
2020-05-05 5:36 ` Stephen Boyd
@ 2020-05-15 21:49 ` Rob Clark
2020-05-18 18:23 ` Doug Anderson
1 sibling, 1 reply; 5+ messages in thread
From: Rob Clark @ 2020-05-15 21:49 UTC (permalink / raw)
To: Douglas Anderson
Cc: Andrzej Hajda, Neil Armstrong, Laurent Pinchart, Rob Clark,
Jernej Skrabec, Jonas Karlman, David Airlie, linux-arm-msm,
dri-devel, Sandeep Panda, Sean Paul, Linux Kernel Mailing List
On Mon, May 4, 2020 at 9:32 PM Douglas Anderson <dianders@chromium.org> wrote:
>
> If the rate in our table is _equal_ to the rate we want then it's OK
> to pick it. It doesn't need to be greater than the one we want.
>
> Fixes: a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
> ---
>
> drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> index 6ad688b320ae..be000b0ca56b 100644
> --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> @@ -475,7 +475,7 @@ static int ti_sn_bridge_calc_min_dp_rate_idx(struct ti_sn_bridge *pdata)
> 1000 * pdata->dp_lanes * DP_CLK_FUDGE_DEN);
>
> for (i = 1; i < ARRAY_SIZE(ti_sn_bridge_dp_rate_lut) - 1; i++)
> - if (ti_sn_bridge_dp_rate_lut[i] > dp_rate_mhz)
> + if (ti_sn_bridge_dp_rate_lut[i] >= dp_rate_mhz)
> break;
>
> return i;
> --
> 2.26.2.526.g744177e7f7-goog
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice
2020-05-15 21:49 ` Rob Clark
@ 2020-05-18 18:23 ` Doug Anderson
2020-05-18 18:35 ` Sam Ravnborg
0 siblings, 1 reply; 5+ messages in thread
From: Doug Anderson @ 2020-05-18 18:23 UTC (permalink / raw)
To: Rob Clark, Sam Ravnborg
Cc: Andrzej Hajda, Neil Armstrong, Laurent Pinchart, Rob Clark,
Jernej Skrabec, Jonas Karlman, David Airlie, linux-arm-msm,
dri-devel, Sandeep Panda, Sean Paul, Linux Kernel Mailing List
Sam,
On Fri, May 15, 2020 at 2:49 PM Rob Clark <robdclark@gmail.com> wrote:
>
> On Mon, May 4, 2020 at 9:32 PM Douglas Anderson <dianders@chromium.org> wrote:
> >
> > If the rate in our table is _equal_ to the rate we want then it's OK
> > to pick it. It doesn't need to be greater than the one we want.
> >
> > Fixes: a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
> > Signed-off-by: Douglas Anderson <dianders@chromium.org>
>
> Reviewed-by: Rob Clark <robdclark@gmail.com>
...and I think this is the last of the patches I stupidly didn't CC
you on that's ready to go.
-Doug
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice
2020-05-18 18:23 ` Doug Anderson
@ 2020-05-18 18:35 ` Sam Ravnborg
0 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2020-05-18 18:35 UTC (permalink / raw)
To: Doug Anderson
Cc: Rob Clark, Rob Clark, Jernej Skrabec, Jonas Karlman,
David Airlie, linux-arm-msm, Neil Armstrong, Sandeep Panda,
dri-devel, Linux Kernel Mailing List, Andrzej Hajda, Sean Paul,
Laurent Pinchart
Hi Douglas.
On Mon, May 18, 2020 at 11:23:44AM -0700, Doug Anderson wrote:
> Sam,
>
> On Fri, May 15, 2020 at 2:49 PM Rob Clark <robdclark@gmail.com> wrote:
> >
> > On Mon, May 4, 2020 at 9:32 PM Douglas Anderson <dianders@chromium.org> wrote:
> > >
> > > If the rate in our table is _equal_ to the rate we want then it's OK
> > > to pick it. It doesn't need to be greater than the one we want.
> > >
> > > Fixes: a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
> > > Signed-off-by: Douglas Anderson <dianders@chromium.org>
> >
> > Reviewed-by: Rob Clark <robdclark@gmail.com>
>
> ...and I think this is the last of the patches I stupidly didn't CC
> you on that's ready to go.
I'm not a bridge maintainer so mostly I am just overstepping
what I in reality have authority to do.
But so far no loud complains...
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-18 18:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 4:32 [PATCH] drm/bridge: ti-sn65dsi86: Fix off-by-one error in clock choice Douglas Anderson
2020-05-05 5:36 ` Stephen Boyd
2020-05-15 21:49 ` Rob Clark
2020-05-18 18:23 ` Doug Anderson
2020-05-18 18:35 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).