From patchwork Sat Jun 10 01:20:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: butao X-Patchwork-Id: 9779587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 61454601EA for ; Sat, 10 Jun 2017 01:21:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5181428711 for ; Sat, 10 Jun 2017 01:21:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43CAA2863E; Sat, 10 Jun 2017 01:21:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97E8E28673 for ; Sat, 10 Jun 2017 01:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751660AbdFJBVD (ORCPT ); Fri, 9 Jun 2017 21:21:03 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:7396 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751641AbdFJBVC (ORCPT ); Fri, 9 Jun 2017 21:21:02 -0400 Received: from 172.30.72.57 (EHLO dggeml405-hub.china.huawei.com) ([172.30.72.57]) by dggrg03-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id APD06925; Sat, 10 Jun 2017 09:20:56 +0800 (CST) Received: from vm107-72-191.huawei.com (100.107.72.191) by dggeml405-hub.china.huawei.com (10.3.17.49) with Microsoft SMTP Server id 14.3.301.0; Sat, 10 Jun 2017 09:20:46 +0800 From: butao To: , , , CC: , , , , , , Subject: [PATCH 1/3] scsi:ufs:add AHIT for hi3660 ufs Date: Sat, 10 Jun 2017 09:20:45 +0800 Message-ID: <20170610012045.33325-1-butao@hisilicon.com> X-Mailer: git-send-email 2.11.GIT MIME-Version: 1.0 X-Originating-IP: [100.107.72.191] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.593B4978.012B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6b549c7bc45d543df5df15f617c558ed Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add Auto-Hibernate Idle Timer value for hi3660 ufs Signed-off-by: Bu Tao Signed-off-by: Geng Jianfeng Signed-off-by: Zang Leigang Signed-off-by: Yu Jianfeng --- drivers/scsi/ufs/ufshci.h | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 drivers/scsi/ufs/ufshci.h diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h old mode 100644 new mode 100755 index f60145d4a66e..5ab9dfe4280e --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -151,6 +151,9 @@ enum { CONTROLLER_FATAL_ERROR |\ SYSTEM_BUS_FATAL_ERROR) +/* AHIT - Auto-Hibernate Idle Timer */ +#define UFS_AHIT_AH8ITV_MASK 0x3FF + /* HCS - Host Controller Status 30h */ #define DEVICE_PRESENT UFS_BIT(0) #define UTP_TRANSFER_REQ_LIST_READY UFS_BIT(1)