Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1172655pxk; Fri, 18 Sep 2020 05:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwst5EE42QrTEmsbSoitGHBUuM2CNjMFlScz4Crzgl+nHv52Wm49yCxDw/aTD8P/3dNx47O X-Received: by 2002:a17:906:3f89:: with SMTP id b9mr36438578ejj.463.1600433593560; Fri, 18 Sep 2020 05:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600433593; cv=none; d=google.com; s=arc-20160816; b=vtCU1AZ6vhC+3dXvHeHMVzyCRgGL/jD2xttWdPctyN15PGFO7TyLFEzmhT/A6lX+Vu 8sVnTK9BBkuZybvZlEJrZuYVWala12X9HDZBWkxZb8AtlzgMeG85sbICuDj6D5zNIod0 Be07+rNnC/gsWIFEdtdarjUlnJwGfuo2xcwhTRtsiyf1/Zlmr0Z2WznvW2AO/SJ4RPbb V7z3mVpNtl8cbo08W8Ya9vudigFJu3JJqaYeYmXXu9LdU+H8zhKdjRh7Su2mt/yQK4FI AdoSkFkuqBxPk4YEveauBwYiSU3QtatKLpAIYh55PbH5RdM6nIiDKQLZwB4sgonWXL+8 n4Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LdqUwNGuUoOZQN1Vrg5rTKgqe2Vlz3PCWzH7mZwiHkg=; b=mSepwsk6ImytM9vJ7E9J9KasQkrpr8s3Vt1NI3St1eQ+qO4o39uKi62BeYAq8ic2rk 3Dc11CL7xg1r7DPnADO9V72jdbEbacDunU0jTQH6I2wViDdTc9l6O+SkQRAF/vXRLSZE B0m2PvQoG5N+W2hFB78Bm/RRvA9NtwP6Y8EYw5pAv8cqI46+DLlUagFXLetPvFwDb2HC YXlTtT/Qigvf7ms8v2NVd23Muo0ZAYfAbiknzPnIUTsO3pIK53M5BFjlCsP13kTy5Zah C92OXTspffZ216Nw61sPSj5N/Xzj2oQGTA8OFJsj3zHo3NxBsl6QQgkhbPU6zPycklRI r34g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=VbIfCOkI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si2172772edz.97.2020.09.18.05.52.50; Fri, 18 Sep 2020 05:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=VbIfCOkI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbgIRMvv (ORCPT + 99 others); Fri, 18 Sep 2020 08:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgIRMvu (ORCPT ); Fri, 18 Sep 2020 08:51:50 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 706BEC06174A for ; Fri, 18 Sep 2020 05:51:50 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id k15so5498652wrn.10 for ; Fri, 18 Sep 2020 05:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=LdqUwNGuUoOZQN1Vrg5rTKgqe2Vlz3PCWzH7mZwiHkg=; b=VbIfCOkIPLpuuLEj3Czk6IQzde0+eqXqXF72Xa+y6PnfBTjb0prJZ3ApY6Wkqganxr zm4vGX2vlar5ZHzsZX9tk+LbhMdOefJ/z3Nk4KvgAq/JpBGWqwSrkZnO6I2RM28UfZUZ e26MMcvMpiieFDnfLYqY+aKuqxczdsAON1Gwc= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=LdqUwNGuUoOZQN1Vrg5rTKgqe2Vlz3PCWzH7mZwiHkg=; b=FlQ2C+FG8PGNJCSKvK440NPiWITSDZlPsVZCH7GQ2dYkUb3GYu2m9v3dEZQhsHWp14 sMLr/0IO1zKQbIQCrNjMbx5T/rd9mIJXsgqYCwaI4JjjbF551UksI4BTWbqdrnD08T5M VJdT8OGK1d0x0jwAY3gsgazbZzYoLNwznT04SYVU0akeLKhuXpzd8SlR+EdL0wl3OYl/ bjx5MwVHaJ9PujVVMuPaJN+U4RVJUkw3ZtExKqjfCGYX6Ekej+DRl7tW1JmbDZJdNuv2 rt6c6ZjbHIglmdv3js2lsvQCuFxvX7OJaIMGV7guWJtJUx8k6NV5PvZVVJ67GS3Mdgvp IrCA== X-Gm-Message-State: AOAM5306KJho9bPstD/3UfKgu3dxyYmkuVNRyGlnkCDy2RNNTDbN4Trs dVmbloPBaj60vzYJMs6IH3BJ8X/ALDCiobzv X-Received: by 2002:a5d:6cb1:: with SMTP id a17mr34096968wra.386.1600433509088; Fri, 18 Sep 2020 05:51:49 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id o4sm4935851wrv.86.2020.09.18.05.51.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 05:51:48 -0700 (PDT) Date: Fri, 18 Sep 2020 14:51:46 +0200 From: Daniel Vetter To: Yannick Fertre Cc: Philippe Cornu , Antonio Borneo , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: otm8009a: remove hack to force commands in HS Message-ID: <20200918125146.GF438822@phenom.ffwll.local> Mail-Followup-To: Yannick Fertre , Philippe Cornu , Antonio Borneo , Thierry Reding , Sam Ravnborg , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200918114718.11106-1-yannick.fertre@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200918114718.11106-1-yannick.fertre@st.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2020 at 01:47:18PM +0200, Yannick Fertre wrote: > From: Antonio Borneo > > The panel is able to receive commands in LP. The current hack to > force backlight commands in HS was due to workaround an incorrect > settings on DSI controller that prevents sending LP commands while > video out was active. > > Remove the hack that forces HS commands. > > Signed-off-by: Antonio Borneo This and the next are missing your s-o-b line. Also you've done a bunch of gpu patches arlready, want drm-misc commit rights so you can make sure they all do land? https://drm.pages.freedesktop.org/maintainer-tools/getting-started.html There's tons more docs about how the tooling and process works. Cheers, Daniel > --- > .../gpu/drm/panel/panel-orisetech-otm8009a.c | 18 ++---------------- > 1 file changed, 2 insertions(+), 16 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c > index 6ac1accade80..f80b44a8a700 100644 > --- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c > +++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c > @@ -99,20 +99,6 @@ static void otm8009a_dcs_write_buf(struct otm8009a *ctx, const void *data, > dev_warn(ctx->dev, "mipi dsi dcs write buffer failed\n"); > } > > -static void otm8009a_dcs_write_buf_hs(struct otm8009a *ctx, const void *data, > - size_t len) > -{ > - struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); > - > - /* data will be sent in dsi hs mode (ie. no lpm) */ > - dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; > - > - otm8009a_dcs_write_buf(ctx, data, len); > - > - /* restore back the dsi lpm mode */ > - dsi->mode_flags |= MIPI_DSI_MODE_LPM; > -} > - > #define dcs_write_seq(ctx, seq...) \ > ({ \ > static const u8 d[] = { seq }; \ > @@ -400,7 +386,7 @@ static int otm8009a_backlight_update_status(struct backlight_device *bd) > */ > data[0] = MIPI_DCS_SET_DISPLAY_BRIGHTNESS; > data[1] = bd->props.brightness; > - otm8009a_dcs_write_buf_hs(ctx, data, ARRAY_SIZE(data)); > + otm8009a_dcs_write_buf(ctx, data, ARRAY_SIZE(data)); > > /* set Brightness Control & Backlight on */ > data[1] = 0x24; > @@ -412,7 +398,7 @@ static int otm8009a_backlight_update_status(struct backlight_device *bd) > > /* Update Brightness Control & Backlight */ > data[0] = MIPI_DCS_WRITE_CONTROL_DISPLAY; > - otm8009a_dcs_write_buf_hs(ctx, data, ARRAY_SIZE(data)); > + otm8009a_dcs_write_buf(ctx, data, ARRAY_SIZE(data)); > > return 0; > } > -- > 2.17.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch