Received: by 10.223.185.116 with SMTP id b49csp2578837wrg; Sun, 18 Feb 2018 01:48:17 -0800 (PST) X-Google-Smtp-Source: AH8x227jd//GWvL9rAoPUv4FR2mSuZoI9JIE/NiQ+OTj/8lN31krh9ymUEak2S22ZDaDTLSubhIW X-Received: by 2002:a17:902:183:: with SMTP id b3-v6mr3758287plb.80.1518947297179; Sun, 18 Feb 2018 01:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518947297; cv=none; d=google.com; s=arc-20160816; b=meWDBp0DAN8tRlOuWjhMhFtqf6R/GONZi80tJYbAr5voR2l1fNL6Z9GpvmutxzlcwS jcrFO3eMoBFDSzFpRRe/qNxoDXofoPJCInSEDIRaQGjksW6IPFVLI/Xf0JJqSdh8aCHl 9PcEpkloiqbkTWq02D7ei2NsFiGcYgoJbccqyUXKyy+0RAUhZnA6Jl9lPwAGIzg8bufK +JT4nEjVkSf8FV1zZYds6k916ClSl51bKx+TMXKwI0gxUlVYNQ0XuvRLO/OuX9xXnrpn qMY2ZI4Y+SbYejHYcTVgcxn3GUZXDL4H+HGjVd+ZxsfmDmIZ+b23MHiID6Ukp6heo62B Mc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:wdcipoutbound :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=S9iQeOWPht1cuXtNBtZC+WjyybNXdsYNG0EtYhGNi1Q=; b=pnZBhKo8hpA915f0KgaLs5TFQmj4zcfS6m8/zztA6ZcPB4/g3EsofdubI6J4ie6h2c bk/NX+7+FGSWiHb4euqYqFp5z5zm5IEHUDU4jNO6Rgf/GILqpFARn4S8hyn4SsSNUbFK mpR2gtaFzGt7aYTtCSElC6Of4xUXY3l2e1LGUGYeieZGlTO6dnYu2H+HEEbOn6+/x9ZB 5sHmHZEmHJdEvTq2RM1J8y+UXdwW0A9WOGLMNucHeqLJn7whKZEHYVNCfHK4//el+8+A FYE7zfeY1CQDBxHHKjn5wRZCwJInmNeLlZAKDhXlrHClTtS+slNpNlUuGaT5R2Itq7R/ vI6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=J2ufJaCv; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=MoM3A1Iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i70si3109107pgc.148.2018.02.18.01.47.49; Sun, 18 Feb 2018 01:48:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=J2ufJaCv; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=MoM3A1Iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370AbeBRJqG (ORCPT + 99 others); Sun, 18 Feb 2018 04:46:06 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:14403 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbeBRJqD (ORCPT ); Sun, 18 Feb 2018 04:46:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1518947163; x=1550483163; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SCT7R3cdthfCbnK/iSmbig5y6t+B3ho2cZFsUkIwKtw=; b=J2ufJaCvK086APS7sJqdpNxK4S/Qn4xnTS/GMflkvt9Fkf64RTccLttN PvjialFKj25Yoe1l1oIaNNaWwZjm+K9fDfi/q5/q0XTSyHwMZfgM2x2OB cqVefGJ8Kj86Z5o8iU+N7gTIrXFfld/uzp/AS3U/yZTa9/jFjpRo+m3mD XiiJM5llTt5mNsVxK6Cgld8anxVehR+p0XXuzOdWJ5U1LDxSWIqlx+8Ay n2zhaWCyydwxgXy06N3bUKIt6jl3fHs4Bt+JlTeoQwZMIHKfmvX1g1qRe TYbOG9p+MS80fLM67Cmd7R2+G0Tw2IV8vKDAygFp0GQB8PA7Y7Mw53jxF Q==; X-IronPort-AV: E=Sophos;i="5.46,529,1511798400"; d="scan'208";a="174600303" Received: from mail-sn1nam02lp0020.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.20]) by ob1.hgst.iphmx.com with ESMTP; 18 Feb 2018 17:45:57 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S9iQeOWPht1cuXtNBtZC+WjyybNXdsYNG0EtYhGNi1Q=; b=MoM3A1IqWRcxYhKdlB3V3PI2fju1MbNl7L0gd5zJ7KwT+xN5Hl0Om0H6WtM71CPUVaEWGbpi8L//V0uejyAjgf1Q2eLdFtixSx7qbP66RvMtPKxJAiFfMnAk3PGhTY03gkxYEtbexOAGKfB2Br7wH5IZHuw+asBdO5J0dmyPwwU= Received: from DM5PR04MB1085.namprd04.prod.outlook.com (10.174.242.35) by DM5PR04MB1018.namprd04.prod.outlook.com (10.174.242.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Sun, 18 Feb 2018 09:45:54 +0000 Received: from DM5PR04MB1085.namprd04.prod.outlook.com ([fe80::e079:df5a:b22d:8154]) by DM5PR04MB1085.namprd04.prod.outlook.com ([fe80::e079:df5a:b22d:8154%13]) with mapi id 15.20.0506.021; Sun, 18 Feb 2018 09:45:54 +0000 From: Avri Altman To: Adrian Hunter , Vinayak Holikatti , "Martin K. Petersen" , "James E.J. Bottomley" CC: Stanislav Nijnikov , Jaegeuk Kim , Bart Van Assche , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Michal Potomski , Szymon Mielczarek Subject: RE: [PATCH 1/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer Thread-Topic: [PATCH 1/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer Thread-Index: AQHTpx3/OmHTDTQbnUWGhnSFilEwIqOp5/3Q Date: Sun, 18 Feb 2018 09:45:54 +0000 Message-ID: References: <1518782464-28847-1-git-send-email-adrian.hunter@intel.com> <1518782464-28847-2-git-send-email-adrian.hunter@intel.com> In-Reply-To: <1518782464-28847-2-git-send-email-adrian.hunter@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Avri.Altman@wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR04MB1018;20:gLf0dW1M1TPncdVlgcIzKIBsxiuYYq3lILxEQLB48yF4iO+6/tlRO3U+vdvWZ7AeNdzErBz5tbqkhOYoFyRwgi7u6AVIDvBSM8SbqW2cuGuUs23TB6aXOEvAwMA+zLFQPuIgJ9Evt6Qk4TfLte+FB/2OQSDKxMOG759I9KmicWU= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7902669e-3cfc-49e3-7c0b-08d576b467b1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:DM5PR04MB1018; x-ms-traffictypediagnostic: DM5PR04MB1018: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(85827821059158)(104084551191319)(146099531331640)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(944501161)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041288)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR04MB1018;BCL:0;PCL:0;RULEID:;SRVR:DM5PR04MB1018; x-forefront-prvs: 058707456E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(396003)(366004)(39380400002)(376002)(346002)(13464003)(50944005)(189003)(199004)(478600001)(316002)(2900100001)(72206003)(4326008)(74316002)(8936002)(39060400002)(7736002)(99286004)(5660300001)(8676002)(81166006)(305945005)(6506007)(53936002)(59450400001)(53546011)(6116002)(97736004)(229853002)(33656002)(6436002)(3846002)(2906002)(575784001)(86362001)(81156014)(25786009)(7696005)(68736007)(9686003)(55016002)(76176011)(14454004)(66066001)(5250100002)(6246003)(106356001)(186003)(102836004)(3660700001)(105586002)(54906003)(26005)(110136005)(3280700002)(2950100002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR04MB1018;H:DM5PR04MB1085.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: fudjOVu5RKogLKoty8FWbJiNxv85amjnXgNL1Xz2Iee00mAIuZsNGXW00KR1GLZxa2sqIzBAQ6TBLboIQC2zxwd/MrePgc6bGH62d5YGeSqYvri0xW48trANKLsPYClJ4I+CjGfMvT63Kv7rPpk+eCfvDv1G6H5KRO7tbcX2D7A= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7902669e-3cfc-49e3-7c0b-08d576b467b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2018 09:45:54.7575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB1018 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: linux-scsi-owner@vger.kernel.org [mailto:linux-scsi- > owner@vger.kernel.org] On Behalf Of Adrian Hunter > Sent: Friday, February 16, 2018 2:01 PM > To: Vinayak Holikatti ; Martin K. Petersen > ; James E.J. Bottomley > > Cc: Stanislav Nijnikov ; Jaegeuk Kim > ; Bart Van Assche ; linux- > scsi@vger.kernel.org; linux-kernel@vger.kernel.org; Michal Potomski > ; Szymon Mielczarek > > Subject: [PATCH 1/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer >=20 > UFS host controllers may support an autonomous power management > feature called the Auto-Hibernate Idle Timer. The timer is set to the num= ber > of microseconds of idle time before the UFS host controller will > autonomously put the link into Hibernate state. That will save power at t= he > expense of increased latency. Any access to the host controller interface > registers will automatically put the link out of Hibernate state. So once > configured, the feature is transparent to the driver. >=20 > Expose the Auto-Hibernate Idle Timer value via SysFS to allow users to > choose between power efficiency or lower latency. Set a default value of > 150 ms. >=20 > Signed-off-by: Adrian Hunter > --- > Documentation/ABI/testing/sysfs-driver-ufs | 15 ++++++ > drivers/scsi/ufs/ufs-sysfs.c | 77 ++++++++++++++++++++++++= ++++++ > drivers/scsi/ufs/ufshcd.c | 26 ++++++++++ > drivers/scsi/ufs/ufshcd.h | 3 ++ > drivers/scsi/ufs/ufshci.h | 7 +++ > 5 files changed, 128 insertions(+) >=20 > diff --git a/Documentation/ABI/testing/sysfs-driver-ufs > b/Documentation/ABI/testing/sysfs-driver-ufs > index 07f1c2f8dbfc..c7f9441079eb 100644 > --- a/Documentation/ABI/testing/sysfs-driver-ufs > +++ b/Documentation/ABI/testing/sysfs-driver-ufs > @@ -1,3 +1,18 @@ > +What: /sys/bus/*/drivers/ufshcd/*/auto_hibern8 > +Date: February 2018 > +Contact: linux-scsi@vger.kernel.org > +Description: > + This file contains the auto-hibernate idle timer setting of a > + UFS host controller. A value of '-1' means auto-hibernate is > not > + supported. A value of '0' means auto-hibernate is not > enabled. > + Otherwise the value is the number of microseconds of idle > time > + before the UFS host controller will autonomously put the link > + into hibernate state. That will save power at the expense of > + increased latency. Note that the hardware supports 10-bit > values > + with a power-of-ten multiplier which allows a maximum > value of > + 102300000. Refer to the UFS Host Controller Interface > + specification for more details. > + > What: > /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_type > Date: February 2018 > Contact: Stanislav Nijnikov > diff --git a/drivers/scsi/ufs/ufs-sysfs.c b/drivers/scsi/ufs/ufs-sysfs.c = index > cd7174d2d225..a0e38776dc92 100644 > --- a/drivers/scsi/ufs/ufs-sysfs.c > +++ b/drivers/scsi/ufs/ufs-sysfs.c > @@ -3,6 +3,7 @@ >=20 > #include > #include > +#include > #include >=20 > #include "ufs.h" > @@ -123,12 +124,88 @@ static ssize_t spm_lvl_store(struct device *dev, > return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); } >=20 > +static void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) { > + unsigned long flags; > + > + if (!(hba->capabilities & MASK_AUTO_HIBERN8_SUPPORT)) > + return; > + > + spin_lock_irqsave(hba->host->host_lock, flags); > + if (hba->ahit =3D=3D ahit) > + goto out_unlock; > + hba->ahit =3D ahit; > + if (!pm_runtime_suspended(hba->dev)) > + ufshcd_writel(hba, hba->ahit, > REG_AUTO_HIBERNATE_IDLE_TIMER); > +out_unlock: > + spin_unlock_irqrestore(hba->host->host_lock, flags); } > + > +/* Convert Auto-Hibernate Idle Timer register value to microseconds */ > +static int ufshcd_ahit_to_us(u32 ahit) { > + int timer =3D FIELD_GET(UFSHCI_AHIBERN8_TIMER_MASK, ahit); > + int scale =3D FIELD_GET(UFSHCI_AHIBERN8_SCALE_MASK, ahit); > + > + for (; scale > 0; --scale) > + timer *=3D UFSHCI_AHIBERN8_SCALE_FACTOR; > + > + return timer; > +} > + > +/* Convert microseconds to Auto-Hibernate Idle Timer register value */ > +static u32 ufshcd_us_to_ahit(unsigned int timer) { > + unsigned int scale; > + > + for (scale =3D 0; timer > UFSHCI_AHIBERN8_TIMER_MASK; ++scale) > + timer /=3D UFSHCI_AHIBERN8_SCALE_FACTOR; > + > + return FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, timer) | > + FIELD_PREP(UFSHCI_AHIBERN8_SCALE_MASK, scale); } > + > +static ssize_t auto_hibern8_show(struct device *dev, > + struct device_attribute *attr, char *buf) { > + struct ufs_hba *hba =3D dev_get_drvdata(dev); > + int timer =3D -1; > + > + if (hba->capabilities & MASK_AUTO_HIBERN8_SUPPORT) > + timer =3D ufshcd_ahit_to_us(hba->ahit); > + > + return snprintf(buf, PAGE_SIZE, "%d\n", timer); } > + > +static ssize_t auto_hibern8_store(struct device *dev, > + struct device_attribute *attr, > + const char *buf, size_t count) > +{ > + struct ufs_hba *hba =3D dev_get_drvdata(dev); > + unsigned int timer; > + > + if (!(hba->capabilities & MASK_AUTO_HIBERN8_SUPPORT)) > + return -EOPNOTSUPP; > + > + if (kstrtouint(buf, 0, &timer)) > + return -EINVAL; > + > + if (timer > UFSHCI_AHIBERN8_MAX) > + return -EINVAL; > + > + ufshcd_auto_hibern8_update(hba, ufshcd_us_to_ahit(timer)); > + > + return count; > +} > + > static DEVICE_ATTR_RW(rpm_lvl); > static DEVICE_ATTR_RW(spm_lvl); > +static DEVICE_ATTR_RW(auto_hibern8); >=20 > static struct attribute *ufs_sysfs_ufshcd_attrs[] =3D { > &dev_attr_rpm_lvl.attr, > &dev_attr_spm_lvl.attr, > + &dev_attr_auto_hibern8.attr, > NULL > }; >=20 > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index > 5d874e303d4e..d5fc2fa65495 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -41,6 +41,7 @@ > #include > #include > #include > +#include > #include "ufshcd.h" > #include "ufs_quirks.h" > #include "unipro.h" > @@ -3709,6 +3710,18 @@ static int ufshcd_uic_hibern8_exit(struct ufs_hba > *hba) > return ret; > } >=20 > +static void ufshcd_auto_hibern8_enable(struct ufs_hba *hba) { > + unsigned long flags; > + > + if (!(hba->capabilities & MASK_AUTO_HIBERN8_SUPPORT) || !hba- > >ahit) > + return; > + > + spin_lock_irqsave(hba->host->host_lock, flags); > + ufshcd_writel(hba, hba->ahit, REG_AUTO_HIBERNATE_IDLE_TIMER); > + spin_unlock_irqrestore(hba->host->host_lock, flags); } > + > /** > * ufshcd_init_pwr_info - setting the POR (power on reset) > * values in hba power info > @@ -6315,6 +6328,9 @@ static int ufshcd_probe_hba(struct ufs_hba *hba) > /* UniPro link is active now */ > ufshcd_set_link_active(hba); >=20 > + /* Enable Auto-Hibernate if configured */ > + ufshcd_auto_hibern8_enable(hba); > + > ret =3D ufshcd_verify_dev_init(hba); > if (ret) > goto out; > @@ -7399,6 +7415,10 @@ static int ufshcd_resume(struct ufs_hba *hba, > enum ufs_pm_op pm_op) >=20 > /* Schedule clock gating in case of no access to UFS device yet */ > ufshcd_release(hba); > + > + /* Enable Auto-Hibernate if configured */ > + ufshcd_auto_hibern8_enable(hba); > + > goto out; >=20 > set_old_link_state: > @@ -7843,6 +7863,12 @@ int ufshcd_init(struct ufs_hba *hba, void > __iomem *mmio_base, unsigned int irq) > UFS_SLEEP_PWR_MODE, > UIC_LINK_HIBERN8_STATE); >=20 > + /* Set the default auto-hiberate idle timer value to 150 ms */ Your commit said you are setting an idle timer in microseconds, Better use= usec to avoid confusion?=20 =20 > + if (hba->capabilities & MASK_AUTO_HIBERN8_SUPPORT) { > + hba->ahit =3D FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, > 150) | > + FIELD_PREP(UFSHCI_AHIBERN8_SCALE_MASK, 3); > + } > + > /* Hold auto suspend until async scan completes */ > pm_runtime_get_sync(dev); >=20 > diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index > a57d9bdebfed..763a8e6c98ee 100644 > --- a/drivers/scsi/ufs/ufshcd.h > +++ b/drivers/scsi/ufs/ufshcd.h > @@ -531,6 +531,9 @@ struct ufs_hba { > struct device_attribute spm_lvl_attr; > int pm_op_in_progress; >=20 > + /* Auto-Hibernate Idle Timer register value */ > + u32 ahit; > + > struct ufshcd_lrb *lrb; > unsigned long lrb_in_use; >=20 > diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index > 1a1b5d9fe514..bb5d9c7f3353 100644 > --- a/drivers/scsi/ufs/ufshci.h > +++ b/drivers/scsi/ufs/ufshci.h > @@ -86,6 +86,7 @@ enum { > enum { > MASK_TRANSFER_REQUESTS_SLOTS =3D 0x0000001F, > MASK_TASK_MANAGEMENT_REQUEST_SLOTS =3D 0x00070000, > + MASK_AUTO_HIBERN8_SUPPORT =3D 0x00800000, > MASK_64_ADDRESSING_SUPPORT =3D 0x01000000, > MASK_OUT_OF_ORDER_DATA_DELIVERY_SUPPORT =3D > 0x02000000, > MASK_UIC_DME_TEST_MODE_SUPPORT =3D > 0x04000000, > @@ -119,6 +120,12 @@ enum { > #define MANUFACTURE_ID_MASK UFS_MASK(0xFFFF, 0) > #define PRODUCT_ID_MASK UFS_MASK(0xFFFF, 16) >=20 > +/* AHIT - Auto-Hibernate Idle Timer */ > +#define UFSHCI_AHIBERN8_TIMER_MASK GENMASK(9, 0) > +#define UFSHCI_AHIBERN8_SCALE_MASK GENMASK(12, 10) > +#define UFSHCI_AHIBERN8_SCALE_FACTOR 10 > +#define UFSHCI_AHIBERN8_MAX (1023 * 100000) > + > /* > * IS - Interrupt Status - 20h > */ > -- > 1.9.1