Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp660823lqs; Tue, 5 Mar 2024 12:26:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRFlJ9Bp3HTecNdbqyOC63je4qK+/jY4lggE3EBqqbvi+UXsyeMjmXOnEVzl5k1N06Xn4sRiD6zDvw5VY7RicbZcEuhZFQGtA0uVD+7w== X-Google-Smtp-Source: AGHT+IFxkD2ybh1YkbtXo1NU7sP5ud/6iOufs5iT6Et8DZx6tX+GUGyp8zHhOm4b+F4K9MZa1WBh X-Received: by 2002:a05:6808:138b:b0:3c1:b146:d9e5 with SMTP id c11-20020a056808138b00b003c1b146d9e5mr3900807oiw.36.1709670413875; Tue, 05 Mar 2024 12:26:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709670413; cv=pass; d=google.com; s=arc-20160816; b=y2w2F4RiYMP5J6gYDUDkLg40xeYHp/J0yYOIBfgtwNgZ1jtujtI3GrxuhCS8oRwEZa V2u7t2kxpZvY+iyrkR3OHvoio2nZ+xaKm1ZjytgpFySjmGcbC5klJn8RuyZyvOW2zZ3g IU6viYntgeu2kO/2fqQBROjiN7mbKqxXZyxlzBdItlzOumAul79/PmYdrAliXHSiyXY1 Z3z3Hvdyet8RiBATMofIiIHgwYnRUsiJedEbCDvXj5hbnwb5M50l3cYsRUvYaqGXXU8w GG0Wii+gVU7bOleEi5RrKhQ73A+k6T2uiKNjqS6CEYSY+soPTXL2T0Zbg5mgwzMU5ylX FqgQ== 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:cc :to:from:date; bh=oxIouO0/Mxp8XCxGAY3ZmmqbGd/T8a1GQ5o7mlocplM=; fh=j7lw218M085b9rPtj+QACqlnmqhhsdWy5wQ1oNVKNQg=; b=k5sF0XiGFd69e6Nm+xcOcQbkDGM8tNnZ5tOGY273R+NaNs8Et6rvZZNqqr3CWnOXCE 5CqpOfk56qo0YZCA7pd3wfGh8wDKA97ykSIFpTQV/XO5wjnchb7FEEx1xIlh2gsydNzb EcUwLVOcumMzFMBtZUiGWq9bqIio95p4UZ7d/8A7mmNSdNdsVPlI8NiVsuBet2xtsxYK duJif2aiKfii473NbPMmi05C3AJ2hRHTxRXDkwE+k92OHZp47ySURzPjt9aCfiSbh+F5 A9bQy5E1iL5vhiqsTxSB+Fbpo1ELRzdqnrxnwvmmRl0/cGcbkdv28lG/oZBRMbA6SJHc Yj9w==; 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-92959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92959-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g1-20020ac85801000000b0042edcfb1f28si8274893qtg.92.2024.03.05.12.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 12:26:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-92959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92959-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 642931C22849 for ; Tue, 5 Mar 2024 20:25:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39AE812BF0F; Tue, 5 Mar 2024 20:24:44 +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 4C6F212AAD1; Tue, 5 Mar 2024 20:24:42 +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=1709670283; cv=none; b=Fx+k0uXUKcF4As9LWMJ1zTII1vo66fw03XRAyJimvIyL1ulJ1trxOc8m8vHZ0Nx1+wYfOdKTtGIDCpSXGe8DL53XfccV9C+Cqlktb3EywQaW20DQA1Kb6/Lvx5QZdJ/VzyGRA6aWYNHTcRtg6Ruf3SKgha8TvIxnjdbchENWfi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709670283; c=relaxed/simple; bh=MrUm4sok0/sW2mdOlQzqjBZTUNsycS8FdxaU87EdmU4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iOF2Yhe3nwArx+EOeLsBDB7q7NUq1oZaeFCK0+VukZZw/8EAC57BOGopBbKEkBNbqwK6Tx75dTr2Kup5WtKizQNDYfPxLrHoxscrKKWtHKwObq6Q4gtToa+G56ta1KqGi1iNCI2FEaVq0WXnscSiog5Z+mU5U0Wf8zhIkNNNWbQ= 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.96.2) (envelope-from ) id 1rhbKp-0001Q6-2t; Tue, 05 Mar 2024 20:24:24 +0000 Date: Tue, 5 Mar 2024 20:24:19 +0000 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Daniel Golle , Dave Chinner , Jan Kara , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Christian Brauner , Li Lingfeng , Damien Le Moal , Min Li , Adrian Hunter , Hannes Reinecke , Christian Loehle , Avri Altman , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , "Ricardo B. Marliere" , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Cc: Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: [RFC PATCH v2 6/8] mmc: core: set card fwnode_handle Message-ID: <055787bb6085c32907ee1772522a6bfa49d5d2ef.1709667858.git.daniel@makrotopia.org> 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 0ddaee0eae54f..e1c5fc1b3ce4b 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.44.0