Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1201166pxm; Thu, 3 Mar 2022 12:21:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTFw/tVkYNMWRfEEyjU/kC+KLxx4xtEtwiJVrnP70K+LGkZAb2dUTddRSm2/j0mbrjGvCk X-Received: by 2002:a50:f1c9:0:b0:415:a0f6:147d with SMTP id y9-20020a50f1c9000000b00415a0f6147dmr12103258edl.247.1646338899197; Thu, 03 Mar 2022 12:21:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646338899; cv=none; d=google.com; s=arc-20160816; b=fjAfB0GUjjLTsWjMILygEK14Zrb6hLKgCzHqfByv+NyMppGck7KJM57itwU7XoAr5m d1AEuDCdS3jbnQTF4GIa7VDmXygdOTcYwKOFEFVTDMkol8ZgibSFfX+Yjx+JQtMyfYHr r9gnc883cI7y3xLFInKXmBqiCZj9cM7XH6fdMKY5ZuJ4xrYVlvzKkQQib2IAAwzUbpb8 JP82UdfG0RRRZeDCNYsbPx7b73042ZTA+OgrXFp/m8jXBeFDoOmqfV+0pBOxaFtz7YlW fNM8smFq0eJ915gjk714rCCz1TzgoDG+LN2rYVfExsA0SZ76CdeVIhA1c/CfGFzsbZ7J /r/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LUNck2qOGIAZFIO08K9dH5K9dUeU/y3CCAiHWVsNaiU=; b=xy5WQqylzQK6bnw0H0Dk3JGChhInSgUTlioq+gHno2du8KoFY3C01a13JKt8KMoik1 tCo7NT26TLQKda6LemlL6gM/U1DpASvc8JEHTSAdYNBf4APuWWtyKc19rV52b79RKcdK uaiTtTExG806yyUS0egJmQvVhsMR4oEFLvahCIJB1/qkGjvE5vre+xjdBw2bnLEW7uO0 ZWJ/viZQtJS2s9fzUgiA5USKcX7EkrPwHGxYj5niNim5iNIa2GQAiQQhBlGCegLZ8n84 br1hnfWkFSwL8Rqjw5g/euT0AomXeHnv2zCQalhdEZfA0Y/BaNbL3fiW/A2+ArI8vQ+z WDmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kpcv05Ri; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp34-20020a1709071b2200b006da97712cf3si1263522ejc.753.2022.03.03.12.21.15; Thu, 03 Mar 2022 12:21:39 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Kpcv05Ri; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235639AbiCCSMg (ORCPT + 99 others); Thu, 3 Mar 2022 13:12:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235604AbiCCSMf (ORCPT ); Thu, 3 Mar 2022 13:12:35 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A68F41A3634 for ; Thu, 3 Mar 2022 10:11:49 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id k29-20020a05600c1c9d00b003817fdc0f00so3735346wms.4 for ; Thu, 03 Mar 2022 10:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=LUNck2qOGIAZFIO08K9dH5K9dUeU/y3CCAiHWVsNaiU=; b=Kpcv05RipLSXMkEJacI2qWUGB8DGkLunNPOKAp6q407QfQqPXVYLHuh3tJVflMHewP dw0VCX6cq4WM83I5HFN4btHcgUbdKj7KQDUNZKYwjxyfF2HD55eObICGoJao+rnzWtVd ZXhNnp9caIWT09rwqvnyT9j7SZz0zUZt2Hpbf8mjXHUEVYoKQlm2CW9oC685CVG4HedG 8JCNdi9JPUWR8pwtB294VW2E5MeQ4N2LCElCVvGUrnme7/IHs6uwSEghbydoBp4+74Ek x7735I3+orSjIhv48+JSmAWzwG36r8JqpjknG3FDuLbq9QxxBnrIsUlbF5fgog54XVja QN+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=LUNck2qOGIAZFIO08K9dH5K9dUeU/y3CCAiHWVsNaiU=; b=r3M7w9o0EdvU3OzdiGXnmjQZmogQtwiVdE1qluyWInN9sg8VAAjelbyZ/PUVSo4JPS RGWiqszrbESi9kpSIrmOR7rqByIvn21oH/t0gCO6RbqSPBg8H41ZU5b5oaicmdXmv2/R YOnBE80ku+gxW8/AxMJLw5jtPz98yD43Z1yS6eukEHV7LDsKA7VesHHFv3UE4GHrkUQS 2sNdu5JASPun8pY2BY03bT6st2ECFGRFzX9JnfkFKHLiKbdZ7pbzpiav5MzsyzTFLf4W idKohQbkWk1ipDnx9B5Youl6L4i33QkYeBGFqpBLBDUEvN+a7rBzCrCgDrsLDJdQJBRU vSug== X-Gm-Message-State: AOAM5319Pww289WO/N+6AeWjKnzOUWoWcpIWlVWBHdlG0rMDDPtxLZ// LhiP0lR7QpK/S3f7PbqtDM8= X-Received: by 2002:a7b:c455:0:b0:380:a646:eb0e with SMTP id l21-20020a7bc455000000b00380a646eb0emr4675939wmi.170.1646331108203; Thu, 03 Mar 2022 10:11:48 -0800 (PST) Received: from elementary ([94.73.33.246]) by smtp.gmail.com with ESMTPSA id f8-20020a05600c4e8800b00380ee4a78fdsm3696436wmq.4.2022.03.03.10.11.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 10:11:47 -0800 (PST) Date: Thu, 3 Mar 2022 19:11:46 +0100 From: =?iso-8859-1?Q?Jos=E9_Exp=F3sito?= To: Sam Ravnborg Cc: tomba@kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, maxime@cerno.tech Subject: Re: [PATCH] drm/omap: switch to drm_of_find_panel_or_bridge Message-ID: <20220303181146.GA330174@elementary> References: <20220220195212.1129437-1-jose.exposito89@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sun, Feb 20, 2022 at 10:36:35PM +0100, Sam Ravnborg wrote: > Hi Jos?, > > On Sun, Feb 20, 2022 at 08:52:12PM +0100, Jos? Exp?sito wrote: > > Use the "drm_of_find_panel_or_bridge" function instead of a custom > > version of it to reduce the boilerplate. > Thanks for looking into this. Hi Sam, Thanks for your quick review, and sorry for the error in my patch. I thought my toolchain was properly configured, but it wasn't and I missed an include: #include +#include #include I apologize for the mistake. > From the documentation of drm_of_find_panel_or_bridge(): > > * This function is deprecated and should not be used in new drivers. Use > * devm_drm_of_get_bridge() instead. > > Are you OK to give this a second try with the above referenced function? > > There is a good chance the deprecation happened after you looked into > this first, sometimes things moves fast in the drm sub-system. > > Sam I'm getting started in the DRM subsystem, so I might have overlooked a function, but I think that in this case, since we need to store the panel in "out->panel" we can not use "devm_drm_of_get_bridge". "devm_drm_of_get_bridge" returns the bridge and I didn't find a way to access the panel from it... But as I mentioned, I probably overlooked the required function or pointer. Thanks again for your review, Jose