Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8768927rwp; Wed, 19 Jul 2023 15:17:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlH0yGo9BpA2W18F6ayjkkaVc+eDLCZt4hY1Ok4cv6s3fG6hEwpaO2WnkR+srXCELm/WcSWM X-Received: by 2002:a05:6402:1814:b0:51e:278a:3627 with SMTP id g20-20020a056402181400b0051e278a3627mr478402edy.7.1689805022181; Wed, 19 Jul 2023 15:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689805022; cv=none; d=google.com; s=arc-20160816; b=bM/58esfdAeR2Ip6r6S9YsfUjAAVv16tcdZNGfsJtorw2KWZ6FWGhHqQYz/ViyJ1x/ P8CysNi8sprIV/Y3kjj0XfjyJ0gUUAt4pUs3Oru+RV77ijYB34lcJBM5e5YHWuk9es0t d9XDQx3nI0UbZnFLsI6h7u6N2wLsSfvk3bHJjyPzmc9GfW2QSIYcx2HW8mZgTHqFd1Jh L20FYoNN4lYct8o0MFpdbtgVXRXNCrGiTDRZ1M6Gl5nnaI2r8Kf6hROhntm/ojQxkAxR FnwwW/aMjOmtiXqGpMrqLS8ez1WMCiM/E5xTqXQ4MurVwkJpDHxi1aLpGuJVYTKjjA7C 21qw== 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-disposition:mime-version :references:message-id:subject:to:from:date; bh=VAXBhQigt26PjeBFPqjyjmLBXdATnL0jCOqfvG5AcV0=; fh=O/hjEvlM0nIN8LC6WbIQ4s0L6nmnRMOzajXXMF81As0=; b=gCa/X5+lBA+kpNS8A6NLvBfpgkatUFwmwp0HoiwNZsIaR/gaWtdBsgMZYFXjLiGg0f WP4GJz9BHJrnqWxm5YDY4wJ4GkawV9TFPAv8zkEFtrxBMufcJ4ePqx7G9HxI8fyyzXOB q3/HnnHa67poo1aNlS9IqXqnz3cIDvYOsUkD8Bt5uIN3BJQsb8U2GF1gxTSEAOuJUmWm ziHlT/gm7q3nJ2GV5jzqicDAyK/kIbQ2IFLQtsbMOoJl1Ci3AhO/qvJVifAAlQXHCl9T cr6TcTJd1Q9oDi2unc6mXCuTK1fWVQ5DH5BtsPOf3RoIQDNY0ECkU5BeyXgvk0vDaE9u 6rSA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq5-20020a056402214500b0051bebe13247si3489143edb.496.2023.07.19.15.16.37; Wed, 19 Jul 2023 15:17:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbjGSWDL (ORCPT + 99 others); Wed, 19 Jul 2023 18:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjGSWDK (ORCPT ); Wed, 19 Jul 2023 18:03:10 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B801FF6; Wed, 19 Jul 2023 15:03:07 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qMFFf-0008JI-1v; Wed, 19 Jul 2023 22:02:31 +0000 Date: Wed, 19 Jul 2023 23:02:23 +0100 From: Daniel Golle To: Jens Axboe , Ulf Hansson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dave Chinner , Matthew Wilcox , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Jan Kara , Daniel Golle , Damien Le Moal , Ming Lei , Min Li , Christian Loehle , Adrian Hunter , Hannes Reinecke , Jack Wang , Florian Fainelli , Yeqi Fu , Avri Altman , Hans de Goede , Ye Bin , Greg Kroah-Hartman , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [RFC PATCH 1/6] mmc: core: set card fwnode_handle Message-ID: <42b56531a91e88eea8f57d6be0b01124e67c5232.1689802933.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Instead of just populating dev.of_node, also set fwnode in case it isn't set yet and of_node is present. Signed-off-by: Daniel Golle --- drivers/mmc/core/bus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index 2c3074a605fc4..ecf6e23e4c307 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c @@ -361,6 +361,8 @@ int mmc_add_card(struct mmc_card *card) mmc_add_card_debugfs(card); card->dev.of_node = mmc_of_find_child_device(card->host, 0); + if (card->dev.of_node && !card->dev.fwnode) + card->dev.fwnode = &card->dev.of_node->fwnode; device_enable_async_suspend(&card->dev); -- 2.41.0