Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1236145lqa; Mon, 29 Apr 2024 02:20:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD27fmrkFTMotuQo3XKiXG2oS9ovnOtHIv3OoefEgKpUAnIJm74NBQXGSTTafuzBs/xZv4cIbei1TC7ll77cgtU6QrjfEHsHXwjgmOgg== X-Google-Smtp-Source: AGHT+IF6vD8/Q4+7yZ1UlPBAeUIPzG4Y65C+MO6zH5q1q4eK0gkt3NFyH63On5dxqeEYy3lzaCQQ X-Received: by 2002:a05:6a00:188a:b0:6ed:21d5:fc2c with SMTP id x10-20020a056a00188a00b006ed21d5fc2cmr14793524pfh.26.1714382418795; Mon, 29 Apr 2024 02:20:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714382418; cv=pass; d=google.com; s=arc-20160816; b=QLQZblz3DI72wxF9wsL7v/In5WfyoMUnZBhhJ5c4WcKMnM6ht2syBs7uwtt45865Lg bUSus9CdaXLJZrMGBPs9jxP/htT/pjzHA0HBdPoN9eca5CFre4sC7WT5FWl9DleShkmo zMcrxBZmbB16yJO07RWCni52Bxq/OYe69Bu+MhbJL0HN2UIpq9F+rehmjejyMrq/612h RZh2m/ECMjg404/0JW/S32fJNqSFfl6OA5yJiylLq10Y6DEto+/NtPBa/i3G5Ubvr+Jt re2DW2VNKHPDQ0Qrnxkd958vG0L1F25E/PuDaQhWUKkWZMcIL0CSrQcyPTWbLDFTr8LE oglQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=c45HcQCx7KZMBzQE3GkVOjyYC/fg0KxPg1xKaPWja/4=; fh=ffLlMnZqW38MHejpuTa7hTo6rSg9MHy73dY4OPKIvQM=; b=TDd/fei3J6NAs+nANWdFFfGV1ZkfK9/vkhfpTlOwVhZ8PgXGdDeHrRsjR5cwmrjzjo YQf+3Yj+4vXsJSSKYrzSyowZpxgYg6kOM7PybNSpOo3i1PFKtbKed0lr4WTvBF6b5ZtD 6LjqsoICIF1uTYjFBv34zY8GFEJbn6lE/jT3q95pPd4TBh3I0d6X0oPZX8BqzI+YtNyT G4aNll4FB+7nG7DKw4tdPgV8kU6TqcKVfOETBYdDlkvV3JrA4U+GM/RkG1TQwTVta72X TeXGg5suh024Ep1d3dN/Omh6yVs6XUKSsjEvn6zdwq3B6n+fXOSLPj/1pU0CJVmLEi89 Wj+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JeBcUTjG; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q19-20020a056a00085300b006eae33e2aa5si19653583pfk.401.2024.04.29.02.20.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JeBcUTjG; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 DFC54282DAB for ; Mon, 29 Apr 2024 09:20:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 154E6208D1; Mon, 29 Apr 2024 09:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JeBcUTjG" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6F9112E7F for ; Mon, 29 Apr 2024 09:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714382412; cv=none; b=oMz/Gsc61VvWjo2DP7ya19+55iJjm6xVLl5U7yzKP3DsDkme8rnOAWHPINYP+HpQoCdk5NAopQS3WvcbLjrtDQTAPs4oTyCCPJyBTtPtnKpcJkG2tD53xAkol5yowIIV8krqv3WRZNjePYDJKLxDOMMcsUlXIN9qmZj1C6f1L8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714382412; c=relaxed/simple; bh=Y4bDuRSz6TSLz3mVCCjXzVCR5pym+nGoMR5ch9kpkR0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fxHvRsXVRKxsyrQWwLvCaUaIK0k5zis9IZ/LdED/Zg0ndthFdfknjxHWN9NNJTZzJiMfr5PcQ0ZHCLdYNpwGpmgojZLDbL+FXmA/8l5NnTAdJaP3kXueyoRjpT32gFtTXTkfV6bVCumUYuCffMSvPXvUb6wA78h3L90Pq1BUKuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=JeBcUTjG; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714382410; x=1745918410; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=Y4bDuRSz6TSLz3mVCCjXzVCR5pym+nGoMR5ch9kpkR0=; b=JeBcUTjG7BEFUqrncqvszHvEVjDqfNylQP6nYHEsy6FWZGmJd7T2IrzQ W4XK6g+fPRJrbZ2cDJYEhk63lfTBBIYh72lGjtGA+qb8l1lnO0U0whkom Q7/8sV7JYbLICwOnBQ+Hp5aualkd5wLK3ZTNXNwFN5qjadx0mDS+Gc4Nh ZMM1ajDTJQR9j5I+LVZwgIRTIECM5imPPIl1CaW4xt/OGn+LjZwRUA8pn OOr1DayFa0FxITbFqmfsxVWL65B7i4bt10L3sunib/5S7hQQevISIPpic vsd379jrfdxgX6KI4SKCA4btaMYipy2TQLPHHuV36202xbmdsa00OKXuR A==; X-CSE-ConnectionGUID: xsfdljZ4TlCj8U20W8hVlA== X-CSE-MsgGUID: mvrjThVnTnqEWWC1/MVZnw== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="9958800" X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="9958800" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 02:20:10 -0700 X-CSE-ConnectionGUID: whTviabCQ5apEoLo5b0/eQ== X-CSE-MsgGUID: dKioqKMaQBq/p9WyJJh/VQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="26461169" Received: from aantonov-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.49.167]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 02:20:02 -0700 From: Jani Nikula To: Douglas Anderson , dri-devel@lists.freedesktop.org Cc: Linus Walleij , lvzhaoxiong@huaqin.corp-partner.google.com, Hsin-Yi Wang , Javier Martinez Canillas , Neil Armstrong , Joel Selvaraj , Dmitry Baryshkov , Cong Yang , Sam Ravnborg , Douglas Anderson , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/8] drm/mipi-dsi: Reduce bloat and add funcs for cleaner init seqs In-Reply-To: <20240426235857.3870424-1-dianders@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240426235857.3870424-1-dianders@chromium.org> Date: Mon, 29 Apr 2024 12:20:00 +0300 Message-ID: <87jzkg4jb3.fsf@intel.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 On Fri, 26 Apr 2024, Douglas Anderson wrote: > The consensus of many DRM folks is that we want to move away from DSI > drivers defining tables of init commands. Instead, we want to move to > init functions that can use common DRM functions. The issue thus far > has been that using the macros mipi_dsi_generic_write_seq() and > mipi_dsi_dcs_write_seq() bloats the driver using them. > > While trying to solve bloat, we realized that the majority of the it > was easy to solve. This series solves the bloat for existing drivers > by moving the printout outside of the macro. > > During discussion of my v1 patch to fix the bloat [1], we also decided > that we really want to change the way that drivers deal with init > sequences to make it clearer. In addition to being cleaner, a side > effect of moving drivers to the new style reduces bloat _even more_. > > This series also contains a few minor fixes / cleanups that I found > along the way. FWIW, I like the general approach taken here. Thanks! BR, Jani. -- Jani Nikula, Intel