Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp196263lqo; Thu, 9 May 2024 17:56:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVQTeWJObFQ0E5h/6h4dCzN6MgCt9Kwjlo5HrpKWsxN/1v+nvvSakgvLpoNuT+Z25p18y4rqiw+s8VBGPRiUNCN2+QTKir4OUhPrygwg== X-Google-Smtp-Source: AGHT+IHxWhkyVcrdY0mjBaJ+0vKwaXoP4bu8rXZZGVx/5o26RRH9RMGP6dLpcMdNKZGlcgbjFU9E X-Received: by 2002:a05:620a:46a0:b0:791:58f6:6be1 with SMTP id af79cd13be357-792c6c59d25mr270286185a.19.1715302578127; Thu, 09 May 2024 17:56:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715302578; cv=pass; d=google.com; s=arc-20160816; b=CNVcm5ttcYugV3FgDKwhHHZXMzekRV2uY+ZocRnkdh6xHa09SwOXt4rRYfpjWLcvY9 LHLuD/beD2yH1RaNiLlkzxeAHXrOdZCh2w8QKx2lZpFPIEVMHkUb2/XLwN1kqGsI83gb r3zlotw+RDuUnwRvSSPfRdwr66rQ6TMy9/kJdI6wXJ/JKULepN+ERj8DyWhf6bGzUmdo qFtvSaL/HKYWEK5AJ7ljxqmKue0W27wmg/W2xrqXyu58YY3JH04/j1f6vyFNC5f4h6H+ xett3oeXoJORw8CsZqdvOAz/XQ5tOMg65KJVcIewPUGeUARBSMNdX4wsNmp/WY6ShsNP K++w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lXqP1Ltv+f2Bj5fMlF5qjaDyVYcHhqES0nW1HquL4V8=; fh=YwPhPFLSSgt4U2gF35u6WGSs/igP5exAp97UCDo/gSs=; b=HGtk2Sl08DUK0tchjX/MisLkhmqSCxJ8lAtGlisDK+k7EL1ydyPo62sjfvNGewSejK wgIuyHnG1GGrq12JY/091Csrb23Pif51J1Y+I7whK/ctrEtdyeIZLoQ78HbBsJ+bfE0s gVJuPACNCQuTyeTuWVDyEsYYVQ6SEzSTc02qF99ILYbmrGsnaIrEPDJmRFygsgXNnpE2 bBy0ZYOfUMPpuXbsz3GaYhEn9HRfBuxuA7I6zocO73oNri54r6sAwG+yIJkQQNuRK3S0 GL8sOIUHvjWRfZpfN6Rc5h62wPUrTT/pyLH1rybWWzxmhY86MYEs9FY8P+PSYt8RKtb0 GpbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bBqbZYPp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf277367si245140085a.3.2024.05.09.17.56.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bBqbZYPp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D786C1C20312 for ; Fri, 10 May 2024 00:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CC7C2572; Fri, 10 May 2024 00:56:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bBqbZYPp" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFB7F173 for ; Fri, 10 May 2024 00:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715302571; cv=none; b=uw8v6CouiQEvU+JeZ5GCpqeHJ9jgnnrR2mWSbmDD8aSZrzzHkVx8PBegaJTBjsa2N3A5rJ3jF7Mkvd5LMG6PBTilxUIjm2nnjn9+a8rKRia1DYn1PqxFLBzpiGkr/ppj6UX57Nw6vXPxcNns20P4gg1u0Nt6WFVMnlsSStQPf88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715302571; c=relaxed/simple; bh=epH8GYzjkuUGau3B3Pcs2RzpwmWTn5EGiER102tL/lU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LgvZlt7i7p2/dWIGbF6/vjarKRC7SQLeeBV5edNE5Jo2QKRqba6+qj/0DO0SFqjygzLfrHXp2GZ/jImHoxOflxBBl6j9Ez2Rr0YW+yW7Be6FnfpkNdX/iqekDz+s1wyLBm/OcRNSrjmCvYkgrCMYSx8PosuckKidpulyw14jQ/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=bBqbZYPp; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-51f0602bc58so2390671e87.0 for ; Thu, 09 May 2024 17:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715302567; x=1715907367; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=lXqP1Ltv+f2Bj5fMlF5qjaDyVYcHhqES0nW1HquL4V8=; b=bBqbZYPpBvMcHZvQvHrWJTaB9yq05ekOR2vU5pdNycE2lRMblPMTdHbvFVC60c15Xb 7Of/JpNRkgnLLvrCLe9M0EVbc9El9+Q5TTHBg+osMOlEbcY6o9mgEfc9xNOOQUNuCmzr mijOMkuh/Nkx2hi3wvnCE9/xQtDfvoGShDhFArwl4aqpaXAygz4WBQSx8USEvUIqC7x7 NiAXM5I1roxq14B3AeOXjv0v8DIjrSiDx8EX96cfX1h5I3FvepMRBANaXzEKaJgtqhFw R4Fh7/xqVDG2iVlLHODthxKAZ7ewU0mux9sRJ4MdMFPydbRMUhX0Uauw8ru4IasQN3IG KMpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715302567; x=1715907367; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lXqP1Ltv+f2Bj5fMlF5qjaDyVYcHhqES0nW1HquL4V8=; b=BtxHONnhaZG4P/2HBdAxXN9H7THsnCdG/qIHrnfPPrDA3GosbVgof8TH9Viz16QGX2 /NPdNiqcuqX+KVmIpR7UPDYdHP/JpsqS1jg39jSLirMU+tt2KW35dij72ngwTuRws3yT sLweIYFeM6pD0Tfh7VcImzvc+fXBAdaXuPO8lrHrTJNybRTFlxbYb47U05gwL0bSV+g0 Yu/6qgT249/UR4fWGnyOOH2Xlgs0XEgXHQYo9jy9Ry0AFiII1cl4NS0jRjmFjBCFus1e wY//M6m1xO+zYEEQ3OKvwoJqSDKJAiNN4dzrciYy3S4RMGYoRPMSOOatob9S4ANLbrEi +BWQ== X-Forwarded-Encrypted: i=1; AJvYcCXikNJfwgW3cXjN5dcfS8Lj1pU7YrSYuCOiMCAH1EjIrX+PzZLbYzzo530bHZi5xzKfX4gqsBURKtTy4DrxMgmhFyMyZsYRjj2LMhZi X-Gm-Message-State: AOJu0YzFcUBQNeJk33xqO5EVWk0TyPszvQnwwb91C86OCWGsw0s2XEeo flcpuCfyUQdt6lm6W7ZD4BoItyJ06AM8AY3n4g9syzNAYPywmRJhcegOWOCYbPU= X-Received: by 2002:a19:8c46:0:b0:51f:9a88:be2a with SMTP id 2adb3069b0e04-521e126c339mr1231384e87.23.1715302566866; Thu, 09 May 2024 17:56:06 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::8a5]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f35baacesm491795e87.90.2024.05.09.17.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:56:06 -0700 (PDT) Date: Fri, 10 May 2024 03:56:04 +0300 From: Dmitry Baryshkov To: =?utf-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable Message-ID: References: <20240509-jdi-use-disable-v1-1-5c175b2ea1ee@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240509-jdi-use-disable-v1-1-5c175b2ea1ee@gmail.com> On Thu, May 09, 2024 at 08:14:07PM +0200, Barnab?s Cz?m?n wrote: > Move DCS off commands from .unprepare to .disable so that they > actually reach the DSI host. > > Signed-off-by: Barnab?s Cz?m?n > --- > drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) I don't think this is correct. If the driver sends enable commands in prepare, it should be able to send commands during unprepare too. > > diff --git a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c b/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c > index 483dc88d16d8..f7222974d6ed 100644 > --- a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c > +++ b/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c > @@ -169,6 +169,15 @@ static int jdi_fhd_r63452_prepare(struct drm_panel *panel) > } > > static int jdi_fhd_r63452_unprepare(struct drm_panel *panel) > +{ > + struct jdi_fhd_r63452 *ctx = to_jdi_fhd_r63452(panel); > + > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + > + return 0; > +} > + > +static int jdi_fhd_r63452_disable(struct drm_panel *panel) > { > struct jdi_fhd_r63452 *ctx = to_jdi_fhd_r63452(panel); > struct device *dev = &ctx->dsi->dev; > @@ -178,8 +187,6 @@ static int jdi_fhd_r63452_unprepare(struct drm_panel *panel) > if (ret < 0) > dev_err(dev, "Failed to un-initialize panel: %d\n", ret); > > - gpiod_set_value_cansleep(ctx->reset_gpio, 1); > - > return 0; > } > > @@ -219,6 +226,7 @@ static int jdi_fhd_r63452_get_modes(struct drm_panel *panel, > static const struct drm_panel_funcs jdi_fhd_r63452_panel_funcs = { > .prepare = jdi_fhd_r63452_prepare, > .unprepare = jdi_fhd_r63452_unprepare, > + .disable = jdi_fhd_r63452_disable, > .get_modes = jdi_fhd_r63452_get_modes, > }; > > > --- > base-commit: 704ba27ac55579704ba1289392448b0c66b56258 > change-id: 20240509-jdi-use-disable-ee29098d9c81 > > Best regards, > -- > Barnab?s Cz?m?n > -- With best wishes Dmitry