Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1735622imm; Fri, 6 Jul 2018 05:42:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVS/ORwjaqdoSXUa6o6volrFgpuyaCurcjz8FJFA0+2nT+a8gWOmgxhFegFDSZwyEn9ZAM X-Received: by 2002:a63:b349:: with SMTP id x9-v6mr9323385pgt.337.1530880930938; Fri, 06 Jul 2018 05:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530880930; cv=none; d=google.com; s=arc-20160816; b=Ezos5V9Q4qSXnlHdHc6QUT9byB3ekD5ICcc28qtceh+o47cQs5s+0SVbluCPcYE96S nypvn7XuflIBiONRX1Qbkd1/aO8qeB1oyJhgo6ThRVV2eLi/FRtLe7ghXRimsQYY94z+ F0soVDGKzeGmGmkAEqQD1O31KFFIW7SD+ic33OCP8qG939rzXdUkhOz2CpC/x77ohpk4 kOLPAJVmIvdINseO9dmTg9TtUrG0uR4EbHG/S1qnxq3AG9PTFqW/PHHhICCVdg2zvL+z lC1VwZh9UC39bRxfU01ir+syLHQdBFPpJShY2BjvTdmteyw2wGoqCKoOYPgnITxkNJTM syVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BEk1zuHvkM854y23FSU7sVmFogZJOyTvgpbCLI4Wxn8=; b=dyOlurIgwaqptTjo0vVcbJFOXA0spccFGysDr0TLhis5QMMz1Xlkl9RU6HtnpPbuFn sWDzFFILvdg0SBVSCrw2TzoyUtPj7/7+dqnGY2xU4ob9+zWZvP+iayeAWShA2YsoY3/5 0SqodK0YzgpEIXbbh3jFz6SamPbNEX0vSbQR7AFKdtvtayhSeiUKqFAcDDefdg9aOxuP Ywzw7HZcolg84zzlkWYKmmMmwd5xQiC5q9aLehcOLaBJY0mnCbHTesgqk/e4YSWfZmMQ PFF2FqN/RNkGrajznJN9uYReqRshjSQCSPhMCGf5xXTlST9VS3D0rpiJ4loMPj1A9oOk TUIA== ARC-Authentication-Results: i=1; mx.google.com; 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 bc5-v6si8044008plb.413.2018.07.06.05.41.55; Fri, 06 Jul 2018 05:42:10 -0700 (PDT) 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; 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 S933118AbeGFMim (ORCPT + 99 others); Fri, 6 Jul 2018 08:38:42 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:56668 "EHLO alexa-out-blr.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933039AbeGFMii (ORCPT ); Fri, 6 Jul 2018 08:38:38 -0400 X-Greylist: delayed 437 seconds by postgrey-1.27 at vger.kernel.org; Fri, 06 Jul 2018 08:38:37 EDT X-IronPort-AV: E=Sophos;i="5.51,316,1526322600"; d="scan'208";a="98684" Received: from ironmsg03-blr.qualcomm.com ([10.86.208.132]) by alexa-out-blr.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Jul 2018 18:00:51 +0530 X-IronPort-AV: E=McAfee;i="5900,7806,8945"; a="470254" Received: from asutoshd-linux.qualcomm.com ([10.206.24.163]) by ironmsg03-blr.qualcomm.com with ESMTP; 06 Jul 2018 18:00:51 +0530 Received: by asutoshd-linux.qualcomm.com (Postfix, from userid 92687) id 20CC72FA3; Fri, 6 Jul 2018 18:00:50 +0530 (IST) From: Asutosh Das To: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Asutosh Das , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v1 1/9] scsi: ufs: add support to allow non standard behaviours (quirks) Date: Fri, 6 Jul 2018 18:00:28 +0530 Message-Id: <36c4fc866db111df0de7c30839a40727aaa3a98b.1530880006.git.asutoshd@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Subhash Jadavani Some implementation of UFS host controller HW might have some non-standard behaviours (quirks) when compared to behaviour specified by UFSHCI specification. This patch adds a quirk for broken hibernate support. Signed-off-by: Subhash Jadavani Signed-off-by: Can Guo Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufshcd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index f51758f..e996a08 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -613,6 +613,9 @@ struct ufs_hba { * enabled via HCE register. */ #define UFSHCI_QUIRK_BROKEN_HCE 0x400 + + /* HIBERN8 support is broken */ + #define UFSHCD_QUIRK_BROKEN_HIBERN8 0x800 unsigned int quirks; /* Deviations from standard UFSHCI spec. */ /* Device deviations from standard UFS device spec. */ -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.