Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4673244rwd; Tue, 23 May 2023 10:45:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zRG0ffFiplJ9ha/rENBFBNQ2JTi4/7qNGemEyuqaUq6OklA6nFGOxFRsegvbayQ6UmF7f X-Received: by 2002:a17:902:8e85:b0:1ae:8d2f:5a48 with SMTP id bg5-20020a1709028e8500b001ae8d2f5a48mr10195277plb.41.1684863911964; Tue, 23 May 2023 10:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684863911; cv=none; d=google.com; s=arc-20160816; b=uazIc1n7QoRqayVXjC02rB58gPyu1LXqoHTIkflReFe213+xkNzih5E0FCXePyXtFb UPECwPZfZQv740Engd6P73XZT6QhEKx710P9x8tsMAdepAZx0lY0dqdzldv+cZ1LtfEM COThWmOxCTyOF5UQA3Yg9lxZ+B8abdlLpBQ6AfI2UziIB/2mYU1DpYj5d+PakxDp0x+0 /tqhFJm774Aob4jVGllewFxCaf6g7hiXmUkkcFeFHzMyP7ls7Md9ez465sfoYRQIt02D zVX63gCd+YDGR3IsqRZ58YMFbrpXs4pQb2yT8t0HMrwqKvuudUxXeLIH0RlYE2s6VApg Y+BA== 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=lxJT2l9AQiSzolKv87z4T+nj/6Voqeaq5rKuGn4L58s=; b=vQkYJjzEQxBTtd5GGiTyU+mk9VnL2nCnHgZicbqWfB0SOlhpc69KiV4jyxQG9oZgN3 H4G0XrJRvAcHhokYTXv3NC1srVpTlAg2cMc+V3j2A62G6evU5XaaD9VCAEYxKvQbADCW u812DnEtN9kElaVT/Q4L6OSLbcJP32pJHZUnW6jdG6lIBtAckLSJhNqKm2sfbPX9DoFF Bkqb4qkjFPP/Ku4oYakVvVHt5IJjXWUSkx+xsHkpNo1uP+66TsYtEmd/aq4NicZFvNN+ 8b4sQ8CMj9dPPr9OUq3lIJyPjctlaPZolAXUhg2ME0xo9z6gVCGkS61BCjezLs0bu2HG hg0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NszQYt8L; 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 z7-20020a170903018700b001a6dfb34f8csi1919431plg.305.2023.05.23.10.44.59; Tue, 23 May 2023 10:45:11 -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=NszQYt8L; 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 S237960AbjEWReS (ORCPT + 99 others); Tue, 23 May 2023 13:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237742AbjEWReQ (ORCPT ); Tue, 23 May 2023 13:34:16 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FAC61A4 for ; Tue, 23 May 2023 10:33:52 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-babb985f9c8so7605739276.1 for ; Tue, 23 May 2023 10:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684863228; x=1687455228; 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=lxJT2l9AQiSzolKv87z4T+nj/6Voqeaq5rKuGn4L58s=; b=NszQYt8L7vYkm2To4A082HXzf99FoYGffUy1WJs0IxDiKVOBKNIZF4LS8bzJP4U9Xb FsbiTsVNDdLLO9Of0VWtDdM9HjmJ8Fa0XOqMUAkOVIdCF9F9+SGWpxExplm0xqL+eVeR n1QcsrICYT3cFla8/FwSnnDBvbshHMlOilkW8bkXqFbv2/EgaolJPeOD9816GfD7BerT X+l2GmVnc+Rf/e8zNFVSRWCvASTB1ECiX5BE3ROF8deLdC5sOaLrZC6p4pSjtFYSYQxv TJ8D9YPiDGYxcvy97IVEBRWhnZ+uI32T3E8TRAB96y0E3fA2QkewP+VJ0ckw2nIlRBeP 2IEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684863228; x=1687455228; 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=lxJT2l9AQiSzolKv87z4T+nj/6Voqeaq5rKuGn4L58s=; b=bTVqtEICfM9eFlTHTV1DOoogaOCe0NLgDPeXivgExQXyjcWzdoOLttisUWhaAQrzRU tZdN5GEP19AZqtKOtHymlVL3Q74hcIcBVyOC2ITbVhmvoqn3Gxwv4YKvxC1F5LfZI5dW Cz6ptNHcLboplUHFdi3EGTMi9Ayx957jjRH56uESHJCPVvUMGpXmIME6iYBTLOax18XG rswakgflzVl4eCoG8yIlNn5boO7oBWgaPN2LV4uC8h5gLeoSQ729Mx4QDC67C0Y4sctN DP3bEb8JhE9x3/9wkHATiIU0Ft6Qz7e8sdBOyVpIne+dWoJt6Z3KeJGAwBJdZmlqlwZr wBCg== X-Gm-Message-State: AC+VfDzmeh8TShmGRkg6lQq89gl1+7N/yiU5R3kQHY+Kw6FXLTSbL+5m 2/XnTW7ehhRxEFlXSNW2zn2YpWlXRVkxhtHBWTsC0A== X-Received: by 2002:a25:541:0:b0:bab:534f:d8a4 with SMTP id 62-20020a250541000000b00bab534fd8a4mr14934833ybf.55.1684863228586; Tue, 23 May 2023 10:33:48 -0700 (PDT) MIME-Version: 1.0 References: <20230519142456.2588145-1-pavacic.p@gmail.com> <20230519142456.2588145-3-pavacic.p@gmail.com> In-Reply-To: <20230519142456.2588145-3-pavacic.p@gmail.com> From: Linus Walleij Date: Tue, 23 May 2023 19:33:37 +0200 Message-ID: Subject: Re: [PATCH 2/2] drm/panel-fannal-c3004: Add fannal c3004 DSI panel To: Paulo Pavacic Cc: neil.armstrong@linaro.org, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,URIBL_BLOCKED autolearn=ham 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 On Fri, May 19, 2023 at 4:25=E2=80=AFPM Paulo Pavacic = wrote: > +//macro for writing to DSI > +#define WRITE_DSI(dsi, seq...) = \ > + { = \ > + const u8 d[] =3D { seq }; = \ > + int ret =3D mipi_dsi_generic_write(dsi, d, ARRAY_SIZE(d))= ; \ > + if (ret < 0) { = \ > + dev_err(&dsi->dev, = \ > + "Error (%d) occurred while trying to" = \ > + " write MIPI DSI command: %s (decimal val= ue)\n", \ > + ret, d); = \ > + } = \ > + } As said for the other patch, this reinvents mipi_dsi_dcs_write_seq() so use that instead. mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x13); etc. Yours, Linus Walleij