Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp22526pxy; Thu, 6 May 2021 19:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCmncWREOtcR5I3pc+ieMz2xZ7ITwePor+21RoHYImucE0AVvq9KyDSdy3NYz6kWHjq5E1 X-Received: by 2002:a63:1125:: with SMTP id g37mr7350084pgl.56.1620353571353; Thu, 06 May 2021 19:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620353571; cv=none; d=google.com; s=arc-20160816; b=VivlJK2qyW2jNI2e+bkV5GQszcU9SobJ+WkPnFOj648a4dmb119qJWDTqGznmbqfVi 1EhUN+Ooars60zhFwJktWRujb4O8Jb/ZODpcznUrzu/en2SZhNNuB1mP6FR8AmXuB/Tn u+Z+azSglQ0Vwox0F2afmMyLQfxGA+vAP9i4HGg+tx0SX0QE8LvQkryxqyYX2ogeMlRw BeEew7r+m+gghfhToB8qIYOLX7umpaSYniP2gV2we4lPyOm/uQlyI5oQ5T0oe7ZDMAB3 TFhjHFQMu+PkKg/XY8uUU0hcThpAu7t63T+gLNtxwjkwipcFK36GGKULw3+9OygNYveA HaLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=+6WcnuLbg5MQPQ1CNTZXV3RZb2wmRjjrGjFSoRIlm5c=; b=Bb3PP7i3H/j52Ka1piGEw2YDnWOYgjiO9WxgOo30XpQnfUt+BSyhb1ZXl5J0qvTAhN HQ2MtTpFI0Rfe8p0H6UwtaD9I/xy2aE79FvJKrrT+SxQbobTKj4WtNjiOkXZS3wCG10O wydi7vu0DFoDHrkgH7CLDUVw9Ec0wRNKFiOHWW3yS1dmwWXs+Re92vz1OVlOjKMCtODU K7dBjkEEK0EkSObuTj4oMx7iJUMVIMLrtRhBP/+1Q0IiTT+/tltA0Ql0Cp6iklJCJl+z uve4QjoeRXbANF7hKWjIkVwwrJ+OsJMFsQuih0caBj0/qMp+KO3Z/MtMClwNZ8V7I4l7 1q4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=mM4BlZeQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r63mby3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si5029374plp.64.2021.05.06.19.12.25; Thu, 06 May 2021 19:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=mM4BlZeQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r63mby3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbhEGBeK (ORCPT + 99 others); Thu, 6 May 2021 21:34:10 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:59641 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233689AbhEGBeF (ORCPT ); Thu, 6 May 2021 21:34:05 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id F0D01580961; Thu, 6 May 2021 21:33:05 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Thu, 06 May 2021 21:33:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=+6WcnuLbg5MQPQ1CNTZXV3RZb2wmRjj rGjFSoRIlm5c=; b=mM4BlZeQY4pW7UnBanVkm1/3Xe2AMYufr/nsRKlSNNB5fxB Mxl1jABk8kV4jz6Ch8PZbQbF8qnTiv+4l01e10azRU6JchcfFpEwUu6LNXwfTZ9b PM1H+Q8IshrfYR1LZpAhD9LlCHUPSHx+SNzk1iklCZMUS/Hc8ujdS6uiXRryf7bP CIz3o4X0HbmTUTNSkPTdDeZtwJYy2DQVvVbaWg2ZKE86td8uHa0iWIUz8brta8jE FUd+YYXJSa1Q52SKI45Q+7ZyWhntc4aT4F/yS4rT+jimtQO6cTLl2NJNmBJEu4Ph bd42sSFZCdwyIl/D2exko6hdv/NXVv16FUTZvMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+6Wcnu Lbg5MQPQ1CNTZXV3RZb2wmRjjrGjFSoRIlm5c=; b=r63mby3ej96oPK2tiYm30r H1fbdvfDfbGWMYsUZY0+gxQkqtHizU//VMkAR8UGgnDDBf72aLJHDULp+4FRqZr9 jqKmMRyHqA3t3KJNEVExb5Azir2YT4ZrtbjuLD2rZabOeg8ro9akHWxKaQgb2gYM aNWwaaU7xeAJXF8S4MV/DIM4sgrU/fQAl2injk09sl6FpIU+pcGJii06zqjDj92D kpVmKvvRzUpXLWMGJezr7EvnPZ5DYTEp6Ustq/ulP5IqPZHNjsORf0vtSpgC133X QtMNnDdAhn3gWbdUHWMoPHGDSTZlZKlfIlEKT7t99Ki1YncrBMWJSsSECayPH/dQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeguddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhepuddttdekueeggedvtddtueekiedutdfguedutdefieeuteefieelteet vddthfeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id F415FA00079; Thu, 6 May 2021 21:33:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: <19a81e25-dfa1-4ad3-9628-19f43f4230d2@www.fastmail.com> In-Reply-To: <20210506102458.GA20777@pengutronix.de> References: <20210506100312.1638-1-steven_lee@aspeedtech.com> <20210506100312.1638-6-steven_lee@aspeedtech.com> <20210506102458.GA20777@pengutronix.de> Date: Fri, 07 May 2021 11:02:29 +0930 From: "Andrew Jeffery" To: "Philipp Zabel" , "Steven Lee" Cc: "Ulf Hansson" , "Rob Herring" , "Joel Stanley" , "Adrian Hunter" , "Ryan Chen" , "moderated list:ASPEED SD/MMC DRIVER" , "moderated list:ASPEED SD/MMC DRIVER" , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "open list" , "Hongwei Zhang" , "Ryan Chen" , "Chin-Ting Kuo" Subject: =?UTF-8?Q?Re:_[PATCH_v3_5/5]_mmc:_sdhci-of-aspeed:_Assert/Deassert_reset?= =?UTF-8?Q?_signal_before_probing_eMMC?= Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 May 2021, at 19:54, Philipp Zabel wrote: > Hi Steven, > > On Thu, May 06, 2021 at 06:03:12PM +0800, Steven Lee wrote: > > + if (info) { > > + if (info->flag & PROBE_AFTER_ASSET_DEASSERT) { > > + sdc->rst = devm_reset_control_get(&pdev->dev, NULL); > > Please use devm_reset_control_get_exclusive() or > devm_reset_control_get_optional_exclusive(). > > > + if (!IS_ERR(sdc->rst)) { > > Please just return errors here instead of ignoring them. > The reset_control_get_optional variants return NULL in case the > device node doesn't contain a resets phandle, in case you really > consider this reset to be optional even though the flag is set? It feels like we should get rid of the flag and leave it to the devicetree. I'm still kind of surprised it's not something we want to do for the 2400 and 2500 as well. Andrew