Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp659871rwp; Wed, 12 Jul 2023 21:33:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHwXgqw69CPlvwoWT8iEdbM0m3MLFREUqjY1Wjhi50o8DLN3I8hwPxdk+ERSZ+aoviuqdWo X-Received: by 2002:a81:5b57:0:b0:55d:a9d7:521e with SMTP id p84-20020a815b57000000b0055da9d7521emr832993ywb.18.1689222821526; Wed, 12 Jul 2023 21:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689222821; cv=none; d=google.com; s=arc-20160816; b=I3gGI4XwwIADolDU2ju20Zrptq0GedPznSTbLCzNzO3EObM6cPZqg1qrOE69YiI7kE 09yKX4t0HxsoQ016Ij8eX4RFo1y6hyG25lK4zFqrFutXlYJpFMTyPXKAf5xvi3gKJVtT b+iAS8oQt+hG6VGpt2YsXB36oihqRj0LFbV+aFgPvdOui8uLdRqPWP0z7nCTFU68fJGH hzq63q9UjcbvSvPg/at6Zz3RVAmO0FgLxJAwulAHcrm5TZ0qmwYMMyMajtLcbyAmufID wugww017m6gHQdS7Ji1yH3wIrCDIxec8Ggj8r9G/CtuaC7DwMwfEoueXOZ717M0t5Yyo 2crQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=0P5BXsFOkHiU1J4aFhe2Ttr1eiq/AEQLBGj0P3ieimc=; fh=5qsqEPlpOGNwNAeZPfGY4yAoEwRsF6e0rLjrhlRiGeQ=; b=v5rv4GK0yiMoeg7KNHrsBKbXc1CsEWrDFc+i7VGWMoPvYOCbrWzMMLl487FYZfxufA ZSJNZ30S+MmGI3svi55F0bgxrFSK56zeRylkklyRV+Wmfhj25VJpMl2Gd4Z06QvUxMDq LrPCFmW91iGvtW/C9G9LONQtBpiF1+LoJKSX84iPRwz9BPdOo/vCFevR/QLhhcooQPLq yyyIMoE2bdJ+L/L97BaBhsB7GZBTEAlTm18+6+YDyfCFudk0ODpqQTDhxpu/QMe9tJLc MCAFgb3V3DefM3F7rDS2UF076QOJKBy0ujAMeelukiDNf5SSBN1ArNYo+jIfGucMz9WS 9X8g== 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 c3-20020a170903234300b001b8b2865f38si4805448plh.170.2023.07.12.21.33.29; Wed, 12 Jul 2023 21:33:41 -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 S233745AbjGMDxV (ORCPT + 99 others); Wed, 12 Jul 2023 23:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232133AbjGMDxU (ORCPT ); Wed, 12 Jul 2023 23:53:20 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000911BF2; Wed, 12 Jul 2023 20:53:18 -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 1qJnOE-0005w0-1M; Thu, 13 Jul 2023 03:53:15 +0000 Date: Thu, 13 Jul 2023 04:52:59 +0100 From: Daniel Golle To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Ye Bin , Greg Kroah-Hartman , Seunghui Lee Subject: [PATCH] mmc: core: set card fwnode_handle Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Also set card's device 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