Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp593798ybz; Wed, 29 Apr 2020 06:03:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJI/W4VRY+H5FYVnV/YUbKVaA0T+y2Mm4W4Y1OikkiwyFqtBm41AYF0esVMp6aYg0fk2PV8 X-Received: by 2002:aa7:d60a:: with SMTP id c10mr2423339edr.66.1588165426947; Wed, 29 Apr 2020 06:03:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588165426; cv=pass; d=google.com; s=arc-20160816; b=SKPGb9QLCeH/Um02ttKbdGlVKA5+zh6WkklbXTD7v4szVcSZ4OVnhoykkMTAMrZTum FrBxyAkZFVYFUA75TTqEbd9ozVdAkeYz2UE2DbNw+zHDYXrFgYj4qxqfepkkfGrnTHNR SByXVMYcetS9QJQL06NSRLqoitViVFzsNfiXqjtXbYC1WgGiCR/EPt6hHcvdFAs8d6mw O1t7JYJJHlGWtjbvyd17dfeJHLy9bu/kllb11M1JsRzHZaq85DD1c+Jdos/DSVRsO2Pr E6EawP53zCpWYK9T3z13g/I/JqAvGjs2jZcliybh1kVLoFwSoF9q+vYc2ourpeKEZWf3 u8+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=m0gcNDe+fB7lo3m8pjWDRrBC7TLzh7VYq9TadfTKE08=; b=PLWq2eXNJ5m7/AzWYv2seToxokfv7Y0xiY/y5PrUU1Mk9L16+T5crnbVyLWSSDyiXJ 8nbmRCbuT/FxBJwP+Ul5jk5MnuAC+hY/6H6eKDyc0R2wwmJFytshnrCWsGCrGlWkDkgQ tQCTJ5t46opWEpLe87Inv6x5xtAqhyrxK3d6dFcQUxbvBeq+yn1Yx0xGSqrZyjvtm6JM 5pXctJTCC2Br2fQOmsPJ4GYr97lV3ZpvlCZr2Hxy+GdVM5udEU5bDlJ7wcqlb0wf3WIg pm6nh4LrzlgL5SXhGFy0RfnIkS7oNd0a3MFwVLibQk3zmmvWFMXcvAZ3H8glFGPt7Nlm f3aw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@micron.com header.s=selector2 header.b=Z2Vb7d4X; arc=pass (i=1 spf=pass spfdomain=micron.com dkim=pass dkdomain=micron.com dmarc=pass fromdomain=micron.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=micron.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si4032271ejn.176.2020.04.29.06.03.17; Wed, 29 Apr 2020 06:03: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=@micron.com header.s=selector2 header.b=Z2Vb7d4X; arc=pass (i=1 spf=pass spfdomain=micron.com dkim=pass dkdomain=micron.com dmarc=pass fromdomain=micron.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=micron.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgD2M7L (ORCPT + 99 others); Wed, 29 Apr 2020 08:59:11 -0400 Received: from mail-mw2nam10on2078.outbound.protection.outlook.com ([40.107.94.78]:49536 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726617AbgD2M7L (ORCPT ); Wed, 29 Apr 2020 08:59:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dhpyyYWgx1n5okarqDHTt6NW8ZeI39TivG6cszWBb7ECl8/lcsEhne8nysHFp9TKZAytMa3Xy34JqQb1nciATMQCeUyPKA5EYNm/ZnR2BP5YHuJEVIXKiKLIW/cuQv8YFHXjVD0vS96qIrOnPmB3QbiPU+BNCMpFAXtXwS4db9eBZ7yXVIIGCmJFWGDqHFdPIksXFY7em75omRteuKiXgOWKKY33L40YB0UJMiwcRDt8OS6P6tN3oIyWxMXnqaZCM8kbA1jDOAjQG2kby+OYfMJLNWEAcF7Yes0C0FBXYiMaMaCv5Xgy45jOKIiGXmKmMCdsFi9xOKMgoIsAxI6BlQ== 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=m0gcNDe+fB7lo3m8pjWDRrBC7TLzh7VYq9TadfTKE08=; b=Ak8I0MutvTNoHLBkwWldYITLdszPvvsRu8KeWAKYWNZSNSmZx8BQi7lDG5BcRJXDG0TU8ZPOULlqfUdVLxh8ZuJfGqD8s0SsDe5t39LpnKOoVpJ1kY5wZcPf58+LN2TDEX3OsPLfRoVcUQQSrveh0eqJisR014TZ6vu7TPyZ7+7HHHSdOuAGWek+QAn3wvHVX23bH1T91PxtCoYCEGTP1/5O8NmUIGXPxPkv/M/iP0jdfZBiOiVgt1+wglEy/ZfGC+TfqyKPLHltpAhRiwAoRUfvio17im+xGaiRcK5b9N3IzfTYELJTdCdHu/yzpQ7SQXhIeniQ4OOEj7fhp3AcnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=micron.com; dmarc=pass action=none header.from=micron.com; dkim=pass header.d=micron.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=micron.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m0gcNDe+fB7lo3m8pjWDRrBC7TLzh7VYq9TadfTKE08=; b=Z2Vb7d4X3/tHYtjcE8POE503NedEy7cWxtzvS0f+K/mn4/jD2M0KGNPca2Z/6nGYwdwIegGwlv6NGM55CAqlIe5n9cxVKTsKZcXaN4VtVdneMrVPtAXctlyMOzDkmNnb0Ci0jtPg4nRbPM0OzA2sEvBLkDnIJzpV/ah69eBrWGo= Received: from BN7PR08MB5684.namprd08.prod.outlook.com (2603:10b6:408:35::23) by BN7PR08MB5074.namprd08.prod.outlook.com (2603:10b6:408:21::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Wed, 29 Apr 2020 12:59:08 +0000 Received: from BN7PR08MB5684.namprd08.prod.outlook.com ([fe80::9ca2:4625:2b46:e45c]) by BN7PR08MB5684.namprd08.prod.outlook.com ([fe80::9ca2:4625:2b46:e45c%4]) with mapi id 15.20.2958.020; Wed, 29 Apr 2020 12:59:08 +0000 From: "Bean Huo (beanhuo)" To: Jose Abreu , "linux-scsi@vger.kernel.org" CC: Joao Pinto , Joao Lima , "Alim Akhtar" , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-kernel@vger.kernel.org" Subject: RE: [EXT] [PATCH v2 1/5] scsi: ufs: Allow UFS 3.0 as a valid version Thread-Topic: [EXT] [PATCH v2 1/5] scsi: ufs: Allow UFS 3.0 as a valid version Thread-Index: AQHWGj6R0nTpmn6fGEWz3ZvyHz0xNaiIaq7AgAdFZYCAAGWHUA== Date: Wed, 29 Apr 2020 12:59:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-150, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYmVhbmh1b1xhcHBkYXRhXHJvYW1pbmdcMDlkODQ5YjYtMzJkMy00YTQwLTg1ZWUtNmI4NGJhMjllMzViXG1zZ3NcbXNnLTM0ZmM0NDM3LThhMTktMTFlYS04YjkzLWRjNzE5NjFmOWRkM1xhbWUtdGVzdFwzNGZjNDQzOC04YTE5LTExZWEtOGI5My1kYzcxOTYxZjlkZDNib2R5LnR4dCIgc3o9IjEwOTMiIHQ9IjEzMjMyNjM4NzQ2NjkwNjE4MSIgaD0iYlhDS0o1WTVjS0hQeGlWelZCVHBEak5jeTJFPSIgaWQ9IiIgYmw9IjAiIGJvPSIxIiBjaT0iY0FBQUFFUkhVMVJTUlVGTkNnVUFBSEFBQUFCRkttRDNKUjdXQVZrd1lHUmdzM3dUV1RCZ1pHQ3pmQk1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFCQUFBQkFBQUFmM09FS1FBQUFBQUFBQUFBQUFBQUFBPT0iLz48L21ldGE+ x-dg-rorf: true authentication-results: synopsys.com; dkim=none (message not signed) header.d=none;synopsys.com; dmarc=none action=none header.from=micron.com; x-originating-ip: [165.225.81.119] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ee482eb1-5d3a-44ef-3ccf-08d7ec3d1aec x-ms-traffictypediagnostic: BN7PR08MB5074:|BN7PR08MB5074:|BN7PR08MB5074: x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 03883BD916 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN7PR08MB5684.namprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(39860400002)(376002)(396003)(136003)(346002)(110136005)(4326008)(5660300002)(186003)(7696005)(6506007)(316002)(71200400001)(4744005)(2906002)(55236004)(26005)(54906003)(86362001)(76116006)(9686003)(52536014)(66446008)(8676002)(66556008)(66946007)(64756008)(8936002)(66476007)(55016002)(478600001)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-senderadcheck: 1 x-microsoft-ant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YtYEnjq7/Zn8Z8dACWi9hvpCLPHmyd6Xkf5jOiAE1LBN+9dZog98VOEAEqeOnJUNL9b/WMk41yIL6p5s0VLK14yLhG0xqQstldZyeR2HZq0TlGVBZ9jbQTnH1HG48VvCDPpCN7I36wGEBOgb0apRwC+XgWiGiOU8htiYeStyojRT3ULD3DLKwEB6cKQhSlhGT9KtFDjacVPScRZRg1J4+43llLTLodLuq+LUpco0kcuuY= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: micron.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee482eb1-5d3a-44ef-3ccf-08d7ec3d1aec X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2020 12:59:08.4514 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f38a5ecd-2813-4862-b11b-ac1d563c806f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sGydVbNeeCcFYYP60IhZk8c8nQZnxvFN/PhMdboBOecqBIjuYGrcvjZ42V3hKQvo/I3AiyWpqAjwI8aEW8QPUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR08MB5074 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > @@ -8441,7 +8441,8 @@ int ufshcd_init(struct ufs_hba *hba, void > > > __iomem *mmio_base, unsigned int irq) > > > if ((hba->ufs_version !=3D UFSHCI_VERSION_10) && > > > (hba->ufs_version !=3D UFSHCI_VERSION_11) && > > > (hba->ufs_version !=3D UFSHCI_VERSION_20) && > > > - (hba->ufs_version !=3D UFSHCI_VERSION_21)) > > > + (hba->ufs_version !=3D UFSHCI_VERSION_21) && > > > + (hba->ufs_version !=3D UFSHCI_VERSION_30)) > > > > I don't think these checkups of UFSHCI version is necessary, does the = UFSHCI > have other version number except these? > > Is there somebody still v1.0 and v1.1? >=20 > Probably. I think we can leave them or change the dev_err to a dev_warn. > This way we have logs in case someone is using a non-supported version. >=20 > What do you think ? >=20 Hi, Jose Seems after your patch, all of current released UFS control versions will b= e supported except the version suffix is non-zero. Right? > --- > Thanks, > Jose Miguel Abreu