Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1019332lqb; Wed, 29 May 2024 19:16:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9W6LnhTVSVygSAgwfrjf+Az8X5m/+ZXU2yfG3NpECz3qIVuE4oUel5ZwrRtOPusLobKC3iOOZMQTOdc3vsRbHnO5immDV5G6OqwHHvg== X-Google-Smtp-Source: AGHT+IFP7cVO+tJjWq/KVsWzFJ78mTN6cw2SGJQ+H7ZmTkzgdmV/1tltH2GueqJfVlKcjGGcD2u2 X-Received: by 2002:a05:620a:6229:b0:794:eb81:32c4 with SMTP id af79cd13be357-794eb813951mr53462985a.10.1717035379027; Wed, 29 May 2024 19:16:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717035379; cv=pass; d=google.com; s=arc-20160816; b=jl5AVOkGMdF0SjsAgncVGHD+1jiUFQAzkRHLTmdkgdpzB690tJwk04ha6WQbsKJSK/ +9pey7p4Wfop7kYmsYzBssv8G2cYw0hr1Jh/eXwJMi+rbmuK1nBUIIK2Z9wUCNaggSUR 28v2043eRxA1V1ZEvGYtUb9COaHq4IEWVPbj305R9mULvXqig0Uv1gnBT0HtBt3Gf40W KWOVNNR98JK/dKZrHDMzws3QHiq7Wx7A9zrv9NpaR9vHcXIqOZKE3574piBc9rsCxZXZ Lh+oUOnu680s7ScYd0KVfifUFvfzdw78g/RLEv2LbK8ar6g+SDjvajbmUPHm5xqlVjCM bnmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:to :from:date; bh=n3Hj3DTziMMjfUN8c7tLVrTqYK7wg17etQ1PzbYS2F4=; fh=PTscWTIHcoR2vyQtw5VESTy9e97dUqI8eGwoqj4vbiM=; b=K6dHwFoCbD+D75ldcQveCmJcfcVqXjrg3NBZvT6T7+4rRXVDYAet+UQ+9h7C4rZxUY 9h/a/5P2nwahZeKuScgC3GwBMaBgyygbzgkGjB6/aYF2OKGfzRUYTF84gohiBGpsIVZ1 3bJA73XcBoHzIi0iDkM67VIAc0CW/YH1V6AUNVADQhi6ITbEb8Hi1h8O+vaCKqxyWIOw 8Oyzr5YFrAHkWpMbaJbJf7KaX/upknJOU6tg9tb0PYNoRA9NTz5ut/rU0KhJYRg/iZC0 OmPPUAn2JO6qNlnm+o6Bndui6U+wIbnWeKQIEXoMUuTicOdGj0fKq7xHvljgUSnEiCbH ME+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-194883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194883-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd623f5si1111430185a.741.2024.05.29.19.16.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-194883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194883-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A9E5C1C2350D for ; Thu, 30 May 2024 02:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A81F2230F; Thu, 30 May 2024 02:15:40 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F2991C693; Thu, 30 May 2024 02:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717035339; cv=none; b=oCs0V611KpiEnYtXFi8Swmt5t3pyPJQYycS/o+HcwWuJzaO097IckOtvTsgYnH67dwjg0e6CMmUaIYzH2bSlYQ2wBBlo4EuRYk6CL6FfKrwIYjtGRFoUHuQcwuyJdsApJDULWijbEkN2DW39WuxYfpfUG7lch/cuTulFE9dqCVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717035339; c=relaxed/simple; bh=6wAe6PDwPoPRbuAdisd3AgoRY7qZA25aGbQfD/XuvsY=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iF/poW5jiWccKJQebTxrbR5KxgAqfMtimToSpxOIPyZc6svXa7OZico+sCzC2zZ5xY4XaE2blo9XIgC3eSiOgTDVnGK6UnaAk8drCIQCyu3xOVHth6UyT90MZ4AnTpC/yaSDp05bwYvKKGw3aVeKGo3bKmZ6Hw8z0SvxuqPl15g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1sCVKD-000000004iN-1qwQ; Thu, 30 May 2024 02:15:29 +0000 Date: Thu, 30 May 2024 03:15:25 +0100 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Srinivas Kandagatla , Daniel Golle , Dave Chinner , Jan Kara , Christian Brauner , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Al Viro , Li Lingfeng , Christian Heusel , Min Li , Avri Altman , Adrian Hunter , Hannes Reinecke , Mikko Rapeli , Yeqi Fu , Victor Shih , Christophe JAILLET , Li Zhijian , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH v2 7/9] mmc: core: set card fwnode_handle Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 0ddaee0eae54..e1c5fc1b3ce4 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c @@ -364,6 +364,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.45.1