Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1142023lqt; Tue, 19 Mar 2024 14:08:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUooxZoekX4ULWi/BfSgHqJbV1JedomPB56iX1MtHyLizLU+eENnJgLDIDu/cJgtKdqgY2MiC4XhRsEq4T0xA8VfXG/Tz5Zuy2fFjNz+g== X-Google-Smtp-Source: AGHT+IH/97/4f5tKw/qYHgzSHDxunZT+RgX8UcscdI8KrKroAB5QcNMUiq+UKJz2W9z4MRr/Hz5r X-Received: by 2002:a05:6402:3786:b0:567:800c:f6c6 with SMTP id et6-20020a056402378600b00567800cf6c6mr539362edb.15.1710882485005; Tue, 19 Mar 2024 14:08:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710882484; cv=pass; d=google.com; s=arc-20160816; b=DY8K/luKbWVHZTqZWRrvnA8iXck+2tmIciYMl8SKdLEQa5U4HZdh02c0Y/iBROOEdr dgUtfmmUN9oIBwd4yAVbn3OMsTQePu4bWTSPnvlZIJaECDIUdH6oVQGUIyyC4spAh0LI KuM35GCMMj4DsJczClSzigKIz8aezvCcqJiU8k9h3tNz6GkLhdPmcmvp4l+tKc3N3uQw AsYK2f6WI/QKxce0bbuyN7uPUAO0qT+wFDQP1zSYsAhoqkvXkRaJf5S3TzAIYQf/JEgb rWRZCSe8u8eM5aAaTRzzUGkc9jZ1RJZQSkrq5FlZhyzJuE/PhIdPAC0bgo09IxuIKMGW 5qmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XJm66ymQj4qZljhVLm+D5W3oaVWUS1R2lKPopMwVbNw=; fh=A/MLgcTtAvcNU3o0bQk34+1+sKS3sxARJK0KkR4tLk8=; b=hrfa1UauPAtkgmLYJSV0Irhf3/Z2bdMibaGF+oVn34moyHF+uVLoT9Zl5YdXBJ5Qlk ABKuh25ZMzl8s5BYKllaEsalOQQe4QYscnDBtnyrKmgARmVlp2NABvPrUZtFfH6UdAEa wf5foZF90nZ5KThUUaWuWkVCbDEmf1OrI9bV2lG0N3XmP311v7lTWgM+aRuahGTsp+M5 zOUd+r/mfSWSdEHvpL31lPhIU5jXaNDFNuXqO9PHeFbLshQEgk8oDwogSlcWg1y0B8va 4HTRxtd4Qs+Vp6d3vr5D6STKFSRdwOx259fbChQN/GoZs04y1QR9A/FtPvLTpsD+xh/8 /svQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S2XV8n7x; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-108138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y22-20020a056402359600b00568c5c7a3e3si3481087edc.555.2024.03.19.14.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 14:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S2XV8n7x; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-108138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 903451F22964 for ; Tue, 19 Mar 2024 21:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E75673D0B9; Tue, 19 Mar 2024 21:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="S2XV8n7x" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 560353C47C for ; Tue, 19 Mar 2024 21:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710882477; cv=none; b=NQFrf1lwAduPoKDFOVOWxnZSlk8gfxom1LL37rXf+w1WquPzkp+jwqK0AU8pOX7L9b++a6++hHUsVsQamxPC0iCRTBy+lcQ3WhJUML+VNVKbqltys+UpDmUUlqXNev1QyYyaJvQkYVLGKaUOVvproYR0Qvd1+itU9RjycBEiYm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710882477; c=relaxed/simple; bh=FFxWdNsrCs+Ws3tNdAflAKfMvAZZKT7Q+ZcIn5QT9hE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rJO6ZfOvG0QkaUtac6WjpaiThzGD5Ne0EJkpzNpzrQYAJwOhYtHQF62Nk+Bp80qPFHc5kAJA3X5Gpn4X3QpVRzWnUqWLT7YgzPTy5lIXn8XJtbnq7dhZKhpsdTxEai9FCyySWLBIpc+P5QyHOJU8P/qUZHIijS0v/d1W3V/XHw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=S2XV8n7x; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so441185a12.1 for ; Tue, 19 Mar 2024 14:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710882473; x=1711487273; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XJm66ymQj4qZljhVLm+D5W3oaVWUS1R2lKPopMwVbNw=; b=S2XV8n7xOCoKA1ZsGeTKJxm4LVxd17jzvzbsILfKbvLSiFxb8YvXIW8k/pruthvZhU b6F1ibvmfDEpJQXDRDu6KcGpgt72XP64HEEa0u9ZaTIqubx4YOfgimKtzsZ0/7SoQtec 5plzljmu+EDUfBr4XtT+eyy8ZE7sVzP2O6iuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710882473; x=1711487273; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XJm66ymQj4qZljhVLm+D5W3oaVWUS1R2lKPopMwVbNw=; b=uaGKc2burCADR2YdEFkIlV7WLvPPE+KrbQGg7CxuFeHspPeRUU8+Qtzsp/4iISLNUM J1DUK4BCVSftMQns56B/DXYMLnVrFg2gCaJ1XEBHZrMS097MrujjOlqZx0O1tkuqZjcp aCAlyWWMLTvYkhyP5+XPRTCSG08MiX66TysfefylITfvwiWoK+eDAncYb0vkThW2q8pq Dtl3p61v1rg4OA61FL3xWDlrwG1OIG4Hos20PBuNKw5UxZbys4qhA7FvD25P1fuZSAhb l/u8gup1YFUr/tDHwKEFnHwZ5k0EsS5nFcuJoHE8P9q4hRZahfOj1TWIXFY0d4WVSO3o fK1A== X-Forwarded-Encrypted: i=1; AJvYcCU8fnUI71giADcNmgQ0/l6Kr5+GOmMWBwUA9hT1H+Nj6lKLWjIk+x5ngMysGhcWjhWVuGYtuIfeAazMIiwEgfQQMgky/FH5VFhDadoQ X-Gm-Message-State: AOJu0Yz39msyyVW8xvcSe62AmVjSM0YkF4rP1LqLUL2rxb95Oj7ICmFp bSjrnGubBLQlst7qbWsPQyzfKlXUCbBxrrsIhT/uvK4kRDQN7h+15JIA82PmK/gkeZQHitPLQsO wSPE4 X-Received: by 2002:a17:907:7d9e:b0:a46:85ea:7e9e with SMTP id oz30-20020a1709077d9e00b00a4685ea7e9emr735224ejc.1.1710882473484; Tue, 19 Mar 2024 14:07:53 -0700 (PDT) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com. [209.85.128.54]) by smtp.gmail.com with ESMTPSA id af3-20020a170906998300b00a469604c464sm4990996ejc.160.2024.03.19.14.07.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Mar 2024 14:07:53 -0700 (PDT) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-41428b378b9so8795e9.1 for ; Tue, 19 Mar 2024 14:07:53 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVINjdgc3TMNwUYK99xL9X3g2EJ2JN82ZZM6ZXSvfimjrVl+M3VRujBTeIoOuUpOSdR/qk+1Neyiv/ygp1ZhyBRx9fKOe8crIEPBzyx X-Received: by 2002:a7b:cbd0:0:b0:414:da8:76dc with SMTP id n16-20020a7bcbd0000000b004140da876dcmr63824wmi.6.1710882032388; Tue, 19 Mar 2024 14:00:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240319111432.1.I521dad0693cc24fe4dd14cba0c7048d94f5b6b41@changeid> <2fa9a262-de60-2c1e-9ac3-1e478ec65bb8@quicinc.com> <977f647a-fc30-d9c9-f973-fd8bd9a4020a@quicinc.com> In-Reply-To: From: Doug Anderson Date: Tue, 19 Mar 2024 14:00:14 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/dp: Clarify that wait_hpd_asserted() is not optional for panels To: Dmitry Baryshkov Cc: Abhinav Kumar , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, Mikko Perttunen , Jonathan Hunter , Thierry Reding , Ankit Nautiyal , Daniel Vetter , David Airlie , Imre Deak , Jani Nikula , Maxime Ripard , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Tue, Mar 19, 2024 at 1:55=E2=80=AFPM Dmitry Baryshkov wrote: > > > >>>> - * panel to finish powering on. This is an optional functi= on. > > >>>> + * panel to finish powering on. It is optional for DP AUX = controllers > > >>>> + * to implement this function but required for DP AUX endp= oints (panel > > >>>> + * drivers) to call it after powering up but before doing = AUX transfers. > > >>>> + * If a DP AUX controller does not implement this function= then it > > >>>> + * may still support eDP panels that use the AUX controlle= r's built-in > > >>>> + * HPD signal by implementing a long wait for HPD in the t= ransfer() > > >>>> + * callback, though this is deprecated. > > >>> > > >>> It doesn't cover a valid case when the panel driver handles HPD sig= nal > > >>> on its own. > > >>> > > >> > > >> This doc is only for wait_for_hpd_asserted(). If panel driver handle= s > > >> HPD signal on its own, this will not be called. Do we need a doc for= that? > > > > > > This comment declares that this callback must be called by the panel > > > driver: '...but required for DP AUX endpoints [...] to call it after > > > powering up but before doing AUX transfers.' > > > > > > If we were to follow documentation changes from this patch, we'd have > > > to patch panel-edp to always call wait_for_hpd_asserted, even if HPD > > > GPIO is used. However this is not correct from my POV. > > > > > > > hmmm I dont mind explicitly saying "unless the panel can independently > > check the HPD state" but not required in my opinion because if panel wa= s > > capable of checking the HPD gpio (its self-capable) why would it even > > call wait_for_hpd_asserted? > > I'm fine with the proposed change. Doug? > > > > > I will let you and Doug discuss this but fwiw, I am fine without this > > additional clarification. So the R-b stands with or without this > > additional clause. Adjusted wording in v2. Kept Abhniav's R-b. PTAL. https://lore.kernel.org/r/20240319135836.v2.1.I521dad0693cc24fe4dd14cba0c70= 48d94f5b6b41@changeid