Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp326744lqo; Thu, 16 May 2024 07:28:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqDAdOp4S9XU6fbnYKCRtHWEiK5df2PY4FQq+xeG4nZJPFchAi5c7qe0AZJMyAUAapWOA1TJMPCuj2AEkBBAxWtaa2XXzU+Mi3r7laFA== X-Google-Smtp-Source: AGHT+IFUwoiHNrqNTYgwusz92L6zI+c1+DwW04mn9BG7oJbpMR5sNDKer5NKS+WfIcnEImdrkhVT X-Received: by 2002:a17:90a:858c:b0:2b2:b1a7:9530 with SMTP id 98e67ed59e1d1-2b6ccef682bmr16630504a91.41.1715869720837; Thu, 16 May 2024 07:28:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715869720; cv=pass; d=google.com; s=arc-20160816; b=qn2yFfR2reVzXh4a1PVqUWwlTj9n9N46JJACEF8EOkTFvTCq75am9ThPaymyOXd9vA Zv66mUcLXkH/SVC7wvd6oKcqW7teTxOVE00Lce3WsZ04dtE+Q4xGWWcRNn4ut26Zklro x2jOvFcoLcT1yqrhI1Fry07LXjgkZ/7ZpV2DC5ME9M8GtthL8Z9rMt5ny+N/O6USi7iW 3NI3fXNfyOjCWr9s8dqWHwch611QpInhzC538wrnrJvZbP5nHlDB2IFInWq3FS5gxvYx oDBLfMxnIKm9AiAHOhrNq3nCUfEEXBEGkQV03Pd6DZY1LbPF5RapXf9rrGR2JL00YM+R pFLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1ZWKwegtnmatTNMl1Q7jftnZel8hG+2rMuLUAeJoCXA=; fh=K+Tg+GhtIqZfvlhfGR7M/+sET2hfDDyZF+hArCUWMWo=; b=Ehk2ByWPtb5wsLTFj+17LrFrUNXK+IoT51ZWk4jyL9TJSrCcNNgpWgpx62AfTnx5Lz GV1H5UdCeDqY19SQyCT64Dw3VWk/m2rLnnfT6MvgvxQsYqrDmC7e4yUuzHAfrm9sCiYD E/c8yn9mm371QLs7Ze/2+qGj/KlzeqoJFGgzJAL693gk1PBx1Oa3ohxjToZolLscDICV qfS4L8bi8PkRAq7GauT79c1YBxueqRAdadGvoJqROlAxIYNlRxMyTX0WZ2XotOFN/GgZ dT32V6ijmHWbQfPn2xgIgUOCeKkZUR74l35z9tmmHx6wsZpSlz4RXJtfCNa964bA5z7E zzTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=Li4K1RqE; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-181172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a5c3besi18030670a91.43.2024.05.16.07.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 07:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=Li4K1RqE; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-181172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B7D13B21F9F for ; Thu, 16 May 2024 14:28:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9DD814B942; Thu, 16 May 2024 14:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="Li4K1RqE" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (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 811ED149DFB; Thu, 16 May 2024 14:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715869704; cv=none; b=dy+jncNsW2Oh2dnN90BNjoXTQTxCeTlK+nh8t9ELM2PTYQ+dxLJMskinDqXWe9X4PWyW2jto7N5EMM4oLXKPdTX4cOhy70dDi5eJBCgi0+D6C/yQ9lXuE0GIFlLnOo6Ntv2HFF8vqUO5bh4yl01TzxIuLa7VfcPiNU3S0G+8ixM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715869704; c=relaxed/simple; bh=UtwM1AaCv/Q84rlWqpbrUUhXCJ+gDNCjlNXvblAvb24=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=L9xNR5udHR5AAsKH7EWINmvlyGBoMKKPSE1N1kDbtYc6zV6/rUh4okl7RRz72IuO/pLfxP1I1rxEw545B/Q0FejQJ9rPBtHsA+wk4lVKz+eI1Yv7OjsNgtEIzfQwp6ohaJt2ADSxETwGuZkRM6Y0/k5O/Y/7UNGUKnJRB0CZX+k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=Li4K1RqE; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4VgCBG6pNRz6Cnk90; Thu, 16 May 2024 14:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1715869700; x=1718461701; bh=1ZWKwegtnmatTNMl1Q7jftnZ el8hG+2rMuLUAeJoCXA=; b=Li4K1RqEZhj1CuLLNvlp/77rh4WSmdSLYRQReCZA R1drGkROsBilJQMfPBfMBb5GBi/sKu/DOFuGQ2i4MxdF43ZjUmNQ8OgdwD3MtpHH 0XNrBbvV7DU6t8WqUiffhj/3NC34dg92+YChfe6KCKenEpuJPWVPQa9dBlAnzQDU fLf0OyrCp3nhwyt73UbzjkLrqqY/xlTL7FuVCSMNWehNjZBusKOU24XlFm9nXyEO oJE+lRUXAXgNgByk4hoBBR/B5HFfkI0XOjnojesmbZwI9QZOKNnZE/0nfjBA17LB UrkLimTQuiTSzZWJQmT/jQHRIcz2HWjarfo0SzgITotnbA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id 32nPqzYKbRFB; Thu, 16 May 2024 14:28:20 +0000 (UTC) Received: from [172.20.0.79] (unknown [8.9.45.205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4VgCBD0mfJz6Cnk8s; Thu, 16 May 2024 14:28:19 +0000 (UTC) Message-ID: <91e9322b-9304-4cb7-a1be-1f43208800e8@acm.org> Date: Thu, 16 May 2024 08:28:18 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/3] scsi: ufs: Allow RTT negotiation To: Avri Altman , "Martin K . Petersen" Cc: Bean Huo , Peter Wang , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240516055124.24490-1-avri.altman@wdc.com> <20240516055124.24490-2-avri.altman@wdc.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240516055124.24490-2-avri.altman@wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/15/24 23:51, Avri Altman wrote: > void ufshcd_fixup_dev_quirks(struct ufs_hba *hba, > const struct ufs_dev_quirk *fixups) > { > @@ -8278,6 +8312,8 @@ static int ufs_get_device_desc(struct ufs_hba *hba) > if (hba->ext_iid_sup) > ufshcd_ext_iid_probe(hba, desc_buf); > > + ufshcd_rtt_set(hba, desc_buf); > + Why does this call occur in ufs_get_device_desc()? ufshcd_rtt_set() sets a device parameter. Shouldn't this call be moved one level up into ufshcd_device_params_init()? Otherwise this patch looks good to me. Thanks, Bart.