Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp796247rdb; Thu, 15 Feb 2024 16:17:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3aB5Gls2r301dAuml6Sv2MpWZbCrfFziegOQMkiREIRJzs1oXA3mN8WFZ6/cw8sUqwkQ7oZc969OqqEWacPloUQfSuJH1FJlAyboB1Q== X-Google-Smtp-Source: AGHT+IGcYtfFI5rF2qzvJ2ureVuWuge/myFV8iUGZgegMxirO5lApMM/IKxg9QADP9I8/XIWZx3j X-Received: by 2002:a17:906:4ac5:b0:a3d:7d6b:60c1 with SMTP id u5-20020a1709064ac500b00a3d7d6b60c1mr2138034ejt.61.1708042677209; Thu, 15 Feb 2024 16:17:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708042677; cv=pass; d=google.com; s=arc-20160816; b=yubX8DXq96jLzFTxAoqHRCsVNzOXJ3Eo4YW+vaodMkPolkJ5kQz/RYxSIaR5TaCm61 QeKWd+LG4CWLASdS1OcQEiQLpbVi9sOvZVkM8PsGjFvP1nybIFhd358O7PbGq1XVCoMK PDHX9EZ1XEEPtm8nLyxFmqSTFvxDHHzq6GNUSXrIPoN6i0pckw7BkVXBDNSMC5p6PhIW Qw3HYgqS2bstpb5x1R+jVbdFZhn3PC7wtZvp4JTLAlBEnBwsUw8fSrrmCLYYE19wUpYc 5ifJApX/t3lqd63uc+yRqS/LDBNkX7E9FX+iaooWoRQ9QomFdbrsiIGrcnlITcoS17Xe KkfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=M/FMdOoy6aMi24ewH9zofBlYD2XprYoCM/TIf5gAcDs=; fh=8NNqbA0QmYJifAN5WQAmmrrUWx1N6RrF+OIXeiHzbqo=; b=W1tPD2x5QeaIZHNKcqF1BUmW7R0gzZr8XqJ7GmIGcCKr5B8rOKahHZXhgo/xsWgJH9 A/YIKd4MA9MAgLcgDrH5LYswC1XRYd+QhQJcWw2Ez/Hsa6fNCrbXVv+s3MpRnIdNpSyl KX+5uCxnkK/WzKggxSepDjc1/3QoTh7L1nD0MT67GgBsSJKdGZIYDTRmXV6lt6q46/Nq mSlC5bJ3/+U3moV1SfV2rncuaam4IQKtXpyqlxrBEUD0XBjN6I5zgh6NkXnWHVO7bFVv L6AvzF4Oj3oaLpp13IbkFKgQLPgefNTaUUhgIJYaete8OjKUDh/UZH+7AbJFFois+cbz NEqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=FJ0tJps7; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-67887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ko28-20020a170907987c00b00a34af8bdd57si1049969ejc.728.2024.02.15.16.17.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 16:17:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=FJ0tJps7; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-67887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F3A241F25A17 for ; Fri, 16 Feb 2024 00:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6603D3211; Fri, 16 Feb 2024 00:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="FJ0tJps7" Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (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 0CDE738F; Fri, 16 Feb 2024 00:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708042669; cv=none; b=exIhDTGxGr4Xx/W18Y8pi8TDcXWz9oHayGGR/LfQyRn9uWQlzyR2/kVfHeVWoDNnERvnUrnNc0n7KoleZg4AH9Rufy3zVazqPGwVrx78oDni7oG9XPlub7mKBS27FdURrjhTqQ0c05TFY6VOgBulgNv7Z1IxcV11W1PeLgOvE+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708042669; c=relaxed/simple; bh=3j2RKb1cfZg8huWyT0jq17tIjyXftXmjC2TfUGqyH84=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PP0/ZIdCNI8I0QvMFtLS9DCIKD+1F2hLQcMSIeDqBqCE6nwdawt3DqSCWF4jX8WCuxKPWAg4rKJ36SbitdJXPGN6qdPiledQqQpBpKNSvaAvmNg/cukufMMmQAzn/XuoYpZILvub+Sf5owXry06WfR8RCYqTLM48J1oh4ZjNnzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=FJ0tJps7; arc=none smtp.client-ip=203.29.241.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au Received: from [192.168.68.112] (ppp14-2-94-146.adl-apt-pir-bras31.tpg.internode.on.net [14.2.94.146]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 6723A2009E; Fri, 16 Feb 2024 08:17:40 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1708042663; bh=M/FMdOoy6aMi24ewH9zofBlYD2XprYoCM/TIf5gAcDs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=FJ0tJps7wyvVhd0rHdmK6uxliQ0CUy4f9kT74A8di+dS9mdD0ArR8eYYFpEQmCdth fafxPWzJFeAX/6bnRGiN7g8WhLvPSruR56WBGzKAA1mJhCK3Qr70xQIXtPlWx08qs8 UfLu0Ey5I80K8CIiXnlWyHht6/FN9vRA0sVNHQqmoNGS/1o/VE2LAI3Njne8HfMAVP 3M2tRNYOkcLJDIC+ILqoZMvIRemcqlIR3T383SSpcE9MiekObZzIt9h5LhyF9vTArh VqQkIMggtgHSesl1AbNYK4sF3n6UCSAxyAhjuV9yi8NpYuIoM5mkRwqmnUfLZNIkVj TYXYTlStNVtzw== Message-ID: Subject: Re: [PATCH] mmc: host: replace 1st argument to struct device * for mmc_of_parse_clk_phase() From: Andrew Jeffery To: forbidden405@outlook.com, Ulf Hansson , Adrian Hunter , Joel Stanley Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Date: Fri, 16 Feb 2024 10:47:36 +1030 In-Reply-To: <20240215-mmc_phase-v1-1-f27644ee13e4@outlook.com> References: <20240215-mmc_phase-v1-1-f27644ee13e4@outlook.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-02-15 at 19:03 +0800, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen >=20 > Parsing dt usaully happens very early, sometimes even bofore struct > mmc_host is allocated (e.g. dw_mci_probe() and dw_mci_parse_dt() in > dw_mmc.c). Looking at the source of mmc_of_parse_clk_phase(), it's > actually not mandatory to have a initialized mmc_host first, instead we > can pass struct device * to it directly. >=20 > Also fix the only current user (sdhci-of-aspeed.c). >=20 > Signed-off-by: Yang Xiwen > --- > drivers/mmc/core/host.c | 4 +--- > drivers/mmc/host/sdhci-of-aspeed.c | 2 +- So I think I wrote the mmc_of_parse_clk_phase() prototype with `struct mmc_host *` simply because mmc_of_parse() took `struct mmc_host *`. I'll defer to Ulf for whether what you're proposing is desirable, but in terms of the impact on the Aspeed driver it seems okay. Acked-by: Andrew Jeffery