Message ID | 42b56531a91e88eea8f57d6be0b01124e67c5232.1689802933.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2742710vqt; Wed, 19 Jul 2023 15:24:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTvuEBqtRgp/cKL9C1nelAKGdxwx1Rji0sqCbRSQ0fH8+czjtZWpxJM7w0xVpXYN/dR1A+ X-Received: by 2002:a05:6358:919c:b0:133:9da:8d9f with SMTP id j28-20020a056358919c00b0013309da8d9fmr9289397rwa.14.1689805454276; Wed, 19 Jul 2023 15:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689805454; cv=none; d=google.com; s=arc-20160816; b=iWvuFxGRhgpoVipzhnvWijX6C7+5qUCtP4gGuOa8EKZwcpgJscD05UG4Z5C1HU442V xMPFEWSA6iDd65meZS/E7MB9nZBd1tQXSwanbTiqC/gq/LKsW8yfjsl75vgXY8YXVNN9 5TPb8Lt320c+UZCu2bwph35ddBUZAf7/zc0lNYq6F93qm3lx/2umySDlqbNZvZQ+wezp X5wF3KuqnXFNd94sqJgixqtmlDvVoJy4FWfmYt2ivPhcttDzXANvh/sTqy+FF5SaKQVj IXKytzBI2b5mp9RmbROU4w1AqNIapopvRjOx2m9zNzE2YKfJNEOWx+OR1/lXu9tljv/B HEIQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63164e000000b0055ae2071a32si4161842pgw.611.2023.07.19.15.24.01; Wed, 19 Jul 2023 15:24:14 -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 S230086AbjGSWDL (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <daniel@makrotopia.org>) id 1qMFFf-0008JI-1v; Wed, 19 Jul 2023 22:02:31 +0000 Date: Wed, 19 Jul 2023 23:02:23 +0100 From: Daniel Golle <daniel@makrotopia.org> To: Jens Axboe <axboe@kernel.dk>, Ulf Hansson <ulf.hansson@linaro.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Dave Chinner <dchinner@redhat.com>, Matthew Wilcox <willy@infradead.org>, Thomas =?iso-8859-1?q?Wei=DFschuh?= <linux@weissschuh.net>, Jan Kara <jack@suse.cz>, Daniel Golle <daniel@makrotopia.org>, Damien Le Moal <dlemoal@kernel.org>, Ming Lei <ming.lei@redhat.com>, Min Li <min15.li@samsung.com>, Christian Loehle <CLoehle@hyperstone.com>, Adrian Hunter <adrian.hunter@intel.com>, Hannes Reinecke <hare@suse.de>, Jack Wang <jinpu.wang@ionos.com>, Florian Fainelli <f.fainelli@gmail.com>, Yeqi Fu <asuk4.q@gmail.com>, Avri Altman <avri.altman@wdc.com>, Hans de Goede <hdegoede@redhat.com>, Ye Bin <yebin10@huawei.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, =?utf-8?b?UmFmYcWCIE1pxYJl?= =?utf-8?b?Y2tp?= <rafal@milecki.pl>, 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: <cover.1689802933.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1689802933.git.daniel@makrotopia.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771889443909770540 X-GMAIL-MSGID: 1771889443909770540 |
Series |
nvmem: add block device NVMEM provider
|
|
Commit Message
Daniel Golle
July 19, 2023, 10:02 p.m. UTC
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 <daniel@makrotopia.org>
---
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);