Den 07.11.2022 11.07, skrev Maxime Ripard: > Hi Noralf, > > On Sun, Nov 06, 2022 at 05:59:23PM +0100, Noralf Trønnes wrote: >> >> >> Den 27.10.2022 00.02, skrev Mateusz Kwiatkowski: >>> Hi Maxime, >>> >>> First of all, nice idea with the helper function that can be reused by >>> different >>> drivers. This is neat! >>> >>> But looking at this function, it feels a bit overcomplicated. You're >>> creating >>> the two modes, then checking which one is the default, then set the >>> preferred >>> one and possibly reorder them. Maybe it can be simplified somehow? >>> >>> Although when I tried to refactor it myself, I ended up with something >>> that's >>> not better at all. Maybe it needs to be complicated, after all :( >>> >> >> I also thought that the function was complicated/difficult to read, in >> particular the index stuff at the end, but I also failed in finding a >> "better" solution, just a different one ;) > > I think I like yours better still :) > > Can I bring it into my series, with your authorship and SoB? > Sure, no problem. Noralf.
- [Nouveau] [PATCH v6 10/23] drm/modes: Fill drm_cmdline... maxime
- Re: [Nouveau] [PATCH v6 10/23] drm/modes: Fill dr... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 10/23] drm/modes: Fil... Maxime Ripard
- [Nouveau] [PATCH v6 11/23] drm/connector: Add pixel cl... maxime
- Re: [Nouveau] [PATCH v6 11/23] drm/connector: Add... Noralf Trønnes
- [Nouveau] [PATCH v6 16/23] drm/probe-helper: Provide a... maxime
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-helper: ... Mateusz Kwiatkowski
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-help... Maxime Ripard
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-help... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-... Maxime Ripard
- Re: [Nouveau] [PATCH v6 16/23] drm/pr... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-helper: ... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-help... Maxime Ripard
- Re: [Nouveau] [PATCH v6 16/23] drm/probe-... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 16/23] drm/pr... Maxime Ripard
- [Nouveau] [PATCH v6 13/23] drm/modes: Introduce the tv... maxime
- Re: [Nouveau] [PATCH v6 13/23] drm/modes: Introdu... Noralf Trønnes
- Re: [Nouveau] [PATCH v6 13/23] drm/modes: Int... Lukas Satin
- [Nouveau] [PATCH v6 12/23] drm/connector: Add a functi... maxime
- [Nouveau] [PATCH v6 17/23] drm/atomic-helper: Add a TV... maxime
- [Nouveau] [PATCH v6 15/23] drm/modes: Introduce more n... maxime
