Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4629299pxa; Mon, 10 Aug 2020 14:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzREJrAkbB12tl7j16dbdTSzhZh2lJUVecdbqNCvUpTyY70i/ixWq/7QyeDvHLxMISB5wAb X-Received: by 2002:a05:6402:b26:: with SMTP id bo6mr22980381edb.104.1597093331033; Mon, 10 Aug 2020 14:02:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597093331; cv=pass; d=google.com; s=arc-20160816; b=K07HEqF6q28yjbJgLCpaBPLpjnAZAczx46p21OwQIMvoE3ZmqEVSY+dgIqcI3qrZ3P +KGfbSYt28rembrWA0azANz7epImkGdU9cxiXSZzU9x34oQWDIpC9MVjwOSpJHdTjjtf y3YZLZHanGZ4jrJD84CY7wU38x39DccQElbJzOGDNc4HZ+APYHGOk4zLCmD968EEf4Fo eRNSMhhixy/E8UOjheqcq5RIxeLNMf8vfVBm0g0GajIjy2QXEv1WamAUmU/iOl1UROBl ym5h+mwRZFpQ8BwFlsA7S8LA0lbn5H7jolaxeXbL3QyeIwNfk4PGKMRIKnf7Y9+g9cuX TlOg== 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 :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=0FohuZoPBfwK4Oz+oXKhchVmpsOsG84ZbQ/rE1JNQvw=; b=zw3bF9BTxKIsNrbMUgurKT8woAd9xa1BFe2m6qfzz4LixcyePRgsVvknjbJ25zA263 mUAF8BUv/IHl5fTgz3YIJx4RN+sdGzuhEHSuzPO2x1BjGYR9AsLfoOmVWvzgTpHNsnmo ukX3OP/ZbU4GQ3hkCqT/lkoeDnNRO0KzbCA15TaFgq2YvPB9FyDWWkDYC8I+ey8lyaCM lJnl7cA0MOOHNX8dHwjVsdskApz9ZM547QRxOt+3KZuLgTDJTZe/Z/wC8wWnefOztFyt 4A+a34pHc9y180bLnkVJYMM6cL9ACxgitv+hxTqpsqiPBzs92SeNfV74Ocxw9aJFjuMk 210g== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=QZ2JaXJp; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=ZxOYay2L; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp21si11601862ejb.136.2020.08.10.14.01.43; Mon, 10 Aug 2020 14:02:11 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=QZ2JaXJp; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=ZxOYay2L; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726587AbgHJU7C (ORCPT + 99 others); Mon, 10 Aug 2020 16:59:02 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:37291 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgHJU7B (ORCPT ); Mon, 10 Aug 2020 16:59:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1597093141; x=1628629141; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0FohuZoPBfwK4Oz+oXKhchVmpsOsG84ZbQ/rE1JNQvw=; b=QZ2JaXJpP0xhb1flozAh5LSPCiCps/FTOUro1u88TmckIk+gGCOGwx/S N7u3H5F65ixlVUzPs+NpjWoZAnhPbnswp2dVUYosMOr8XO3raBY+ZJU1P 9+1xTovQu34rJk6yfv1iFkv066m/36TuTxol1UfBMPbn7j3nubPa0A/lC NGOrO01lUIdI/sndrAdvPdOTE+7SitaDFBDNTzPX/yWHR75VYrn4txHHE pewW69kYthfHEPuMut8860ccqazPF3F30rG0Q8vogMEdYR0EIoe+1JG5n 8zOsTiFz7qxT5qRQqLnEYBYn8tMUQKQA42MrrURyPvPl0/ivW3Ec9Y1rT g==; IronPort-SDR: xEQXW6nFhxVE10SdrZVyjXdxoLjPq5F33p22FgfNhJuFfhYuMAi//WPF8eyXDRqwIAUlGr7YLw px0Ez9HckPRKfW24y12qk1I58+dXVZAjAvQGfGdXY/0guOu0PnzEwzR0w7UCZsgS8nkHxTs2eU h7zEI+vpDxbNqbv3RITn/X1HQrlcEzjzvszWNJcaSK/qnMVeLUdokoPMWXUqD/EwFHkS4Vqkr4 2KpsTin4Ef4r3Z4/VCr84rMyE7WysVbl7G8o6T43ajM4nav2pR7zQ5uWoWscInaDPnFiTWUGZf gBk= X-IronPort-AV: E=Sophos;i="5.75,458,1589212800"; d="scan'208";a="144657934" Received: from mail-bn3nam04lp2059.outbound.protection.outlook.com (HELO NAM04-BN3-obe.outbound.protection.outlook.com) ([104.47.46.59]) by ob1.hgst.iphmx.com with ESMTP; 11 Aug 2020 04:58:59 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UxtFvqYCOi57m1fnYZJ+0hQZ5YBct0lkAjFkC/MITcSNjZ08EVE2O6Sgl9VkEEis3ZYVZl99hXD6hsRWP5NFpEy1oLrnM+uORumBxuAU6rJF0C0OYnxZIwgMpNUDPCdW+bR6XyeXLs5cKKSyyJRMf14YAW3YL6tEkyRMJOKKIBEPVOe0qWKqpnITVhv7n2YbNOWbqCrpUiY1tx/YESRCVmQCMpX89zwvFgkt/i1zl/TDR/f97t3RuRXaTLQtH7+0uabUXxkHKACMmps0nLehaabiUzHrHC+dxqc9glgDiatjs1HmeUK6163w9XVOUfB9Y+7vimz2Wjjt/GFXmdVA7g== 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=0FohuZoPBfwK4Oz+oXKhchVmpsOsG84ZbQ/rE1JNQvw=; b=gvBj/nej6jJnFlDJi2CHY/5tIDbw6hIguXO8k8FoDudYsOsQZ5yEDv/WxwM9ClGmPLNArW6RZaQDeosGGr2AQogcnL4EWqLLeX1qx49hEhRfSjLs/HdCKWK0BzNHGipHiLz1qXzJSxQ4dFiX0PqUU3pERRQNw63I1LRFhRXa8xDNvqBTPGngZfdoxP5TYVdwdZswP0wtDjG1EZFOJ7num5U5LRYj39mia71XeNMVc2cPCAbLxPqzw//cdhGb5yw7hnmfJJNs2qtHBE+zx+8/EPBC036NPo+j8YzYKqi42wXX5Hanelke4X/PIdkgsllnBPsE9gCvt7bENrmGs8ztug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0FohuZoPBfwK4Oz+oXKhchVmpsOsG84ZbQ/rE1JNQvw=; b=ZxOYay2LfX87Dz9398rBZd5/+Q8CadxQ5Y+TEEhDPtcN3BldjBhX4/Qs1qT6ocy1QyoO3bxFyY7qlUR9+CVWlsr7yG2Jf/dzvO/R0xXc3PWuACpEHKXEcsVIs95vRFrXc5l34OTYRgTh3m663gXpPY6Bw35/VJNdwPy5oW+q9TY= Received: from SN6PR04MB4640.namprd04.prod.outlook.com (2603:10b6:805:a4::19) by SN4PR0401MB3551.namprd04.prod.outlook.com (2603:10b6:803:45::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.22; Mon, 10 Aug 2020 20:58:57 +0000 Received: from SN6PR04MB4640.namprd04.prod.outlook.com ([fe80::c86c:8b99:3242:2c68]) by SN6PR04MB4640.namprd04.prod.outlook.com ([fe80::c86c:8b99:3242:2c68%7]) with mapi id 15.20.3261.024; Mon, 10 Aug 2020 20:58:57 +0000 From: Avri Altman To: Stanley Chu , "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" CC: "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "chaotian.jing@mediatek.com" , "cc.chou@mediatek.com" Subject: RE: [PATCH v1] scsi: ufs-mediatek: Fix incorrect time to wait link status Thread-Topic: [PATCH v1] scsi: ufs-mediatek: Fix incorrect time to wait link status Thread-Index: AQHWbhHwgR3BsHpWkEyhFBMFuXwxrKkx1cJA Date: Mon, 10 Aug 2020 20:58:57 +0000 Message-ID: References: <20200809055702.20140-1-stanley.chu@mediatek.com> In-Reply-To: <20200809055702.20140-1-stanley.chu@mediatek.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mediatek.com; dkim=none (message not signed) header.d=none;mediatek.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [77.138.4.172] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3f1fca3f-1ec1-41c7-c2e8-08d83d70332d x-ms-traffictypediagnostic: SN4PR0401MB3551: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q9cz6l5XtBu/cVAcgu5E+6iroukpH4zZrlS/jyKzEXiK4pu9W6lB2X9WoFSzuvFbue0BWgnjVE0noa4A9lgwygglikzjjxXvCvRgpuf0SJOFjA+sU2Lotd8AG1HGg8MPjEm2jRS00Ng5vP63SOfcACOSX8iYhcYpClSy7mFNoqorOKliHdh9ohXC+hsQaKWYJPGCFoceB3uEq7SF+dTbGYmj3Vm1GXeOjtzeJva1x3Ok0ehkWB3QzuD6xkcn9IUuKQwsurVMnJxtj7DeziHVSiKfvJi4jSLoHKvmLPKK8eg9WeF68XsFeaQbWITrXAv02KLkGBVacZNLHgoxfZQyOA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR04MB4640.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(136003)(396003)(346002)(376002)(39860400002)(8936002)(8676002)(52536014)(4326008)(64756008)(478600001)(5660300002)(66946007)(76116006)(66446008)(66556008)(66476007)(110136005)(316002)(54906003)(9686003)(2906002)(55016002)(83380400001)(33656002)(7696005)(7416002)(86362001)(558084003)(26005)(71200400001)(186003)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: kNnqc5MvNwsS8gcLMdmx7c/i4nQ5HAsVEiEqImLcoJ+ID0iGJjt29V2xyN9RDxkI6blz6tiuEqUaTl3b7TXYqsWuOrSkB9HoOs2lUNrPVzEPDCuElwjKUKyfdEtt8WDlnkkAkxFI81fhXAL1hG1wEXmjJrOM1XTmEodVNvoFqhkqAknvq5FuPvWWlUvO0axR2r21sOIlNczdpKXwTCZZkIuBZwgiFaQfmNDNlXex30KKEs7vikfvDSGMp8vaPIm+4G7tQemnrVAqButDmpNOdDU7PZfH3OGFjwt6OSGKbRU+byKYioyq0PUPZVrPq+dyi197sGgB/tUknxYJLRkjUGx/i9kikfesqHvnRE3CgtXgq6NHraHsnI0Yo5vypzjuvpxvY9xUbpH3YPHiLKtUY5tTFduU7MdMm1ZsUdML4zhlLorPTuKEDnvEzU9G11ludK0B4DLm89YziFWq3ON0BXoy0A/IeYjB6Xep+3O/B5qSJJffoLEqYcVFoq4Njx6SSg4/5uAiD+ggTJY5HK2ElxHMpi6B4kIwosX4XnhVY5+rhWLCdgF0AZ8tHZ02N7kpy5/jj0rbGViYlZ+KjfzmA36PnHK4/U3GRoWjGjNxxImeBPcvHc3aKYg/hIDcqU4jgFtLT3TH9CXcIct3E3Gp3A== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4640.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f1fca3f-1ec1-41c7-c2e8-08d83d70332d X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2020 20:58:57.5784 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: g4jG0ej/nNGObeumoWDC+XQeG9FoBYGloT+2VPxFRMce/W55J+Fck5y7MKlNZEYDim6thtj8ePSV5QGIbOFd3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0401MB3551 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =20 >=20 > Fix incorrect calculation of "ms" based waiting time in > function ufs_mtk_setup_clocks(). >=20 > Fixes: 9006e3986f66 ("scsi: ufs-mediatek: Do not gate clocks if auto-hibe= rn8 is > not entered yet") > Signed-off-by: Stanley Chu Reviewed-by: Avri Altman