Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3459034rdb; Wed, 13 Sep 2023 12:39:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHg2iaAq/XU/JxqufOfm0/S/3gm32MSqyMz/i2fQkZvCdcDahpl1vmQXqhxeuljhHDkwrGp X-Received: by 2002:a17:902:8491:b0:1c0:ecbb:1831 with SMTP id c17-20020a170902849100b001c0ecbb1831mr3098898plo.16.1694633986109; Wed, 13 Sep 2023 12:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694633986; cv=none; d=google.com; s=arc-20160816; b=moE2SJbO8ccw2esbWyKAr/U2ZBzNdbdws63utHA9HsGOCYoEzqgGIo7l2aQVyuQZfp 5gLx+j3aOmi0ml98e3guKjnWdrNFpazH2anAuUA6Ba1VQSCDarTHKFoUejFdEELt4iNg f1XZow4vYqNkZTvIb9+38ZfmSdnpO+5MkXrlxmI+/K0JAV48OfoLiWhp1S9BhTLtq5B7 z5Jhz8GF2XZUCrEnKPVsxMYeicduZaOTa9Ahm6JluN5hjfoYBJtHsibaa6IS7kbqYiT9 zin9u+UjC1i+ckpI66Dq8oOriTssknKw//VNiiQI+UcXZs2VlXq6K+KtzfMsZ65HXQDH kPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+VOQaOs8o5B9GH/mmvpD1aOyQRsVO5OINT7Nf+9h0Zg=; fh=Tgg/cMjiyesLsF4PT4msr3ZooVP5uR/GjNwJeLZZSjU=; b=DSvXlOuYzAZCReuQ8byCD3/1SIDtzmzAxBAmLB9+M99fAdu7NIOwA8jvXbgIlL4JSz zXlXsaYtvhMCAo2PaAwA+RlaI7NEqWvHFwL/70r0uucbFDy6witQk2JsJTO+N+SUiYlL eQEn9X/GIFbqaTymBfh5Qqp1oxLr2sM7XUGWW4kcgSmddSARdrCQMlMJ8xCvJOYNpKNy RzxwuVQQRlEfo0fKR18OePZxjBuhjX1CbIKvdxiFLUxZxnq1BYsnQkwk5RAEdwFqlvP0 qbWMFTpdGqrG5mzJrZX+5kWMFe233AclHzk+DgYqDRHIGLOTR6kFSYlAggxMfu2/Ew0X 5DPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aYv6Z5EE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l4-20020a170902eb0400b001c34f81bb35si10402519plb.200.2023.09.13.12.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 12:39:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aYv6Z5EE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1DB4B817C1D1; Wed, 13 Sep 2023 11:20:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231778AbjIMSUm (ORCPT + 99 others); Wed, 13 Sep 2023 14:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjIMSUl (ORCPT ); Wed, 13 Sep 2023 14:20:41 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C28419BF for ; Wed, 13 Sep 2023 11:20:37 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bf924f39f1so1488521fa.2 for ; Wed, 13 Sep 2023 11:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1694629233; x=1695234033; 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=+VOQaOs8o5B9GH/mmvpD1aOyQRsVO5OINT7Nf+9h0Zg=; b=aYv6Z5EEyCsF/MeaO8m0aGUzuIU/GAs6RNpvVDoHF2Gu/3PM+3Qqjsao6P0mHtFAFD RO9ic2hciivZfez6BUOYb6QUndRwe5X9VJrxeIsAoRQ3LS1uZ5WKFqhBunjtDiN+/iN7 idW+4VD8ZH/eA5mslf+nt2ywJC1hqKNIQVv4w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694629233; x=1695234033; 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=+VOQaOs8o5B9GH/mmvpD1aOyQRsVO5OINT7Nf+9h0Zg=; b=TFj273rFLedzmh7xV/ladWVIlLkuHajQlnKFKUozIyt+IZ8aJ/eHCe1eyANRHpNjwU AMYLznMdKhsiDeJocFuY/jQbt/iYPLtBjas4Z/vbSGHP1hd/DmDKvjkJwGzL9mrnEgVt DMsEeMZ64x7isUm43AtB4LHu23BNWqOx8CmnZ1rTS8/JQ242gKnvrI24toX9GPFBOPSm IeTyfd1BsZe92TbLfy/z5JHLy/vQp/QKEwbMBXQfVGf1aBp21CXCH6g+5Eay/gAPW6VU IrBb+ciIyl/cPtWb2sw9ViUCOvrkUt9yxvMxz1hXVgthCaZ8La+2EYkeo7QyczZZ5Jj2 v63g== X-Gm-Message-State: AOJu0YxKjm6hewV+1ZJFYNCRY5Rs5zSDG2SxwNKdntD/9H9bLLEtu1cQ VVkMxl2S8O+QFyHWnfEQMfSD4iMz6SYtLFBavIWO7vye X-Received: by 2002:a2e:9556:0:b0:2b9:e304:5f82 with SMTP id t22-20020a2e9556000000b002b9e3045f82mr2881194ljh.13.1694629233159; Wed, 13 Sep 2023 11:20:33 -0700 (PDT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id v14-20020a17090690ce00b0099c53c44083sm8766700ejw.79.2023.09.13.11.20.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 11:20:32 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4009fdc224dso10325e9.1 for ; Wed, 13 Sep 2023 11:20:32 -0700 (PDT) X-Received: by 2002:a05:600c:3581:b0:3fe:eb42:7ec with SMTP id p1-20020a05600c358100b003feeb4207ecmr162996wmq.1.1694629231997; Wed, 13 Sep 2023 11:20:31 -0700 (PDT) MIME-Version: 1.0 References: <20230804210644.1862287-1-dianders@chromium.org> <20230804140605.RFC.1.Ia54954fd2f7645c1b86597494902973f57feeb71@changeid> In-Reply-To: <20230804140605.RFC.1.Ia54954fd2f7645c1b86597494902973f57feeb71@changeid> From: Doug Anderson Date: Wed, 13 Sep 2023 11:20:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 01/10] drm/panel: Don't store+check prepared/enabled for simple cases To: dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Daniel Vetter , David Airlie , Jianhua Lu , Neil Armstrong , Sam Ravnborg , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:20:47 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Hi, On Fri, Aug 4, 2023 at 2:07=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. > > This pile of panel drivers appears to be simple to handle. Based on > code inspection they seemed to be using the prepared/enabled state > simply for double-checking that nothing else in the kernel called them > inconsistently. Now that the core drm_panel is doing the double > checking (and warning) it should be very clear that these devices > don't need their own double-check. > > Signed-off-by: Douglas Anderson > --- > > .../drm/panel/panel-asus-z00t-tm5p5-n35596.c | 9 ----- > .../gpu/drm/panel/panel-boe-bf060y8m-aj0.c | 9 ----- > drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 9 ----- > drivers/gpu/drm/panel/panel-novatek-nt35950.c | 9 ----- > drivers/gpu/drm/panel/panel-novatek-nt36523.c | 12 ------ > drivers/gpu/drm/panel/panel-raydium-rm68200.c | 38 ------------------- > .../panel/panel-samsung-s6e88a0-ams452ef01.c | 10 ----- > drivers/gpu/drm/panel/panel-samsung-sofef00.c | 9 ----- > .../gpu/drm/panel/panel-sharp-ls060t1sx01.c | 10 ----- > drivers/gpu/drm/panel/panel-sony-td4353-jdi.c | 9 ----- > .../panel/panel-sony-tulip-truly-nt35521.c | 18 --------- > .../drm/panel/panel-startek-kd070fhfid015.c | 11 ------ > drivers/gpu/drm/panel/panel-truly-nt35597.c | 20 ---------- > drivers/gpu/drm/panel/panel-visionox-r66451.c | 16 -------- > .../gpu/drm/panel/panel-visionox-rm69299.c | 8 ---- > .../gpu/drm/panel/panel-visionox-vtdr6130.c | 9 ----- > 16 files changed, 206 deletions(-) In response to the cover letter [1], I proposed landing patches #1-#3 directly from here while we resolve the issues talked about in response to patch #4 [2]. I didn't hear any complaints, so I took Linus W's review tag from the cover letter and pushed this to drm-misc-next. f8c37b88092e drm/panel: Don't store+check prepared/enabled for simple cases [1] https://lore.kernel.org/r/CAD=3DFV=3DUFuUsrrZmkL8_RL5WLvkJryDwRSAy_PWTa= -hX_p0dF+Q@mail.gmail.com [2] https://lore.kernel.org/r/20230804140605.RFC.4.I930069a32baab6faf46d6b2= 34f89613b5cec0f14@changeid/