Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3048842pxv; Mon, 12 Jul 2021 08:07:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMx6cLRn6aVdvbeVqW2/m9IaSjY87UJq8I29epaN/h2TWqXcxiftSNhkk/pqVOX4PLw0Lw X-Received: by 2002:a05:6e02:194e:: with SMTP id x14mr36061737ilu.75.1626102438215; Mon, 12 Jul 2021 08:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626102438; cv=none; d=google.com; s=arc-20160816; b=MSZlHSmPPfCiEZNFpwkJvc89PciswBKTZKnpJRpknLdK4uzb71NKmNGdXunblctuIO bob2HTIUHNrXvDIXvfCioQnxKBm3A+O0uUXY6HhL8HQLhew1UrWMQZTJVNc8z8JewXPZ Meea2N8HVUGIqiIHJ6DRADaIZ7nqTxG0YdFuuAo9c0P9VOPvpu7s10Ke2pD7vtuxCViV Z6TEJ50Stnu41/0y8ZWL0paqjqSWww3eGZpQLVo3r/3u+uOUYAgr+868oX+gmmj79qzW qUSpRbEIPnulfZtljU4iN5MFRgR2bMosrVHsDBvSyoZbVsMKFDJEi7wWo69ylMa49dYW iFpQ== 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=G9baPyoe19aSY4gVB/3oWJMLdAbb4C4qxIoTSkRWfKs=; b=0eXUPyb22A9Skh8nH4rv+XQl4rrJ3XAPRwdv2KCmfXznA1oJ/uNzMfyViOGM8aVi2f EUgFi6bVokW2Xp4c1c7bLkcQyev2W8z8XTt/Stv208I8CgJ/5u6WumD1h19EwJ8tOrAK pGS/KvxEQ8d9Uku5ujyhdaJYxjxBf/HhJot6+SGAsCKoptu4lhBAy8+yM/phd9tqCmNF DhhbWJ8Om34z+8outlfW0MgUiIC3ESdbqbEBqmzsMjNxRVl5T/a/aGsFNDljFuWkNXkL VTHJ26g32R4Fihu1mXf3nWpn1mHWv4eQiKk7pThNwqWKEeGqifdhs5VbPTIkVmPDeVu1 Y4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fidzIvRN; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si19624487jap.105.2021.07.12.08.07.06; Mon, 12 Jul 2021 08:07:18 -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=@chromium.org header.s=google header.b=fidzIvRN; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235314AbhGLPJP (ORCPT + 99 others); Mon, 12 Jul 2021 11:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235271AbhGLPJP (ORCPT ); Mon, 12 Jul 2021 11:09:15 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8CACC0613DD for ; Mon, 12 Jul 2021 08:06:25 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id z25so11369718qto.12 for ; Mon, 12 Jul 2021 08:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G9baPyoe19aSY4gVB/3oWJMLdAbb4C4qxIoTSkRWfKs=; b=fidzIvRNZBVUP6B/wA+TNckKJdtJ2HpsB1mzlLN7JAky5Ot74bN92JSMLxrLzKzeii YiD5iB6nv8GuuasMmsdQnfr41naE74briTafCcpO5TLXEpLSvNgHGU7nJj0YreVHLLhx N26O5dgEWa36eceGc7lm6KtBS3TOObj6FmlJg= 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=G9baPyoe19aSY4gVB/3oWJMLdAbb4C4qxIoTSkRWfKs=; b=ugVRR1uTSEeeHWtvzgwE0xIvUDOaP8JVvpew0ttfIXkc22tna6Jvld20jDoDkP1vMF 81lfr4MX9A83Qct+1IITfrxlB8BtfnUxairLsWpqetueI1fNpVeAvs+Ey5LZvg3s9lRF VIKWApASYjNLfUww61Nf+R3ZeYEsKYIEIfVpvJZB5pJ5/KeZSvR+LKnTCPbmzqxqFFHp DiEB3k85L75QCsMZs24fZ5R0cunhkWc7Trrd8kiSnHKLpUAo5wQur2GDAZxngm0P0mzX 5GqwaGbryvauB4fB7eGTtXuBKiA7qn6Q2KYuAu5CidIGebxujVkSOo3AlLXp2DaYBDpX hfMA== X-Gm-Message-State: AOAM531TxQFxSl5jN6tgZksFqpD0Ij3NpV2c8pVF7cF5oFgF2LS/k1NK EIYVYuGEQAqmKs4PfRr0HmwEIzXjllKn2Q== X-Received: by 2002:ac8:147:: with SMTP id f7mr931961qtg.350.1626102384968; Mon, 12 Jul 2021 08:06:24 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id n184sm6602370qkb.22.2021.07.12.08.06.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jul 2021 08:06:23 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id g19so29486322ybe.11 for ; Mon, 12 Jul 2021 08:06:23 -0700 (PDT) X-Received: by 2002:a25:80d4:: with SMTP id c20mr65334614ybm.345.1626102382992; Mon, 12 Jul 2021 08:06:22 -0700 (PDT) MIME-Version: 1.0 References: <20210709152909.1.I23eb4cc5a680341e7b3e791632a635566fa5806a@changeid> <67ff22da55104dda57a0015e073cdfcc@codeaurora.org> In-Reply-To: <67ff22da55104dda57a0015e073cdfcc@codeaurora.org> From: Doug Anderson Date: Mon, 12 Jul 2021 08:06:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/dp: Move panel DP AUX backlight support to drm_dp_helper To: Rajeev Nandan Cc: Lyude Paul , Laurent Pinchart , Robert Foss , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sam Ravnborg , Thierry Reding , Thomas Zimmermann , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Jul 10, 2021 at 3:29 AM wrote: > > > @@ -209,18 +208,11 @@ static inline int > > of_drm_get_panel_orientation(const struct device_node *np, > > #if IS_ENABLED(CONFIG_DRM_PANEL) && > > (IS_BUILTIN(CONFIG_BACKLIGHT_CLASS_DEVICE) || \ > > (IS_MODULE(CONFIG_DRM) && IS_MODULE(CONFIG_BACKLIGHT_CLASS_DEVICE))) > > Thanks, for the fix. Changes look good to me. I checked this on Trogdor > Lazor device. > > I have one small doubt, shouldn't we add above (or similar) check around > drm_panel_dp_aux_backlight() in drm_dp_helper source & header files? > This function is using devm_backlight_device_register() that needs > CONFIG_BACKLIGHT_CLASS_DEVICE for compilation. > > If that's not an issue, > Reviewed-by: Rajeev Nandan Indeed you are correct. I tried trying off the CONFIG_BACKLIGHT_CLASS_DEVICE and it was unhappy. I've posted a v2 which I think fixes this [1]. I left your review tag off to give you a chance to confirm I didn't goof anything else up in the v2. Thanks! [1] https://lore.kernel.org/lkml/20210712075933.v2.1.I23eb4cc5a680341e7b3e791632a635566fa5806a@changeid/ -Doug