Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1650205ioo; Sun, 22 May 2022 23:01:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL+hoJajUhb1sKAdzMOgEr9yDuzfz4DaxfBLtEFWF7NlEHaFrJEGVM/xkkG2EfKCWWKUGq X-Received: by 2002:a17:903:2283:b0:161:d0c4:d420 with SMTP id b3-20020a170903228300b00161d0c4d420mr21543295plh.43.1653285701350; Sun, 22 May 2022 23:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285701; cv=none; d=google.com; s=arc-20160816; b=HR2hDXmatCPtUGt/Am64I7NSceQyMvi+6/TCLiGn50Ibgxm8pOOIqKZVaEOeaNsENQ 7Y7v4MSvABXtx417uoqh3eU9fMcMriosWec9kzqIfzgKmcuPpzQq8+CFCxjYBv6FT9Xy Y0WCefdsGjbXpk82lT4LJtiQ5A3ijUzxdJVQqkAZprbkhbp5QaJFDFJdDj0WXadiX/SP 97QGQB6VFqx8DHCYR5XUvQPlkxcgeJQWqUGOSDZY/du0Ff10gktaxB+69dQgWd/trW7N Ehbha/ArLwCnwgo2PaCLdbynNRWsipuoTxiarqY7NLU12oVQPSm8XEHztCUw6niEVn/J 8OPA== 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=PUvHmCiaUykxHI8OvIFLVAwT2TJ4ujC+7HAZA4KLm9o=; b=QoDklFLe4Ie9fWaPx25h8JJO3V04ViveDDO0g0SYls6Oh5aCt+xaS+ZdVazNEC8rg1 3vjV6pOcu2KGF4Dz1eng6MFFBHKUvxaLxJOsEUfielgUUEAUvzrclMqDeDYDSrETlsJL 8/NwBf4OSSCiNjZGvMSr/Nr7kX/u++drs6aBB7VrPLYN1E9ueb2ez/wpEgeatsDFZZGC x1pCsbTjFGl4nxEofQ09fpHKQJkZZGOmlabotxLas6q3uig8C94ac1015eZc8/7Xxxpz 2dGZlaE0n+iifu9TENzGVzjrTb2h6/Y+FF1kv1sN2w40G2tB36z98/6623TctAqSRzsR JTHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E7VekmNm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q12-20020a63f94c000000b003c67a4e3e22si2161405pgk.138.2022.05.22.23.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:01:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E7VekmNm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1AF1436175; Sun, 22 May 2022 22:55:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353496AbiETUff (ORCPT + 99 others); Fri, 20 May 2022 16:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353501AbiETUfd (ORCPT ); Fri, 20 May 2022 16:35:33 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB6F19FB25 for ; Fri, 20 May 2022 13:35:31 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id gh17so4589707ejc.6 for ; Fri, 20 May 2022 13:35:31 -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=PUvHmCiaUykxHI8OvIFLVAwT2TJ4ujC+7HAZA4KLm9o=; b=E7VekmNmqzzPvnMy92tHR6mFRFrwHRPFMUmM3juUv3W7Caij6EZHqbPF7ji6Ppk5ak cLMD4QdxKzTo9OL54y8cUEo8NCYpKVhEHKEn+bt4ImwfTax8nV5J7UHC/HtAlpSHRNly +trvejQGwU/eryTVgCTqDvA6Vvw0FwAohxVZg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PUvHmCiaUykxHI8OvIFLVAwT2TJ4ujC+7HAZA4KLm9o=; b=5ZBwtjXVpAsk2PAENi7Hw9tZf07VfHxnTF68ZKlNrs1o5/WKPL/EH4gklDnOG/ZKmY 6H7Y1H3MjRwi29LHfpILe3I5ThfwIRhDFLPCPAH4bonJcazFVc9mMHurqlRPBxWSbDii WSGP+YBS/CIWG3BZeC0OBb7CtIriCZfayFF0LVgeivBvAZ8WSyngFvGOAn58SRrrmwjO 8kdSBBda3s3DiZWoUOHQ2t6RB3v9NbzHV7i47lO/96WXuuAsnb7z4xbvzSID8ThrlZve 4UlraRD5V/BOrlbrU7FspKjEq9RSAmUNdXswXtLttVCXstNpIJFXx3+BUFmLF/dtCVm7 M9yw== X-Gm-Message-State: AOAM530fiXoFsJYLKJgW5xI534R0f7cNcaYDJtwrbzLL1/2YEKM/NLOC aT+4R/JrNdes2dDNHPqfeA5QUqDAV7CmnFdmZy8= X-Received: by 2002:a17:907:8a14:b0:6f4:4365:dc07 with SMTP id sc20-20020a1709078a1400b006f44365dc07mr9821028ejc.693.1653078930015; Fri, 20 May 2022 13:35:30 -0700 (PDT) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com. [209.85.128.43]) by smtp.gmail.com with ESMTPSA id w7-20020aa7dcc7000000b0042617ba6383sm4765625edu.13.2022.05.20.13.35.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 13:35:29 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id p5-20020a1c2905000000b003970dd5404dso4951875wmp.0 for ; Fri, 20 May 2022 13:35:29 -0700 (PDT) X-Received: by 2002:a05:600c:4f13:b0:394:8978:7707 with SMTP id l19-20020a05600c4f1300b0039489787707mr10309201wmq.34.1653078530208; Fri, 20 May 2022 13:28:50 -0700 (PDT) MIME-Version: 1.0 References: <20220510192944.2408515-1-dianders@chromium.org> <20220510122726.v3.3.Iba4b9bf6c7a1ee5ea2835ad7bd5eaf84d7688520@changeid> In-Reply-To: From: Doug Anderson Date: Fri, 20 May 2022 13:28:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/4] drm/bridge: Add devm_drm_bridge_add() To: Dmitry Baryshkov Cc: dri-devel , Hsin-Yi Wang , Abhinav Kumar , Philip Chen , Sankeerth Billakanti , Robert Foss , freedreno , linux-arm-msm , Stephen Boyd , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On Tue, May 10, 2022 at 5:22 PM Dmitry Baryshkov wrote: > > On Tue, 10 May 2022 at 22:30, Douglas Anderson wrote: > > > > This adds a devm managed version of drm_bridge_add(). Like other > > "devm" function listed in drm_bridge.h, this function takes an > > explicit "dev" to use for the lifetime management. A few notes: > > * In general we have a "struct device" for bridges that makes a good > > candidate for where the lifetime matches exactly what we want. > > * The "bridge->dev->dev" device appears to be the encoder > > device. That's not the right device to use for lifetime management. > > > > Suggested-by: Dmitry Baryshkov > > Signed-off-by: Douglas Anderson > > Reviewed-by: Dmitry Baryshkov Thanks for the review! For now I'll hold off on landing this until sometime has time to review the other patches in the series. While not technically required, it seems weird to add the devm function without any callers. -Doug