Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1642209
| From | Jose Abreu <Jose.Abreu@synopsys.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper |
| Date | 2017-05-16 07:20 +0200 |
| Message-ID | <tHD3P-1lZ-3@gated-at.bofh.it> (permalink) |
| References | <tFgO5-4HS-5@gated-at.bofh.it> <tGZzs-Q7-9@gated-at.bofh.it> <tHhZn-4vl-1@gated-at.bofh.it> <tHiiJ-4Th-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Laurent, On 15-05-2017 08:05, Laurent Pinchart wrote: > On Monday 15 May 2017 08:47:49 Daniel Vetter wrote: >> On Sun, May 14, 2017 at 02:04:24PM +0300, Laurent Pinchart wrote: >>> On Friday 12 May 2017 17:06:14 Jose Abreu wrote: >>>> On 12-05-2017 10:35, Laurent Pinchart wrote: >>>>> On Tuesday 09 May 2017 18:00:12 Jose Abreu wrote: >>>>>> + if (mode->status == MODE_OK) >>>>>> + mode->status = > drm_mode_validate_connector(connector, >>>>>> > mode); >>>>> I would reverse the arguments order to match the style of the other >>>>> validation functions. >>>> Hmm, I think it makes more sense to pass connector first and then >>>> mode ... >>> I disagree, as this function validates a mode against a pipeline, the same >>> way the other validation functions validate a mode against other >>> parameters, but it's your patch :-) >> Call it drm_connector_validate_mode, because the first argument is >> generally the object we operate on :-) > But the function doesn't validate a mode for a connector, it validates a mode > for a complete pipeline... > Hmm, but note that in the same function there is drm_mode_validate_size() and drm_mode_validate_flag() calls, which take as first argument the mode and then the object to validate (I hadn't seen this). So, maybe leave it as drm_mode_validate_connector() as it takes a connector as argument or change to drm_mode_validate_pipeline() as you said, or even drm_mode_validate_datapath(), drm_mode_validate_videopath(), drm_mode_validate_components() ? Best regards, Jose Miguel Abreu
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2017-05-12 11:40 +0200
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Jose Abreu <Jose.Abreu@synopsys.com> - 2017-05-12 18:10 +0200
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2017-05-14 13:10 +0200
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Daniel Vetter <daniel@ffwll.ch> - 2017-05-15 08:50 +0200
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2017-05-15 09:10 +0200
Re: [PATCH v2 5/8] drm: Use new mode_valid() helpers in connector probe helper Jose Abreu <Jose.Abreu@synopsys.com> - 2017-05-16 07:20 +0200
csiph-web