Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1410263yba; Thu, 4 Apr 2019 10:10:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiX+jGnMKurppErA9mucBGDc0sPEqZYCbrstcnOP4GC1ReiXoAGM+m9PMuKLQCAz4+xMhe X-Received: by 2002:a17:902:8d8b:: with SMTP id v11mr7554809plo.133.1554397821312; Thu, 04 Apr 2019 10:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554397821; cv=none; d=google.com; s=arc-20160816; b=r/Ba4FKpdfebMiAErGgp/W5irGXxywEmE5zMzlzhEGGpA1472iB6V1e4E1A02tUNHh 7FQWg5paa+zSccee3e/eoQQIosu6WYJT1siJJ4HEbdtZ/inAKjyqs7UGlx+RV3yUpUhz 2iduc1Fa04tf04Ej1/2O4h9dMj6mBpL4IDK3H5r/r/fCAoSW3O95oICHFqpxNoQ4Wtzt GHiuC18sjnxBluGfWuW9HlrsHGOrKq6JPFV3uIjCOR2AUAedqe7bt8cJwvbR7E/guY+4 YEIPLePbceNEDK1FCjagfsHQYDPyi1DKyRRTzXX/NtWAlhE7ArcpsOKpiCjuwOf0jden Lwaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1QXYzhB1C9JXhfKFXHrnZIEuSOQCYdHCN0Etm6FsMDQ=; b=fDgKilObzUAq12ICo7KhlAAXQWNQK6ZT9GYIA5om0a+Lv2Cjuc7zHedvdjtBldMTQ6 iwS3z58tCe4LhzX0kBWxXGV4avSdbx/iG7KiyY9Gsw3Cp/PvPuVN/TroTux8qeE0/OnN +HucSF6py8/TKFVscV7XPK0STsAjyumZ1dv4Bh7v60/rAhRbmChwn7wORur4XT9bvMKV t9GG9+7XJ6ekR0xZoSDe3lHNDcfMZhj6TRqnb9FbrYJdBiAN1leQC9fI5b9UF23EHVGr A5JVmBzHE42KiR3awRVljNDci7YhmMGIhuitUT2DRorcZxhRV/ngWunCxf0bQWiD9nIV d2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/8Giy1W"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b74si16645314pfj.121.2019.04.04.10.10.06; Thu, 04 Apr 2019 10:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/8Giy1W"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729525AbfDDRJR (ORCPT + 99 others); Thu, 4 Apr 2019 13:09:17 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37777 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfDDRJQ (ORCPT ); Thu, 4 Apr 2019 13:09:16 -0400 Received: by mail-wr1-f68.google.com with SMTP id w10so4763185wrm.4; Thu, 04 Apr 2019 10:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1QXYzhB1C9JXhfKFXHrnZIEuSOQCYdHCN0Etm6FsMDQ=; b=r/8Giy1W0rv6k6VwxSjnx771lQWaPEgpp04Ek/NcpQ+I5uza8dN9gY2eYcy6f6KhMT lFnhoo228+9m36tw99d8hHZrRILlyM/eDn2LVL0RwnP30UfhKhXcT4EMQFpyCJga976g 87TCm3y/CKqbrVCJL7cBu4HPa7xAjA2QUiSo/oF+k7OL73L8/P33PaYH5rOhJ7H0hhHE 7ak0R2Z3UetPiu5Y9kzb/6QSRxKfPonKh16SEWPiyGXq8s5gg5mO2IWd0o3CRbRYniXY L1SVABlISNA/j775mCaoDunkMgph5wI7cv74IdXnbqo3DEKhb0j/JZekgptrLkzLWbr8 bytw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1QXYzhB1C9JXhfKFXHrnZIEuSOQCYdHCN0Etm6FsMDQ=; b=HKjtwzhHabroqXK2mjLfJ95BqDKWuPaJsTNWJAQmqgtGesDsj7+NIA8/SwQBFZ+rTG WUe4v7jOzEwbXW7HQn3YEMHz5ZBrKZBu0qLbe3XDFZFESqlIB8PaTtLZCsSHs4lusO92 0RF4DzYuvzGKO2xpW1D1cg51yPTNfWSuPVQr9NKdhlw5Yis2HVpJBTOzLG8xI1YJhNFs vHnKPE43PA4MLR1CUmbuXutwwJ9LENcOZUDGS4W4Gy4nJLpMp/rZgbbUDCzBsYdg1VL7 LL99wYVq1OxOQqBu9e8GW96C+KOBJ76PjGDTKAE2NICxKyJnQU4gWbw0//9+JikYfzfd 7tMg== X-Gm-Message-State: APjAAAUc/sWbGvs3yvDeEnthFtosIAJ+Hn7vvqsvPf8qPctFo+5qixOw J3wIWcflq+oR+U5YWJFoyLg= X-Received: by 2002:adf:b60a:: with SMTP id f10mr4845812wre.116.1554397754527; Thu, 04 Apr 2019 10:09:14 -0700 (PDT) Received: from localhost (pD9E51B25.dip0.t-ipconnect.de. [217.229.27.37]) by smtp.gmail.com with ESMTPSA id s1sm13484620wrt.43.2019.04.04.10.09.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 10:09:13 -0700 (PDT) Date: Thu, 4 Apr 2019 19:09:13 +0200 From: Thierry Reding To: Guido =?utf-8?Q?G=C3=BCnther?= Cc: Joe Perches , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Kevin Hilman , Manivannan Sadhasivam , Shawn Guo , Jagan Teki , Martin Blumenstingl , Johan Hovold , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Nicolas Ferre , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sam Ravnborg Subject: Re: [PATCH] drm/panel: Rocktech jh057n00900: Add terminating newlines to logging Message-ID: <20190404170913.GB3078@ulmo> References: <20190403161735.GN5238@ulmo> <1ed5eb3af4df6b2dd1544c7b696e034ed5c94f06.camel@perches.com> <20190404105359.GA8255@bogon.m.sigxcpu.org> <20190404154850.GA19334@bogon.m.sigxcpu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: <20190404154850.GA19334@bogon.m.sigxcpu.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 04, 2019 at 05:48:50PM +0200, Guido G=C3=BCnther wrote: > Hi Joe, > On Thu, Apr 04, 2019 at 08:06:09AM -0700, Joe Perches wrote: > > These were missing '\n' terminations, add them. > >=20 > > Signed-off-by: Joe Perches > > --- > > drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 19 ++++++++++----= ----- > > 1 file changed, 10 insertions(+), 9 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drive= rs/gpu/drm/panel/panel-rocktech-jh057n00900.c > > index 158a6d548068..d88ea8da2ec2 100644 > > --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > > +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > > @@ -123,7 +123,7 @@ static int jh057n_init_sequence(struct jh057n *ctx) > > =20 > > ret =3D mipi_dsi_dcs_exit_sleep_mode(dsi); > > if (ret < 0) { > > - DRM_DEV_ERROR(dev, "Failed to exit sleep mode"); > > + DRM_DEV_ERROR(dev, "Failed to exit sleep mode\n"); > > return ret; > > } > > /* Panel is operational 120 msec after reset */ > > @@ -132,7 +132,7 @@ static int jh057n_init_sequence(struct jh057n *ctx) > > if (ret) > > return ret; > > =20 > > - DRM_DEV_DEBUG_DRIVER(dev, "Panel init sequence done"); > > + DRM_DEV_DEBUG_DRIVER(dev, "Panel init sequence done\n"); > > return 0; > > } > > =20 > > @@ -172,7 +172,7 @@ static int jh057n_prepare(struct drm_panel *panel) > > if (ctx->prepared) > > return 0; > > =20 > > - DRM_DEV_DEBUG_DRIVER(ctx->dev, "Resetting the panel."); > > + DRM_DEV_DEBUG_DRIVER(ctx->dev, "Resetting the panel\n"); > > gpiod_set_value_cansleep(ctx->reset_gpio, 1); > > usleep_range(20, 40); > > gpiod_set_value_cansleep(ctx->reset_gpio, 0); > > @@ -180,7 +180,8 @@ static int jh057n_prepare(struct drm_panel *panel) > > =20 > > ret =3D jh057n_init_sequence(ctx); > > if (ret < 0) { > > - DRM_DEV_ERROR(ctx->dev, "Panel init sequence failed: %d", ret); > > + DRM_DEV_ERROR(ctx->dev, "Panel init sequence failed: %d\n", > > + ret); > > return ret; > > } > > =20 > > @@ -212,7 +213,7 @@ static int jh057n_get_modes(struct drm_panel *panel) > > =20 > > mode =3D drm_mode_duplicate(panel->drm, &default_mode); > > if (!mode) { > > - DRM_DEV_ERROR(ctx->dev, "Failed to add mode %ux%u@%u", > > + DRM_DEV_ERROR(ctx->dev, "Failed to add mode %ux%u@%u\n", > > default_mode.hdisplay, default_mode.vdisplay, > > default_mode.vrefresh); > > return -ENOMEM; > > @@ -241,7 +242,7 @@ static int allpixelson_set(void *data, u64 val) > > struct jh057n *ctx =3D data; > > struct mipi_dsi_device *dsi =3D to_mipi_dsi_device(ctx->dev); > > =20 > > - DRM_DEV_DEBUG_DRIVER(ctx->dev, "Setting all pixels on"); > > + DRM_DEV_DEBUG_DRIVER(ctx->dev, "Setting all pixels on\n"); > > dsi_generic_write_seq(dsi, ST7703_CMD_ALL_PIXEL_ON); > > msleep(val * 1000); > > /* Reset the panel to get video back */ > > @@ -290,7 +291,7 @@ static int jh057n_probe(struct mipi_dsi_device *dsi) > > =20 > > ctx->reset_gpio =3D devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); > > if (IS_ERR(ctx->reset_gpio)) { > > - DRM_DEV_ERROR(dev, "cannot get reset gpio"); > > + DRM_DEV_ERROR(dev, "cannot get reset gpio\n"); > > return PTR_ERR(ctx->reset_gpio); > > } > > =20 > > @@ -315,12 +316,12 @@ static int jh057n_probe(struct mipi_dsi_device *d= si) > > =20 > > ret =3D mipi_dsi_attach(dsi); > > if (ret < 0) { > > - DRM_DEV_ERROR(dev, "mipi_dsi_attach failed. Is host ready?"); > > + DRM_DEV_ERROR(dev, "mipi_dsi_attach failed. Is host ready?\n"); > > drm_panel_remove(&ctx->panel); > > return ret; > > } > > =20 > > - DRM_DEV_INFO(dev, "%ux%u@%u %ubpp dsi %udl - ready", > > + DRM_DEV_INFO(dev, "%ux%u@%u %ubpp dsi %udl - ready\n", > > default_mode.hdisplay, default_mode.vdisplay, > > default_mode.vrefresh, > > mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes); > >=20 >=20 > Reviewed-By: Guido G=C3=BCnther Nit: the correct tag is "Reviewed-by:", note the lowercase "by". I only noticed because checkpatch complained, and fixed it up. Thierry --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlymOjgACgkQ3SOs138+ s6G40Q//cfa/g8ByBehQaJpVRytIu6Yf5hdfJSIzvX++ulaGkhNnUs74vMkCkhbj rkQ4c7OTv+zL0CEHb4WicWB8DKDWYCz3BU8I3BkHmlrBdbEnm1dK1R8L6vmIpR0K XMSoyydNQxSOT7iykt7WXYaHy2eTRR1jePGKbDHVZyRcZoT0T/k+ae057GEju0BH E6xt7ztcWXSRVxjW6KrmaF/sSvVGUDKsp2dBDOEHM0wDSZk09Avjf53LrP6UbDYX 3M7TeNoHW/FGP1AKTgXgNvdqsTvRL9PS8hp9EBFJqso8C9L59R4F282xRnvGnBnd 4Pw6K2Zo1gQdv+08oFwnSaP/CwOLzVROvCdRvuZsI6khUgtY9veyxcXTUnVxg6Aq 83V7OzMFplaK4OCfDrWoef2ISZaF1+TJxc10uskj/yQiLydY3l82Zgdtu9890LJZ wcqAIi/+iIm7ADp1WnHzr+LauJf/mFc0NCFyUsmiVgWC48E70rt05OpYZbjLKLVH RLjObOloJqyqywpGD+2VYpljAzn8wbzEknPP4iS2nJpbjSbtLSijnXhN+iBXPwRm xJNLT252WwE77eoZzsZ8cqsCtS40SWcAOgRpVN0uDS4R6prN/L/b5smefAuGulbQ xuXHXxrt7dGa+LOx0cnp/qYbN5s2rUchmbD5V3EQQPUVP7Nun/w= =7pLZ -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--