Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Lisovskiy, Stanislav
On Tue, 2020-02-11 at 16:12 +0200, Jani Nikula wrote: > On Tue, 11 Feb 2020, "Lisovskiy, Stanislav" < > stanislav.lisovs...@intel.com> wrote: > > Well, you can just take all those checks and put them into separate > > function. Something like: > > > > bool intel_dp_supports_mst(intel_dp) { > >

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Imre Deak
On Tue, Feb 11, 2020 at 03:55:45PM +0200, Jani Nikula wrote: > On Tue, 11 Feb 2020, "Lisovskiy, Stanislav" > wrote: > > On Tue, 2020-02-11 at 15:03 +0200, Jani Nikula wrote: > >> On Tue, 11 Feb 2020, Stanislav Lisovskiy < > >> stanislav.lisovs...@intel.com> wrote: > >> > I guess it would still be

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Jani Nikula
On Tue, 11 Feb 2020, "Lisovskiy, Stanislav" wrote: > Well, you can just take all those checks and put them into separate > function. Something like: > > bool intel_dp_supports_mst(intel_dp) { > if (HAS_DP_MST(i915) && !intel_dp_is_edp(intel_dp)) && > !(INTEL_GEN(i915) < 12 && p

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Lisovskiy, Stanislav
On Tue, 2020-02-11 at 15:55 +0200, Jani Nikula wrote: > On Tue, 11 Feb 2020, "Lisovskiy, Stanislav" < > stanislav.lisovs...@intel.com> wrote: > > On Tue, 2020-02-11 at 15:03 +0200, Jani Nikula wrote: > > > On Tue, 11 Feb 2020, Stanislav Lisovskiy < > > > stanislav.lisovs...@intel.com> wrote: > > >

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Jani Nikula
On Tue, 11 Feb 2020, "Lisovskiy, Stanislav" wrote: > On Tue, 2020-02-11 at 15:03 +0200, Jani Nikula wrote: >> On Tue, 11 Feb 2020, Stanislav Lisovskiy < >> stanislav.lisovs...@intel.com> wrote: >> > I guess it would still be nice to make the code less confusing >> > and do not call eDP specific f

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Lisovskiy, Stanislav
On Tue, 2020-02-11 at 15:03 +0200, Jani Nikula wrote: > On Tue, 11 Feb 2020, Stanislav Lisovskiy < > stanislav.lisovs...@intel.com> wrote: > > I guess it would still be nice to make the code less confusing > > and do not call eDP specific function, for non-eDP connectors > > just to immediately ret

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Jani Nikula
On Tue, 11 Feb 2020, Stanislav Lisovskiy wrote: > I guess it would still be nice to make the code less confusing > and do not call eDP specific function, for non-eDP connectors > just to immediately return true(success) value as a hack. > > So simply extracted that check out from this function, >

Re: [Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Imre Deak
On Tue, Feb 11, 2020 at 01:40:38PM +0200, Stanislav Lisovskiy wrote: > I guess it would still be nice to make the code less confusing > and do not call eDP specific function, for non-eDP connectors > just to immediately return true(success) value as a hack. > > So simply extracted that check out f

[Intel-gfx] [PATCH v1] drm/i915: Call intel_edp_init_connector only for eDP.

2020-02-11 Thread Stanislav Lisovskiy
I guess it would still be nice to make the code less confusing and do not call eDP specific function, for non-eDP connectors just to immediately return true(success) value as a hack. So simply extracted that check out from this function, that we simply don't call it for non-eDP connectors. Bingo.