Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4663289rwd; Tue, 23 May 2023 10:35:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6i84N9yYi8GHzf7PpIw6WlOphL8uMlsKkA5DN8bzZ9LXhxBuRJf76BdVWUNlbpKxWZuyCo X-Received: by 2002:a05:6a00:2daa:b0:64d:746b:b4ec with SMTP id fb42-20020a056a002daa00b0064d746bb4ecmr8300168pfb.17.1684863311339; Tue, 23 May 2023 10:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684863311; cv=none; d=google.com; s=arc-20160816; b=EB1dXzVMheU680uw6NS58hCdHiU/QwZ8Erd8k2ZyRFd0wSqF9eoPRNUftvEDkSAdvm IeDH2CywbwAlJ/zVX58ldmmMDeV1r6y3KnoOLWPAg761vFcNsH7r6hkr6YHlt5Ueq9kF 3wo9VrN02/LUHN6JA2nreJCaNlTRo2BhpAdYxAkDtUg39fliHbnxGmfyfklhTvt2ZOUb UDPWf+qBRuFOJHDb6QdrB3UYGe2vSCrnwtwow3tkrqxq+fJVE6sZmxdMw59z/V4iUz2E ZQkicNGzlBw5X7A/2YeEC+rLcpWPFfu0y8ZPFNjLl3mi5sBjmjqMzrNC+UWro5l1i/kE MHnw== 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=vCJa6a9Ra0P6pgbG0lhDXLRP41OI9WKqV43rqziMdQ8=; b=Bbj/ZMQwD8D0y/a44W0HP1TsFgwE/yjl66ri4/YreKFTmfP0ZFov5l3J+BP7IWpIFm ixyBgwOeED6IMjkMgpoZ7PUdV1Yj8fAlByE0kYHld0JA+t0z5dNS51VmSHFjlq2Rp0Aa P7IZonjX4xtffXrM5wnIA4eDmYoTEBi/o1YzoH0Mzx8xG0u9XP31jyNIwnoK+LbtkOhW rq9fsAI10sjwoayF4riI+tDJI+Ti/n9QlLyLE9SU3Vc/RUyWvQE+o7VSvX7p1KnUGZhX yAj0Zm2Jsc75II6zywz0/6cy42wMReS9GDWLkWrdAcx37Y163Fo2JhVyBBOadhguPnkJ W10Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ve1uZ4uz; 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 f7-20020aa79687000000b0064d3cf07fdcsi5328632pfk.88.2023.05.23.10.34.56; Tue, 23 May 2023 10:35: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=ve1uZ4uz; 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 S234222AbjEWRbl (ORCPT + 99 others); Tue, 23 May 2023 13:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238083AbjEWRb3 (ORCPT ); Tue, 23 May 2023 13:31:29 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF38E42 for ; Tue, 23 May 2023 10:31:05 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-56187339d6eso97747997b3.2 for ; Tue, 23 May 2023 10:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684863056; x=1687455056; 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=vCJa6a9Ra0P6pgbG0lhDXLRP41OI9WKqV43rqziMdQ8=; b=ve1uZ4uzbxpWqFdZAeBe4akBPIsstn7rc643BsI62tzmJXzN0UOAQSh5WDvBcvmdnr 4pV3C7ImiPfdiT5O8+w4pLLfV7EhcM4tQRCmcnsmHEDN9yPvXiH92r0sJS0HOtJORZDc kCN1qKjbRje3eM2FnszyLZoJjdx/8dXklM6BY9pO/hFXprIpQLpMayP7eE5dEd0p0xlq lLNWO/y+pbHTNIfNsUWJKOjQM0fcJafjd0pXCAio2y+poeMOyVoD7i+9POdcOKaH1bhK KsWqH76g8SZBwXRRDvw8Rt/ohdLjozmCKIJp5KKJAjXAHPN7ladD5eZs2KQqPCj8i8NJ Javg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684863056; x=1687455056; 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=vCJa6a9Ra0P6pgbG0lhDXLRP41OI9WKqV43rqziMdQ8=; b=awwHh7Q5LnmDEi3WlKIvPVQR5WNac8KekJ4OFKDsO+rgj1G+cZVVF8xrD2xUF3aBWT ce73HQNgrc3zcojIclvPjcKNzzqQPYjArAL6RdCxYSIVlQWsSD0C/vHjGHVZV7ustS54 ineHeMiHOA0urYldMSV/PpC6Tz2BR+nwhtaUcJGspdZNlMcMHWmYco4e1pzFjWNuuSaM 2ERlHBiNLA3gACyNzrCgUM4E0rN22DaJ4joUGa0cWQ3YfdhAnATVIxH/BwZqYsU6aJ8y 37mCoXJLOprYEe71gv1NfYKpXm+fbbwQi5MfinvvMDlIn956fCyfkiVnHQpG1bOFwce3 K1rA== X-Gm-Message-State: AC+VfDxOywXnbx5MGr1kZOq0dv694JDqPaPiCsIhDoiyu69NllsCmf/P O+cCzgT8L/lzh2burs2uZbkh78/e9noHAY392YjgLg== X-Received: by 2002:a0d:eb0e:0:b0:55a:72f6:a451 with SMTP id u14-20020a0deb0e000000b0055a72f6a451mr12125650ywe.41.1684863056089; Tue, 23 May 2023 10:30:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Tue, 23 May 2023 19:30:44 +0200 Message-ID: Subject: Re: drm/panel: Add panel-mipi-dsi-bringup To: =?UTF-8?B?UGF1bG8gUGF2YcSNacSH?= Cc: "daniel@ffwll.ch" , "airlied@gmail.com" , sam@ravnborg.org, "neil.armstrong@linaro.org" , dri-devel@lists.freedesktop.org, linux-kernel@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 Tue, May 16, 2023 at 9:52=E2=80=AFAM Paulo Pava=C4=8Di=C4=87 wrote: > From 118419935002e076b44292c832e9b26106f93c89 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Paulo=3D20Pava=3DC4=3D8Di=3DC4=3D87?=3D > Date: Fri, 12 May 2023 17:38:29 +0200 > Subject: [PATCH] drm/panel: add panel-mipi-dsi-bringup driver > MIME-Version: 1.0 > Content-Type: text/plain; charset=3DUTF-8 > Content-Transfer-Encoding: 8bit This header is really mangled. I wonder what happened? > +//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 value)\n", \ > + ret, d); \ > + } = \ > + } This is reinventing mipi_dsi_generic_write_seq() from so use that instead. > +static void brup_panel_fannal_c3004_enable_function(struct > mipi_dsi_device *dsi) Doesn't look like a good name for a generic function? > + WRITE_DSI(dsi, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x13); Use mipi_dsi_generic_write_seq() I suppose these review comments go fo rthe c3004 driver too. Yours, Linus Walleij