All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Carlos Palminha <CARLOS.PALMINHA@synopsys.com>,
	airlied@linux.ie, dri-devel@lists.freedesktop.org,
	daniel.vetter@ffwll.ch, patrik.r.jakobsson@gmail.com,
	virtualization@lists.linux-foundation.org
Cc: nicolas.pitre@linaro.org, boris.brezillon@free-electrons.com,
	jianwei.wang.chn@gmail.com, jani.nikula@intel.com,
	alison.wang@freescale.com, linux-renesas-soc@vger.kernel.org,
	laurent.pinchart@ideasonboard.com, benjamin.gaignard@linaro.org,
	vincent.abriou@st.com, sudipm.mukherjee@gmail.com
Subject: Re: [PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null.
Date: Tue, 16 Feb 2016 20:37:29 +0300	[thread overview]
Message-ID: <56C35E59.8070805@cogentembedded.com> (raw)
In-Reply-To: <9d41105dee6632b4bb50e9555f2196ac249b9fce.1455630967.git.palminha@synopsys.com>

Hello.

On 02/16/2016 05:10 PM, Carlos Palminha wrote:

> This patch set nukes all the dummy crtc mode_fixup implementations.
> (made on top of Daniel topic/drm-misc branch)
>
> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> ---
>   drivers/gpu/drm/drm_crtc_helper.c | 9 ++++++---
>   1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
> index e70d064..7539eea 100644
> --- a/drivers/gpu/drm/drm_crtc_helper.c
> +++ b/drivers/gpu/drm/drm_crtc_helper.c
> @@ -343,9 +343,12 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
>   		}
>   	}
>
> -	if (!(ret = crtc_funcs->mode_fixup(crtc, mode, adjusted_mode))) {
> -		DRM_DEBUG_KMS("CRTC fixup failed\n");
> -		goto done;
> +	if (crtc_funcs->mode_fixup) {
> +		if (!(ret = crtc_funcs->mode_fixup(crtc, mode,
> +						adjusted_mode))) {

    You haven't run the patch thru scripts/checkpatch.pl, have you? :-)
(It curses on assignment inside the *if* expression.)

[...]

MBR, Sergei

  parent reply	other threads:[~2016-02-16 17:37 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 14:09 [PATCH 00/16] drm crtc cleanup: nuke optional dummy crtc mode_fixup function Carlos Palminha
2016-02-16 14:10 ` [PATCH 01/16] drm: fixes crct set_mode when crtc mode_fixup is null Carlos Palminha
2016-02-16 14:37   ` Daniel Vetter
2016-02-16 14:37   ` Daniel Vetter
2016-02-16 15:24     ` Carlos Palminha
2016-02-16 15:24     ` Carlos Palminha
2016-03-04 10:14     ` Carlos Palminha
2016-03-04 10:14     ` Carlos Palminha
2016-02-16 17:37   ` Sergei Shtylyov [this message]
2016-02-16 19:39     ` Daniel Vetter
2016-02-16 19:39     ` Daniel Vetter
2016-02-16 14:16 ` [PATCH 02/16] drm/cirrus: removed optional dummy crtc mode_fixup function Carlos Palminha
2016-02-16 14:16 ` Carlos Palminha
2016-02-16 14:17 ` [PATCH 03/16] drm/mgag200: " Carlos Palminha
2016-02-16 14:17 ` Carlos Palminha
2016-02-16 14:17 ` [PATCH 04/16] drm/udl: " Carlos Palminha
2016-02-16 14:17 ` [PATCH 05/16] drm/gma: " Carlos Palminha
2016-03-07 14:31   ` Patrik Jakobsson
2016-03-07 14:31   ` Patrik Jakobsson
2016-02-16 14:17 ` Carlos Palminha
2016-02-16 14:18 ` [PATCH 06/16] drm/rcar-du: " Carlos Palminha
2016-02-17 15:23   ` Laurent Pinchart
2016-02-17 15:23   ` Laurent Pinchart
2016-02-16 14:18 ` [PATCH 07/16] drm/omapdrm: " Carlos Palminha
2016-02-17 15:24   ` Laurent Pinchart
2016-02-17 15:24   ` Laurent Pinchart
2016-02-16 14:18 ` Carlos Palminha
2016-02-16 14:18 ` [PATCH 08/16] drm/msm/mdp: " Carlos Palminha
2016-02-16 14:18 ` [PATCH 09/16] drm/shmobile: " Carlos Palminha
2016-02-17 15:24   ` Laurent Pinchart
2016-02-17 15:24   ` Laurent Pinchart
2016-02-16 14:18 ` [PATCH 10/16] drm/sti: " Carlos Palminha
2016-02-16 14:18 ` Carlos Palminha
2016-02-16 14:19 ` [PATCH 11/16] drm/atmel-hldcd: " Carlos Palminha
2016-02-16 16:58   ` Boris Brezillon
2016-02-16 16:58   ` Boris Brezillon
2016-02-17  9:02     ` Carlos Palminha
2016-02-17  9:02     ` Carlos Palminha
2016-02-17 13:08       ` Daniel Vetter
2016-03-04 10:17         ` Boris Brezillon
2016-02-17 13:08       ` Daniel Vetter
2016-02-16 14:19 ` Carlos Palminha
2016-02-16 14:19 ` [PATCH 12/16] drm/nouveau/dispnv04: " Carlos Palminha
2016-02-16 14:19 ` [PATCH 13/16] drm/virtio: " Carlos Palminha
2016-02-16 14:19 ` [PATCH 14/16] drm/fsl-dcu: " Carlos Palminha
2016-02-16 14:19 ` Carlos Palminha
2016-02-16 14:20 ` [PATCH 15/16] drm/bochs: " Carlos Palminha
2016-02-16 14:20 ` [PATCH 16/16] drm/ast: " Carlos Palminha
2016-03-04 17:18 ` [PATCH 00/16] drm crtc cleanup: nuke " Daniel Vetter
2016-03-04 17:18 ` Daniel Vetter

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=56C35E59.8070805@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=CARLOS.PALMINHA@synopsys.com \
    --cc=airlied@linux.ie \
    --cc=alison.wang@freescale.com \
    --cc=benjamin.gaignard@linaro.org \
    --cc=boris.brezillon@free-electrons.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=jianwei.wang.chn@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=nicolas.pitre@linaro.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=vincent.abriou@st.com \
    --cc=virtualization@lists.linux-foundation.org \
    /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.