Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp814018rdb; Mon, 29 Jan 2024 21:42:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7FyYTigep3fuKarGt386U4UNznZ2nNrfZyK2n/mqXkMl7yhA1bhOoqIy+kKrGFVQzTTNc X-Received: by 2002:a17:906:f896:b0:a19:940f:b9d3 with SMTP id lg22-20020a170906f89600b00a19940fb9d3mr6027813ejb.25.1706593373998; Mon, 29 Jan 2024 21:42:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706593373; cv=pass; d=google.com; s=arc-20160816; b=cKs6fg56tWbZm+KL534xM1L5mbe+awT7xr8+8tNPVTfwM5Tgoi2HOxWoqqs7QaZxL8 AfrsgyZAX28gGpUawRwfXVRJ6buCrqjsLAH/FzeN2U1RnfdQ4QyqICl5ytMn9cdpOhuJ Jbfak/JmldwrQScb4HCMrnh7WG6yYZK1KqcU1J3p2Y27dsD9dxRg1RX6ujk7+PXwFa1X d1jV/3a+GN3iqYPrqMqg1ZkBR1OPJJ3HN3luppgPMcFiLVXpYOSWKIiFnPHUA5zRfrFH T4miyqQTuXvWtPIGJybAvKACH8ht7xS2BMZLiDfZ6xK4j+Lui0CNibDo2PnlovEQfvfx gBGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EaGh7h3BGqQZB3IHcQXh7OenR9j1kWQcR4glI4guQgk=; fh=xivue6sIEoFrJ5ZKr1s3YqgejhZy1zhot74Ms/Obqx0=; b=AEUt3pBFNfJoeHEGyNzOJsyr4E7B0QhVF0styrkOTZG52TgKOyvhqNfRjHn8Fg0YYO 2xfB+HrEM3QH3h0NY+ViOZoKy9p//WNj4ufK+Zx31cZ1u0gx54vXqeWZp4liqvqu9NX/ SAiiPdWTbfqahM88OGF66eK21GlEg9Nk7bQl33ZNON5yrNX2QIqulZDUPSUnDZk4+pJ5 xx3Ff9EhaSh1OsmA3A9T4lZeOKdg6MnGnynTkByhafRUS/q20wWL0nyvKfiT/SNyitbf 0PR5aikCeS6hHktjW8LzF6M3Q0kdkFRmMh7zKsZgHRD6sc/5cqv18GNz07V9/52ZThLM C8vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMNwa+Sn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z21-20020a170906241500b00a35e5bef438si1098493eja.126.2024.01.29.21.42.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 21:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43955-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=@linaro.org header.s=google header.b=tMNwa+Sn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id BF0951F25F3F for ; Tue, 30 Jan 2024 05:42:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5422F376EA; Tue, 30 Jan 2024 05:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tMNwa+Sn" Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12A62381AC for ; Tue, 30 Jan 2024 05:42:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706593360; cv=none; b=dP0N3J8FWwXBu4gGxFqD4UX3eeVf2xuc9Mgj4pGh0cGw3UvJdf1czUVRgoB27z9zLTuEq8mGeXdtvIGSX6h48opM9hxuVxSypMHNtdo5LMRowwr4VgXx6L5Ba98SdwFm5PU0fE1u+RFyN4k8uTj4PnyRzBXokqJ8yKCS3lCCONE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706593360; c=relaxed/simple; bh=gNj8qIHubEkiZhyq4ZoFmK//jaqpllZV/Xcsy1eISt8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LngBxl9HmuYC4XlSoOYWieyQw4cXMPsoNB7N6g69MPikZMoaZ5TpF9VqrcTfJInqAXu8YV+OkN6aOb1vo7ytZ/U1BWiQ2gZZBXjAqTb9PvKFisWMFXoE9iL/i50GRCwT7IMVCnR8rUdPPL2Nc2eCTXuWQo/fLDbC9P0sCG6Ggps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tMNwa+Sn; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-295b34cea31so122298a91.3 for ; Mon, 29 Jan 2024 21:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706593358; x=1707198158; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=EaGh7h3BGqQZB3IHcQXh7OenR9j1kWQcR4glI4guQgk=; b=tMNwa+Sn0GnCCk9/4Qc+FRXFvXfOjGGiMsVrdSUpzulxPo6Y/FC25uRc/IQl3pKvlM 22U0wPVqp4MdOemII7lw9sLOuUltcMl36oBHHRbUDzq3R0CQthXqXfmVKWCgw5mvNE8e RxCB+pkyC2m7Rrqzh4yo8sqOo6+4JoGrUwCwDksidqmRpL5rXPCvS8tAaZI/WMojKDws DQ+yftN72VMXcu98Q9m037YDyuAYY2Zg8QoIW5J5x+eoI+JTTGgNcjezddUqn0Zk8gd1 b0ndqTMRL/olxAiUaNmYnGzPktVvH9GR4+f09fmqupm0pscWOqvzJj+3r4+TuRUoeDzf MAdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706593358; x=1707198158; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EaGh7h3BGqQZB3IHcQXh7OenR9j1kWQcR4glI4guQgk=; b=t8M7XgkopI5ZbvTyPT2/n+Pj6hMbSiK8dbKzlvC9Wp9Vr8VD2EynYaQ08gD5JdzvlL 4Oqpi9YXJoXLpEEMwt512W+xc2Shb54vl7J9r4mowDCsHnP9aCMpiEQ62eCdV7FO9pn7 PhaOOxyATlfw42exRbwIWYwPVgR/BbYdMwIA4IdIAi3p5/PwjSz7fTrywpeDx6x3XHSk lTA2lfPSaKDzS/6uyGtcOVSkkJD5GQcToi/wAL8XMSS2sQUBVzn6tzfueC5QCF2OAu6X OxAsObyC6RWt+ZpAggJv2aHrl2VWev2bLG0vare2GOS1ES9xZIHyeukApR7uAoRhTuAQ d4uw== X-Gm-Message-State: AOJu0Yx6NPE8tuOCHllfsCY/Pqz5gmdv5StowBdSbasUJHA8hBxQ7me7 ife7fuRarHwsPmDDN0mLf3mMQYOJxbuEXPNXdRsHAcRTgKZW6acz7lhI1jzldw== X-Received: by 2002:a17:90a:eb07:b0:295:b6b5:302f with SMTP id j7-20020a17090aeb0700b00295b6b5302fmr271969pjz.45.1706593358200; Mon, 29 Jan 2024 21:42:38 -0800 (PST) Received: from thinkpad ([117.202.188.6]) by smtp.gmail.com with ESMTPSA id pq6-20020a17090b3d8600b00294eeb58e59sm6455101pjb.15.2024.01.29.21.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 21:42:37 -0800 (PST) Date: Tue, 30 Jan 2024 11:12:24 +0530 From: Manivannan Sadhasivam To: Andrew Halaney Cc: Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Andy Gross , "James E.J. Bottomley" , "Martin K. Petersen" , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] scsi: ufs: qcom: Clarify the comment of core_reset property Message-ID: <20240130054224.GA32821@thinkpad> References: <20240129-ufs-core-reset-fix-v1-0-7ac628aa735f@linaro.org> <20240129-ufs-core-reset-fix-v1-2-7ac628aa735f@linaro.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Jan 29, 2024 at 02:57:20PM -0600, Andrew Halaney wrote: > On Mon, Jan 29, 2024 at 01:22:05PM +0530, Manivannan Sadhasivam wrote: > > core_reset is not an optional property for the platforms supported in > > upstream. Only for the non-upstreamed legacy platforms it is optional. > > But somehow a few of the upstreamed platforms do not pass this property > > by mistake. > > > > So clarify the comment to make it clear that even though core_reset is > > required, it is kept as optional to support the DTs that do not pass this > > property. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > drivers/ufs/host/ufs-qcom.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > > index 39eef470f8fa..32760506dfeb 100644 > > --- a/drivers/ufs/host/ufs-qcom.c > > +++ b/drivers/ufs/host/ufs-qcom.c > > @@ -1027,7 +1027,11 @@ static int ufs_qcom_init(struct ufs_hba *hba) > > host->hba = hba; > > ufshcd_set_variant(hba, host); > > > > - /* Setup the optional reset control of HCI */ > > + /* > > + * Even though core_reset is required on all platforms, some DTs never > > + * passed this property. So we have to keep it optional for supporting > > + * them. > > + */ > > Any desire to print a warning if !host->core_reset? I'll defer to > Qualcomm to review since they can confirm the accuracy past Can's > comment, but this looks good to me for what its worth. > My only worry is that the existing users of the legacy DTs will get annoyed by the warning. And I'm not sure if we can do that. - Mani -- மணிவண்ணன் சதாசிவம்