Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1205152lqh; Sun, 5 May 2024 23:19:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGOAAcBwwIdEdijl3xu7eD5npTnrD1roSiWmPXVvJtNGs0c8Jh9ULAIjSkhut+LiIzpP6/Vg+W7Ha8AEzz08tJyMqH3hpbqGsh0GgnaQ== X-Google-Smtp-Source: AGHT+IHGFbxEjhKQiyNBokNDOxFCmnuAyY9MC09TlkaWCGOh0DCfMK6D87zoJPbUOKR+ERa5neGl X-Received: by 2002:a05:6a20:974d:b0:1ae:4266:b39c with SMTP id hs13-20020a056a20974d00b001ae4266b39cmr14393944pzc.17.1714976376589; Sun, 05 May 2024 23:19:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714976376; cv=pass; d=google.com; s=arc-20160816; b=CdAsaYJr8De9aVp3hjC50p3qHno2vqRswNLtQ8rT12ueCpgxxW31T2aOMBL4SNiR4m lfuujlxsJLg4sdt5jOChruWimJXYefq7P4L3NCX4kzkNw9+LutHH2N4/0l3gT0d9JGaQ eEZvIeuv0sjtDqa3xaBly0sicitYQpQkT3Exod5Nv1PFPCk9yFf8m88h/jcuaSjI4yD/ l7DAIPbUjXaN2wl071YLpwFoNh4tWqD07Wjb5Y9NJ0Ck8yiHBTMYBHK6qEKhZfZABiFA 09Qgvy1UpyGbfJf9X4MtiNf9KAjoaNrL0Xshfu8aMnFq2bFY+haV9Eu5sNECCkcL6lBl 3K/Q== 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=eFdACjcDM2Uo7LPWPgteG5eQO148kN9bkoBsOWzObaM=; fh=y80y/Yyf5lTfNa/DAULCwyaJiY91T1B8FYBj/eT9Vmg=; b=LkEOk08uewupHivlSNoXbZxTFF/x6BcaC07OUmBFQp5EB5wOL63NTFi2gMGlHj4800 F0waliUQQLkrj9/BwpubqlERS9lDi63bb1gTYX1zbbjVQdcxVYzqxBOLMIxGpvB0yQ+Y paOwJtejezrYPdwEpjmA3XJpLvg5oiUNtwPa9pTNk6WjhBioHx4enO02Ea2e6ln6fwB2 eo2DnW29RKJRUO5L20K4r6YESeIjx9mtlrGcUs+Xl/5gZdEN54DAyQYeZqFQ/wxUwtVG KmnEpuQjS/MzGG3RuHnq0dAfYNCvbgmMq5h0iZhaieos2cln1IPPsnnUi4XnP9z31T1N eT8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LIc3aAKz; 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-169350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c7-20020a63ef47000000b0060f4b98310esi5002908pgk.870.2024.05.05.23.19.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LIc3aAKz; 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-169350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169350-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B8CE2813B1 for ; Mon, 6 May 2024 06:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A3334D10A; Mon, 6 May 2024 06:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LIc3aAKz" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 B1BF93D967 for ; Mon, 6 May 2024 06:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714976369; cv=none; b=eAQfYVKoUPiyOk9DqAA9MD7Yo2pFOv9z4fvjcMSmEsDAcSS5oeaOgwctRXId/cJYvCyU52NKb7yEcYRIeGBpSbXWi74+Y+ndmTsWoR2OkjX4UMptNE2ty4ah2W73+0r3XQcowk/S+yv6H4/pzZgCDVz2Uw9t3l6aQWRy6ke8Bpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714976369; c=relaxed/simple; bh=hm9WP4hdWnhP4OGT6tKYYiu05S+Pl1cEl7fH15NGw9s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CQwIyR+RLSK4Ci1Ke8RILrIx3Z1dXl+yOxn7KIKnb3Rvwi5XJlGm0gAxhkvTsZb8xe4pgJl3hYeQbrPauQ7JrB7ZcUm6msWu63FmZu00hLiWl7kaDlcFSsa82shREbe+RiETLyCmFXgedA8ZUZoTOypUwdAKEBR/JNMjfNCkrGY= 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=LIc3aAKz; arc=none smtp.client-ip=209.85.128.171 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-f171.google.com with SMTP id 00721157ae682-61e0c2b5cd2so25803887b3.1 for ; Sun, 05 May 2024 23:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714976367; x=1715581167; 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=eFdACjcDM2Uo7LPWPgteG5eQO148kN9bkoBsOWzObaM=; b=LIc3aAKzSAVdjAr1+lFQWMiOsWLY5nl4HBtm61xTVJCAVA08rOa+oYtFHpJbxPa+/i nx1yY0oIcZprugjl1qfGOdEvqMrlv7u1kQstxORBxMjmFTvo811sMmBRt39oCiSLWStA IXjkWsbtnsK7/cd3pg2Bp5Y1dQmvl7wOlQkqM0U8C1WpO9HqtVcRY44XGdWcGtUPv4aM ITAp1GNerYaoD8sMsertaQZv4W22fd9G6kXB0pxRMlf8N85R1YnxQQuEn6WHExKg13AJ GHPtWCg+JJzcScrMjD314nzdqYUzcgUNdq+4/36e5YNyLSGuugMcU2R3QyNY2xP77XNa XlPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714976367; x=1715581167; 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=eFdACjcDM2Uo7LPWPgteG5eQO148kN9bkoBsOWzObaM=; b=ZJ1DKY3kZP+TynZ1uC2Y/J+Y+y+YZjxk7CaR88SdCjUyaeTD1Grr46vEdF28+P1Iif 7doc5igDXfVNmacQrK+SJdqgBUhUtlz8Vh12rpK8JcDGp9CEM+h1Rn7YaZkqFNlMSzIs 4YSbWmsMvIWs6SORdQIyiU2obKpWZjDvsgGmHcJ6TTMA/dNxE0QHIf3URT1TCA2hEq9f M38HiC1ewNrinDLv2/7IdJG42yTpaE3vyoujM6Ci/i0KzqRMydEcdHn9SuLDwELIKCKS ccrpVAM4Otg5/0lQfUniqZO1eiG9mDMEcAaeL0jY5a2PE6awHG9WK7KF8/qXi/MauNOo YfCg== X-Forwarded-Encrypted: i=1; AJvYcCWNOq8QPUU91ktd84Iz6MXS6fMyMhNERX/hnG2o58dLUEB45IIZUH6Pv7+yNaL6H+Jx1T0pg87FxQNvTo9UO7vN1JaKO85RDcyuzwPU X-Gm-Message-State: AOJu0YzUyeA9wzonfFuhmZmCZQIN5ICkpU/jXWmbtZQlBpoQ4qwmNlAd ogQypTVy9pEk/sHRxIYCHu26EIG32bCv76AXxykIsiuK5wX2Epe2d7DxQSVJRPVnxSUndoP/2pF MRNv+KYPRQHgLqBFwBrVrwvxFqVbWqLq5R4fl6A== X-Received: by 2002:a05:690c:398:b0:61b:e1e8:9a2c with SMTP id bh24-20020a05690c039800b0061be1e89a2cmr10154543ywb.1.1714976366663; Sun, 05 May 2024 23:19:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501154251.3302887-1-dianders@chromium.org> <20240501084109.v3.8.I407b977f9508573103491df549dfaffc3688db13@changeid> In-Reply-To: <20240501084109.v3.8.I407b977f9508573103491df549dfaffc3688db13@changeid> From: Linus Walleij Date: Mon, 6 May 2024 08:19:15 +0200 Message-ID: Subject: Re: [PATCH v3 8/9] drm/panel: ili9882t: Don't use a table for initting panels To: Douglas Anderson Cc: dri-devel@lists.freedesktop.org, Jani Nikula , Dmitry Baryshkov , Cong Yang , Hsin-Yi Wang , Brian Norris , Sam Ravnborg , Neil Armstrong , Javier Martinez Canillas , Joel Selvaraj , lvzhaoxiong@huaqin.corp-partner.google.com, Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 1, 2024 at 5:43=E2=80=AFPM Douglas Anderson wrote: > Consensus on the mailing lists is that panels shouldn't use a table of > init commands but should instead use init functions. With the recently > introduced mipi_dsi_dcs_write_seq_multi() this is not only clean/easy > but also saves space. Measuring before/after this change: > > $ scripts/bloat-o-meter \ > .../before/panel-ilitek-ili9882t.ko \ > .../after/panel-ilitek-ili9882t.ko > add/remove: 3/2 grow/shrink: 0/2 up/down: 6834/-8177 (-1343) > Function old new delta > starry_ili9882t_init - 6152 +6152 > starry_ili9882t_init.d - 678 +678 > ili9882t_disable.d - 4 +4 > ili9882t_disable 260 228 -32 > ili9882t_prepare 540 396 -144 > .compoundliteral 681 - -681 > starry_ili9882t_init_cmd 7320 - -7320 > Total: Before=3D11928, After=3D10585, chg -11.26% > > Let's do the conversion. > > Since we're touching all the tables, let's also convert hex numbers to > lower case as per kernel conventions. > > Signed-off-by: Douglas Anderson Reviewed-by: Linus Walleij Thanks for doing this Doug, everything is starting to look much better after this series, and I hope we can keep Chromium display drivers looking this good going forward. Yours, Linus Walleij