Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1213988lqh; Sun, 5 May 2024 23:49:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW1Jx4poA8D8E3r2bxddb2tYsIVQ+1AeHHZBvoNVUFbKxHsg+9p9Sufynwpkr/8cOC8UTgj2rWrRydP2prZXma3/igNymQMcqpG0ZOtng== X-Google-Smtp-Source: AGHT+IFgRBGFi9tP6UrrnwE5FcnAAtOebABrCV/XAThUaCKTrwiAJHpmUuNU2UKk66zmfOPKL6aQ X-Received: by 2002:a9d:5f09:0:b0:6ee:39ac:a757 with SMTP id f9-20020a9d5f09000000b006ee39aca757mr10624260oti.21.1714978167795; Sun, 05 May 2024 23:49:27 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k6-20020a636f06000000b005f3cebee887si8196983pgc.483.2024.05.05.23.49.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:49:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169375-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JjHe4A17; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-169375-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8AEAFB20D53 for ; Mon, 6 May 2024 06:49:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF2824EB33; Mon, 6 May 2024 06:49:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JjHe4A17" Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 7B23345948 for ; Mon, 6 May 2024 06:49:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714978157; cv=none; b=jaZTXP2Ozz1TZl9R9z0rORdnpSS0yHdlSnAeShpbM31+DzqWVqzXNFmDpp/V8vXP98kmaDGMrsQQoxVykBE7fiGnkOk058FBcBozTpgbD2UcBVgP1Gp4yJkli0EB7f9W8OXtvTkpYLxH593nWzF51yZPxa1Kfe7vJuwGs3K5z6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714978157; c=relaxed/simple; bh=Nrafd49uuelVpJdscgz/Mad+QSbSTwFXfEAGUqb3rGM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ITsF+rlq2CX9T2N9IpxTk7QnlFpAiPL5u23fhUqEbGOHhaMVejMav3n5F0vI6d/Cao2xReWYV/6ZPRIc93djDgluqdlypuLpbVxOUzOf2e8e0XxzmWQZyIX9xVWXoxcV1oVNKgp6CgvgydFqQ1Z50qe20b6ojmTFdRfEECO0X2w= 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=JjHe4A17; arc=none smtp.client-ip=209.85.128.176 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-yw1-f176.google.com with SMTP id 00721157ae682-61bee45d035so17073287b3.1 for ; Sun, 05 May 2024 23:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714978154; x=1715582954; 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=w8noqLZ7rreQXY6bq7wOdAQ/j08jV52ZrD0dDyncfUM=; b=JjHe4A17Qh2fAZWvkvarWKaJMMOrdR5v+hHYGKR4foHXLhf7IXpgEb8sBRhOZhHYjK jrIltMlsVdtk8iuG8MvJiguf+6cflDGtBpqizOoRPltf1GMma4TXYUUeTgztPU6BOmxT d9mcdKZ6D1+hOsV5ZfxImi1v/nxk3VH7mhNjqhlWi8wvx3Q5UPEfBSMlfO16DYcrB+m5 5g34H8/c4IjR6qpIvdDucYyw7e5HPWKp9yW3YlHvLs+ySbu/mmPLb44V3e7LSCi3k2bh PSk+txBdK26HT4SjtPgl6F+CHasVjpyNvvNprdzeoCzzqnfdkO7xbOaowD/EL2T61SUv /HiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714978154; x=1715582954; 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=w8noqLZ7rreQXY6bq7wOdAQ/j08jV52ZrD0dDyncfUM=; b=AUq0OyeBwwVjZBaaEhNZ11/RNYhU5psIVRYB+Q0F5X92gEQw2oVaUK6E57uhca2QPL 0nCezXbSYQcC27eoIdkB1pgqRZG3HZCbaewZ3pJcJAxlaeDgXfrLVgh1k5Ux9+4CYHxY xURPT3VXWMtqiMSBR+ZZ74USa1IM946HzHdkDcZlahEZ79o1iR63C0BV0GulzP9qhhP4 nqbxLy06k4nAtP1PE5pVADXKK3agyufY+tbS9xb9YiXIYfhkpcgoj2cv727rswoijXrZ TEel7VkChhOKU9jaszwFRJEQMOtRqMBiF/7aJMnRR0nKBnyrQs8AX4RyIUD+5gEaUwIh OqnQ== X-Forwarded-Encrypted: i=1; AJvYcCXUBO/EKdI3P1gR7eWEwEFebxr+o+REuOf2/StgWHJDpHoZwisQfAgwSCD0g7iWkrVF6vxvf5v7k8x2iUiyxBX+FM3WrmZW04b2o9zs X-Gm-Message-State: AOJu0Ywwx007WeXdPh7FL0q95t3T4/EO0LHGC2oLBJgsvcf4wRA3YZqH Tme0boNRoYO1AfEF6u5oZ2h0SHP/5gVTI8wV9eANbW6Co1aSlKKmZP4Sh2A5uzkqHAGTagCYli3 M3rsaykt6L0Q2h3e2Jnt2jzcIulLTRRsQKHnFqA== X-Received: by 2002:a81:ac13:0:b0:619:da17:87be with SMTP id k19-20020a81ac13000000b00619da1787bemr7931494ywh.42.1714978154440; Sun, 05 May 2024 23:49:14 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240503213441.177109-1-dianders@chromium.org> <20240503143327.RFT.v2.46.I6a51b36831a5c7b2b82bccf8c550cf0d076aa541@changeid> In-Reply-To: <20240503143327.RFT.v2.46.I6a51b36831a5c7b2b82bccf8c550cf0d076aa541@changeid> From: Linus Walleij Date: Mon, 6 May 2024 08:49:03 +0200 Message-ID: Subject: Re: [RFT PATCH v2 46/48] drm/panel: sony-acx565akm: Don't double-check enabled state in disable To: Douglas Anderson Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , Chris Morgan , Yuran Pereira , Neil Armstrong , Laurent Pinchart , Sebastian Reichel , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 3, 2024 at 11:38=E2=80=AFPM Douglas Anderson wrote: > As talked about in commit d2aacaf07395 ("drm/panel: Check for already > prepared/enabled in drm_panel"), we want to remove needless code from > panel drivers that was storing and double-checking the > prepared/enabled state. Even if someone was relying on the > double-check before, that double-check is now in the core and not > needed in individual drivers. > > The acx565akm seems to do some unique stuff with the "enabled" > state. Specifically: > 1. It seems to detect the enabled state based on how the bootloader > left the panel. > 2. It uses the enabled state to prevent certain sysfs files from > accessing a disabled panel. > > We'll leave the "enabled" state tracking for this. However, we can at > least get rid of the double-check when trying to disable. > > Cc: Laurent Pinchart > Cc: Sebastian Reichel > Signed-off-by: Douglas Anderson Reviewed-by: Linus Walleij Yours, Linus Walleij