Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1084557pxf; Thu, 18 Mar 2021 20:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8sUAMHtrIcf5tUgCx5856YnJdT8UMu8lybYoCJiSDL6sofMLys0XVtmZKpx8gImSqmmt1 X-Received: by 2002:a17:906:228d:: with SMTP id p13mr2075788eja.412.1616125726378; Thu, 18 Mar 2021 20:48:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616125726; cv=pass; d=google.com; s=arc-20160816; b=mwxphRW9Mg3BG0ujVSoSb1p3cv+evOvVRbcl5MfW6rX5c0DZrqawjLQKNrlvew9K7G ser/xyLWlN5JVpcTdUx6sKYNOkfZP72fYiR09NgBxNX/5/Uv+3CZmt9PXBmKjSpl+W6G 22nfTBLCbRTL5xRmlsstXpg/Jmfdpyr4o0/1NpVxiQifOiLDeCcrVwzbOl4iYGtTThs+ a/clO1KwrYg6KKiw4lL93VPPzipRCZI1mRny0OAoMYSg5XbMfdcg3pMTcNEm9a1ZES7V eLnpfPLbsdwDsd22Bl4YSRgDZ/Y3RjWopwWwSZ0ZCmdiL5qnjrVIQ7uYDOiTVQywdOOF P7qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=LtI25NhhES3CA4aQ1jeEV1zfPgxU3emE/VPcHcISoRs=; b=AW6iUkR0GuSa9Owwr2SHzz3WxWYhgGAXMltIngjBxwTx3rZ7qA0Z1EBoV8914oFO2l BqzDpbkpGKbtYy7688t6GVheAVg+ZBCwHeQaaXTL8Fi39xszsnYXfnuRWk8wvg8JGNBk LfoLdxD0OFQNH1W8Lggvb61XD8ASz8os7iMJDQzw9UTPeFusXPdE0kGKo42Mx1UaIs+N UO3+JJ3fIML2BqJK8kHI5DAMNdBgEZbDB8uwfwj3TgeqP6hRbuW5CiQqBv+vLv5MdfDq JZEAUKcUh3uXQUvpsUw9sckHUDCJYbmC9/14lZDPl7SIV7susFyWeX01K6PCXctSIKAG 17wg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="SbV1Js/f"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=P0I9K4id; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si3439792ejc.46.2021.03.18.20.48.24; Thu, 18 Mar 2021 20:48:46 -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=@oracle.com header.s=corp-2020-01-29 header.b="SbV1Js/f"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=P0I9K4id; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbhCSDrc (ORCPT + 99 others); Thu, 18 Mar 2021 23:47:32 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:56604 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233707AbhCSDrL (ORCPT ); Thu, 18 Mar 2021 23:47:11 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12J3TUJC075072; Fri, 19 Mar 2021 03:46:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=LtI25NhhES3CA4aQ1jeEV1zfPgxU3emE/VPcHcISoRs=; b=SbV1Js/fHv7NYRCSFH60OeRsGA1rPe8mVE0OemDoSO6xK898jElVN29x6csjN0Hkzb3q E0N2fVZ3PGv930xnzPbgoDmGk1S4suWjT3th84xAQ32Y0juDt3bSpzYv3NztXp2Jcar+ PHdQQxpkaWQ1ldMGytSKbGoeUGJ70GMWtmJgRAeiTSm60/klCe2bIbaHbNVrIQTV+136 cY3TVhxJwJPpyUYZqWn6fhvsz1olPBB9tfQ9tATM9X2Ku4b/z1V9QJFIrOmt3IXo7gGH x+RY9zyDcU7HLyIiFgu6HmPaDNsEhq2KmQmDCXxuDUCi/NQw20UqNmtkDxS89bvtoMJm og== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 378nbmhhde-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Mar 2021 03:46:54 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12J3U9Wn175143; Fri, 19 Mar 2021 03:46:54 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2041.outbound.protection.outlook.com [104.47.56.41]) by aserp3020.oracle.com with ESMTP id 37cf2v0dn8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Mar 2021 03:46:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bUbpbAmGa+WHdAcs7JmPg6knKHg3kheTryAsRwK9KfRdpb4hKxhes9vo4nvHgmDpMnVo27fdzxtGV3cbxFlCYoT8FUx2N7XCUDbQWwRip5KWO0o4OG1c724Y9Jfouz4PfrWn7VJRA7GK60L46eyuL2uonCZqhXJ4MoKa2G9ovvMjL8N4Smi8DboeShR/oafMiTJWyR3dNfU41svZYeIczNs8Qb9j0D9/xqshgoHUnTUKAueouUucmJ8jwV06Cy6jkPNzgRh5Qjp7/6x4RFT59PWQuPAvINi21pzpTFS4spR0VC3D1FW6B30ZBT+JXIoqIMmI10vDW74h/HsZfLDDjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LtI25NhhES3CA4aQ1jeEV1zfPgxU3emE/VPcHcISoRs=; b=TTK3tw68gzEwFv5Ch4ZFAFacyOBWRpvGuyq8rM1Mrydv6dKVEZPjezIGfLajbK7P6JbmhT7KX+TtCDpu1KnexS6/pC9dZWeHXx3m59MCI3QlJjF7x1TVuHL1i07ThZIfJ22lHWHVHP3lS+SVLT3T36bHqdXqx+8SgqzhQDNPV2YyPHrpNQ4RjXJ2GLAm9mkDcSyYLwIWX2PYDeE1ua2VS/g6dyxgpkWS0Gv3QrouDJDNiSLUlmZ773/1Lqb3yW6DaX3oG367W/ZFI8/YIScVCLEwL2AFaMo8xmppXt0MGr8wGEPcjVPWdqpBU0/1GrSByhnXnYR+OKpAlium+EBrGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LtI25NhhES3CA4aQ1jeEV1zfPgxU3emE/VPcHcISoRs=; b=P0I9K4idERqHPDmS1AV30B0FMqUxZ3gwmA8zjkw61c3jmKrcgb5ENEL4F79NbqKAqHTrYzxMQ4ouDikrQ3+zGGoxh/rMv+cH+AtgbBHdbyG8rSxqesG7/UTiQPbcyQxSycNeWEl7DkanZgpGaaELog0nLp4v7abcgpxOuh+AyFI= Authentication-Results: connolly.tech; dkim=none (message not signed) header.d=none;connolly.tech; dmarc=none action=none header.from=oracle.com; Received: from PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) by PH0PR10MB4616.namprd10.prod.outlook.com (2603:10b6:510:34::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 03:46:52 +0000 Received: from PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::dc39:c9fa:7365:8c8e]) by PH0PR10MB4759.namprd10.prod.outlook.com ([fe80::dc39:c9fa:7365:8c8e%5]) with mapi id 15.20.3955.018; Fri, 19 Mar 2021 03:46:52 +0000 From: "Martin K. Petersen" To: Caleb Connolly Cc: "Martin K . Petersen" , jaegeuk@kernel.org, alim.akhtar@samsung.com, beanhuo@micron.com, avri.altman@wdc.com, asutoshd@codeaurora.org, cang@codeaurora.org, ejb@linux.ibm.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, stanley.chu@mediatek.com Subject: Re: v3: scsi: ufshcd: use a macro for UFS versions Date: Thu, 18 Mar 2021 23:46:33 -0400 Message-Id: <161612513552.25210.14724545372813795454.b4-ty@oracle.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310153215.371227-1-caleb@connolly.tech> References: <20210310153215.371227-1-caleb@connolly.tech> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [138.3.200.9] X-ClientProxiedBy: SJ0PR05CA0182.namprd05.prod.outlook.com (2603:10b6:a03:330::7) To PH0PR10MB4759.namprd10.prod.outlook.com (2603:10b6:510:3d::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ca-mkp.mkp.ca.oracle.com (138.3.200.9) by SJ0PR05CA0182.namprd05.prod.outlook.com (2603:10b6:a03:330::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.9 via Frontend Transport; Fri, 19 Mar 2021 03:46:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74d9c33a-0118-4239-8e7f-08d8ea89a1f7 X-MS-TrafficTypeDiagnostic: PH0PR10MB4616: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a4fnXl3pzisA390hg6HSpSRnqihuTuFFMYpE8QB04LRctud9TVUPApBNIlq1BgSyLwHBjS7I4PPjxU4ifjm+IXvXsUCWEhbloohga3NtDymiP6dGvLnpZfQW6/uGt+1qhVB2WyZ0h6YG/wiwgZ7H4uMkZgZdqfGZQOWtjAcgthW6uA7CTZ5QLGCP/fRW1F+bAzZkB+ExwNsZm5Yf+ZJf+iagByVMnH9y/BPiMBLYiwmm01hOiPD4kEbiblQIqCFguVFSHVWtrDl+VO/4H2n1EU8D2uKH1dRBJ6M+9VuL+MBcbX7CUypTVphInycMb24XhlXb0LSD5L2/Dt0tMFDw4DLywbSzrDPLVhf74Ps7WGocaBeNq6OI3qhZ22P420Ehdp9n36AP46ILtJVcapeGb0JZQP2757BBLZBCTiXRCPu/6XiuhJAvUSvjB1hg3yb6S7RO6ZfftcpyeY6+dwjhiQ89Kdde31FDVltI8n1NXFshog31CqNLMR8RHlMTMBTdWRYXfRppymnKxH/XxUnshUtIiFnV/lmhRrpTA5OMz1gPGqH3nHr2df5blU6DTeAVybOEEtNGwryXPjdSQsmsTVW+sJTRJRD47/2w645Y9ZNiyq8jXow+pw3G7qqcNot5Tq2MbN+1+eIi0dSZtvmDU6d0sXSr2nZmwdBJYARg8MRmdUNmQngQTT7z9yVVu/jo+y/TshaLy45vsDdz4gosS78h//h+dF8SxaLTiD9/His= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB4759.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(136003)(346002)(39860400002)(366004)(396003)(966005)(316002)(4326008)(478600001)(4744005)(6666004)(66556008)(8676002)(103116003)(38100700001)(8936002)(186003)(6916009)(36756003)(6486002)(16526019)(7416002)(26005)(86362001)(5660300002)(956004)(2616005)(66946007)(52116002)(2906002)(66476007)(7696005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?SGhaSUNFSFVaQS9WL3lFMDJqcWFxSnJZMFgzOUkrckdlb2tTRmFHVytHSGV0?= =?utf-8?B?bEZGUUdaR291bEZHdktjbDgvMGhGU2RqVWt3dWlGcFhZUHJQNHBGMkVCcUF5?= =?utf-8?B?Zi9GbnZXbllUZVJkV1ZTZDRLZEFRM1FCdWFIdXdlVkFhcWRuZTY1c0dPNHZ1?= =?utf-8?B?d09vQ2FYNzVoaGRzN1NtLzUyck1nQkJFaWJxQWc4aXVaZC9PVGhlemhkZXkv?= =?utf-8?B?R2xZTGlQVWxSajB1N2p2NlRJM3FuUEdJcGpRckNIL0JIOUNFZGNMZXRBdHla?= =?utf-8?B?THlPMHhES0c4YklXZ2NMV3hnamlGUStxTTdIYW5hRjFZU2FRcDJoYnNQNEw0?= =?utf-8?B?NUtOWmk4aUJ1K0hvYTg3ZWZDV2NBMUVGRzF1YjlKak1uaHJvVnp0SFR1TjRN?= =?utf-8?B?d2xORnZPK3puNXJRM0ZPV2ZBRXViT09EQWxZSW0zVkh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lBOcTRMQVZZemdTOWYyUlJHaTRpNVkwL3Z3K3lQaDR6?= =?utf-8?B?K0hXR3Z2WHFXZS9GaENBRkR5YWdGUjNKQ1ZreTc5NUxYVDBNbktqTlVXS2Q0?= =?utf-8?B?eUoyb0w1ZTQzL1RzTnIvb2lBbDVtWURkUmppWUlzbkhhZUlkYVpsUm1DZm02?= =?utf-8?B?YzlHam9qS1F6TkFSM2svNDF0NFFXMitVZmpmUDBpS2YvNXJJK09XcllFN2hk?= =?utf-8?B?U29iRmN6cGhSR2hMbXhyZnNhWHozT0RtbDd6bVZmWWRkL1hKVU83eWVsRUs0?= =?utf-8?B?N2xZWXIwYnB2SVpLVmR2Z1N0S0tTcXFZREkzZk9CejhXMGw1RC9kZk4zK3RZ?= =?utf-8?B?cWE3S0pTVFF0RWtNTFo1YXNPTGNsaUtVOVNLSG84U2lQdmN5S0JZR3pyMWRk?= =?utf-8?Q?aw67s4kYM5byBgIwd1K2IEH9WQYaioR518BP+kg?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74d9c33a-0118-4239-8e7f-08d8ea89a1f7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB4759.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2021 03:46:52.3312 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: j/egrF4g8VYYxgBMdz+WSNknSiTcxKTkRpeScdsbVk70BKxfbOR41Vu5+ZsM5O6EExatOL6dBoADEjbU9VNVsAa6T+xsn9KQofupckVABqg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4616 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9927 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxlogscore=811 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103190023 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9927 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 adultscore=0 mlxscore=0 mlxlogscore=983 lowpriorityscore=0 phishscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103190023 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Mar 2021 15:33:30 +0000, Caleb Connolly wrote: > When using a device with UFS > 2.1 the error "invalid UFS version" is > misleadingly printed. There was a patch for this almost a year > ago to which this solution was suggested. > > This series replaces the use of the growing UFSHCI_VERSION_xy macros with > an inline function to encode a major and minor version into the scheme > used on devices, that being: > > [...] Applied to 5.13/scsi-queue, thanks! [1/3] scsi: ufshcd: use a function to calculate versions https://git.kernel.org/mkp/scsi/c/514288180178 [2/3] scsi: ufs: qcom: use ufshci_version function https://git.kernel.org/mkp/scsi/c/f065aca20a26 [3/3] scsi: ufshcd: remove version check https://git.kernel.org/mkp/scsi/c/4f5e51c0ebf0 -- Martin K. Petersen Oracle Linux Engineering