Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5428712ioo; Wed, 1 Jun 2022 05:30:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypmVjX46fHrCxNxJvfSfn+Pcm900ZTTZA2kzAvcF8eK3T7k8YMhMuRSFofKJmAZbBPuD+N X-Received: by 2002:aa7:dd48:0:b0:42a:f46f:6b0d with SMTP id o8-20020aa7dd48000000b0042af46f6b0dmr68861264edw.406.1654086625277; Wed, 01 Jun 2022 05:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654086625; cv=none; d=google.com; s=arc-20160816; b=RLaeifkoUrGgOEXf1NVBJzjFEfn5wyiAl4kB0aAg4yX/jEb/5/0JL7lvPal2AVcmbF FHSqPpUPRwaJr2u1ci8Avyq/J1d9ROKGpbGBaIIxtGYGovjFhZT810jMt7PrUi/kJwma rTfvxvCCg8NrI14cWAd5o4AXSKx3RsMgdDtwuKapX8SMaUQ85EvsLI3OQsbvfdnIfjaI COb/bDrPHFLo5Fy6GlyC8nui3QqkBjaj+myIit3IUWzBMVDaJezBsLm0SaFVxWSRTmWd TOCMSNfigwcdTJUk2CoESsZdOyA2zr+rgPCzgYN0a40ti6NNYD0BpFPfvJxsXWGbwpIq za+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=owik/ERIKQ/Xn0y08fcg1q8jOY8cbMmZRyuaUyU18sA=; b=C2iGNPX8ifubBBS6jnJ+BNbVqTzpPo5q0Mw0F2cvzQNnxrvW9ptmMSXF88nWKhL+Hz 4EYeVA8Y6Rbz2i6Yh50cuyCsxrYxPN4x/fvgX5xK/BAKawGueQ21zo+/GKxpqPYfJKeo N2ZntQJ3D+E0YD7Gs8lkW5rvpXJY7V2T42wrwf84GLmYxM21HnSsfvirnE8CtqEqxq2K 1RgAlamXsiQ3wbfAuM9Q2wtqu4bCQ/4BePhI6vPldPWa/NRbGqom/5nlXNP4prgydGQA +6XjEZaqPaamOddptn37W/tAp/XoFpfYT2lrOpr4hpVo9+ns30sNX9KxWR+aqiJZGgjL oWpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lQQ96cMx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a056402254a00b0042dbc78dfe0si1678578edb.612.2022.06.01.05.29.59; Wed, 01 Jun 2022 05:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lQQ96cMx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244953AbiEaJkb (ORCPT + 99 others); Tue, 31 May 2022 05:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245350AbiEaJjz (ORCPT ); Tue, 31 May 2022 05:39:55 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8036392D16 for ; Tue, 31 May 2022 02:39:50 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id l204so12230314ybf.10 for ; Tue, 31 May 2022 02:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=owik/ERIKQ/Xn0y08fcg1q8jOY8cbMmZRyuaUyU18sA=; b=lQQ96cMxOA4G9iVLjQ4z6e2m7ZJQpJFgBxCrdGn/ioTtmBrwPLWuH5n8fDoP8/GAlq WrFsT2wBmih+5WcNUVwYVfUuC3xdE/uwnVd7D9zQybSFIJu8Yn+KkYCM9mOfy5e2WHit 7YyYNk6XvJpPs7ZcV/IJHCWxPpXQ+vP7mBOAe8jIu6TneEQW0ha6Z4LKRQ0dSXpWZPno Sx42g/lk+HqSaAAeF9geGAOlGAA/i8HoBxIUZH9O37RvveMM9nozLDC4p8bMfbS1+8Is ILFHFv1n18ekK70DyNN4VL8spINVIQ/A4NZWL+0C49tdaEDoVVkpOznurGQzq4Wzgr93 11bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=owik/ERIKQ/Xn0y08fcg1q8jOY8cbMmZRyuaUyU18sA=; b=rgy0jP+1k3GJHe06ofwIjaw08AqSIVqjQNMclVkfzE6TMLf8ThjlrkBak3Ecwyha7U +KIQw42ET5iEtkHRYADPhAp/9y8P81ofTF36jNekxuL3mFqfAiEScWiwAMSLQjBx4TbW aVzDvMbQYKQ4/+d6RKMiX8KwC/jFHgIFvP2E3USg0cKMJU8jMER2XcgyWwq1lSWyFCv5 +GxJHK1KNIzGj9myRmhN05cwXbQLSnO9bibw5cn5UhMqWbly8GVhdaX1BEktDHcLoVZQ CixgqI3R2F0nSC2vrm3OfKVhRxpZhOzmMw8AMZavIfYpICNu1WcsRLAXkA8XQQALej10 tCAw== X-Gm-Message-State: AOAM531kchSBquAd+xj1jZXnJoSx6WCHJta2CAGVInBgRgFFqkRuAFoB K8uDqhoFk1B72FmPAjD6w4lBmo5SBtIdPr3z2QFlng== X-Received: by 2002:a25:df50:0:b0:65c:e053:3449 with SMTP id w77-20020a25df50000000b0065ce0533449mr9534101ybg.291.1653989989529; Tue, 31 May 2022 02:39:49 -0700 (PDT) MIME-Version: 1.0 References: <20220530160753.100892-1-jo@jsfamily.in> In-Reply-To: From: Linus Walleij Date: Tue, 31 May 2022 11:39:38 +0200 Message-ID: Subject: Re: [PATCH v3 3/3] drm/panel: introduce ebbg,ft8719 panel To: Joel Selvaraj Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Stanislav Jakubek , Shawn Guo , Krzysztof Kozlowski , Corentin Labbe , Hao Fang , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joel, On Mon, May 30, 2022 at 6:08 PM Joel Selvaraj wrote: > +#define dsi_dcs_write_seq(dsi, cmd, seq...) do { \ Please name it mipi_dsi_dcs_write_seq() and... > + static const u8 d[] = { cmd, seq }; \ > + struct device *dev = &dsi->dev; \ > + int ret; \ > + ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \ > + if (ret < 0) { \ > + dev_err_ratelimited(dev, "sending command %#02x failed: %d\n", cmd, ret); \ > + return ret; \ > + } \ > + } while (0) My suggestion was to add this macro to include/drm/drm_mipi_dsi.h, just patch it in there under the other mipi_dsi_dcs_* functions. I think a few other drivers could make good use of this macro. Yours, Linus Walleij