Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp901621pxt; Thu, 5 Aug 2021 14:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyElKV4jsWpotWb5NFUzhz1myC16rSjt/EoxE20L1UonQD3jFJ0ZGoUBCyZoQDN1EsLFC/ X-Received: by 2002:a05:6402:3507:: with SMTP id b7mr9318989edd.293.1628200049179; Thu, 05 Aug 2021 14:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628200049; cv=none; d=google.com; s=arc-20160816; b=eIuGaCxn5/EYWDsHgakiFuESAPkVAb80VE7McDmuvWX7q0+awu3O/sWZewLDMozrZz g305Eh08LVHczyGgFFlj6q40QyAjxGdudt17hZCuZC1oRoJiK4DYxAX0u+DcZRROm1Y7 kZt0FysDUajn7RDwazQ7vqU9h/cQecHacSHPACSaURr1efMCkaVck8jUfe0IaC1tipnJ kwJ4GCz0um0o0jb5T8mQRfL7GlKto8PcsxKL4Ji3UBYdxezNeMNyoHY2K6ofFLH7ytBS C+7Hh6j4sLJoDAMgNAQc77jBTamUM0XCcDhCgkG/Xz1bC7Vkg5r8F+nrQaxpXUe+nzs3 52QA== 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=gjsfNCUHDF2l128sssKavdGD8G0WYEjRlXid67kgpQE=; b=XWf0csSSRSAyKL/O9pR1i7gGzD4SyB0CG6h4T3ms1P4yYwHOsviQ9+TJ2iVq/fZ3Ce 3YS2kfttDckBrDWxpJNG0EVTdc9iCFokuC9ExCghStkiAIRSPKRcWlSBRFkHPZxuH3dx hZakmCZuioKmZCtjI26v89OXzoRluI4ChrqGTIag1CJ8auhfGxHaeB6HX2YX89Zyxb3Q s4V6FZ7kO0iYVjZwhnHzf4VP4ohhUwzI3LNHz0Etoht+EKYQIlcPfCUGvFKUjjdi2C+F 7k+lH8aTCo0a8ecYh6Gxiu0Xb8DfBo0k4NHGEwErtLf9OX1Cd+v5rlS4fgkjhchjtCZ4 ULng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E5dkRMn1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si6679378edt.249.2021.08.05.14.47.05; Thu, 05 Aug 2021 14:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E5dkRMn1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241705AbhHEVHA (ORCPT + 99 others); Thu, 5 Aug 2021 17:07:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241555AbhHEVHA (ORCPT ); Thu, 5 Aug 2021 17:07:00 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EF3BC061799 for ; Thu, 5 Aug 2021 14:06:44 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id y34so13667590lfa.8 for ; Thu, 05 Aug 2021 14:06:44 -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=gjsfNCUHDF2l128sssKavdGD8G0WYEjRlXid67kgpQE=; b=E5dkRMn1u1x4oHRzSK8ctsaIs1Y8FaUyF1l2yBxY0aejO82HvzfgtGuQGpSbmTzGCk kWhXg4Wqsd0OkPJJL/SKWSQxgwLgahoZkCGnZanZm73yyCBeWKcsAncBkun/BGz+JU5q RHeFdEVRPp/5g/sJMpgU6kaE5EjRbJEnbSh97ikKLyY+aTn4k+8UHgSTEpHh2ko/fYFW fJZ0KRg31OUELKj0RUlG6RZr+fE4+1FTJekYo+OZJxahEdutd6OpbpGXzn6moKRC23/L m0KABb2OdH4xnmHuBn5lUvw/1BE6jlGen/jmSM0gs1THeBC+Qo0ezE/Ckek1qn3qKdxU dm7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gjsfNCUHDF2l128sssKavdGD8G0WYEjRlXid67kgpQE=; b=s0mcxuaY0TnAxbDNEGRoj6rNIxNbFek8mZxbyMAVoM82ehTu8rL0gkfpyO+erapzqE vfXkwudP21PDf86qqxXtCArc7mQUM3SH4/euABwc0gjYk24qLPloyq/upIC7OHtaeOLO E93O6BrGT1Ovo2hp3hK1XBnRV6UCXdm0d3ZXCtbvTCOgQRiJIzGjuy3m/rpUJaAAZdRU PWT9jhe+3Mc+62aCaciSI+XsqmYziwOkLaggctw0dcRfyAnQXdCSwwmG2S6i5Xajiw2V dpUFBCi5VxZP+/mFNjSbIouZO44VIicSXOWvv4lkziHprSK6JZ7hQqVOJskp/cENMUxM 06jQ== X-Gm-Message-State: AOAM5319HrHoLBaDkqjRymwYEypN7OeAN1TlXnuWpiHToR1Cpiwf7tby 0uhLlrGW1LglBK3AVxoWyPuSsK0za5FVLAEGNtsslw== X-Received: by 2002:a19:7b14:: with SMTP id w20mr5150929lfc.29.1628197602250; Thu, 05 Aug 2021 14:06:42 -0700 (PDT) MIME-Version: 1.0 References: <20210805133343.27032-1-markuss.broks@gmail.com> <20210805133343.27032-3-markuss.broks@gmail.com> In-Reply-To: <20210805133343.27032-3-markuss.broks@gmail.com> From: Linus Walleij Date: Thu, 5 Aug 2021 23:06:30 +0200 Message-ID: Subject: Re: [PATCH 2/2] drm/panel: s6d27a1: Add driver for Samsung S6D27A1 display panel To: Markuss Broks Cc: linux-kernel , phone-devel@vger.kernel.org, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Markuss, sorry for reacting so late! On Thu, Aug 5, 2021 at 3:36 PM Markuss Broks wrote: > +#define s6d27a1_command(ctx, cmd, seq...) \ > +({ \ > + struct mipi_dbi *dbi = &ctx->dbi; \ > + int ret; \ > + ret = mipi_dbi_command(dbi, cmd, seq); \ > + if (ret) { \ > + dev_err(ctx->dev, "failure in writing command %02x\n", cmd); \ > + } \ > +}) You don't need this wrapper anymore, just call mipi_dbi_command() directly everywhere you use s6d27a1_command(). Because I merged this patch: https://cgit.freedesktop.org/drm/drm-misc/commit/include/drm/drm_mipi_dbi.h?id=3f5aa5ac0b0f9704f0c60f5fbbbcdc8c043d6eb6 Yours, Linus Walleij