Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2513122imm; Wed, 16 May 2018 14:14:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDbbDE1MvT5Z8BDhSyFi5uwMAr52ghjsz9WVXk7XzC3PwrL0tKqsBEZWocZHjdQJEZfXx5 X-Received: by 2002:a17:902:7406:: with SMTP id g6-v6mr2398463pll.237.1526505244125; Wed, 16 May 2018 14:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526505244; cv=none; d=google.com; s=arc-20160816; b=A1NuoLFX7Ou6Eom4ysURKOObu1nDlCJn1KjFuMHyxXXjSVy5exbeNLVH34AzEqYgdG 88MHUEuwsAOmLEC9vISpqFIkvPXvr1jFuM5wbrc0++iBOfjIr+MPUtPJCDetd9Ho9k5u nxxrxr81CcSxEW8Ii9hynEY6A1FgbIl89uZeB/i6+IYwUFzhxdd/7u6LefogUfbOf8yO FF8oBrpcDYlfIVwKi6rnWeZ/M6VfvtuJGH8ZZiYoHt/fP5yZBQkH/BbmdMkUWaw1kq4D rgNYfQWVb9XGDYU+HO+HX4/V8bclyE9jtpJK3754SDCaQUWQJW9QyUvCflkxIAm9wpWJ u0FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=D0PcAcdXxqRa6pREvYSvac56Wg9nQNNXI+tGpxNKjf0=; b=BV5Vr3DtSX+Vs9A9Mv1l7Mes15CFvWAk+3ZPPXlLK/6QBuvFLA3QqsAMBaZu5KYcMu aTRd68oYknMsKGnGfdh8bBwasVCsHPujs3/bTG4WKgZlaU/BXYiAz9nrzyNOjxxHfiD3 UMgqsppiH96N3187bXl1EZf6AtuvV5/uRqxolFLBEH0iSkiaX+PB0l8B62FWi0rLeFXi dxASfnxZlZuV9/e7sDO/OX0D340cmWBV9N/i1ZjNqdsV6DmuCczSDaPF/KtRguE1sN2o ys/8ZppuEGIe1sLB5/Ibpov7lBY4OxIWY6wHZ7WX+w9IGWsNbjDKTZJYOrNFo7sCU/Kb 9NRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=eea2f896; dkim=pass header.i=@codeaurora.org header.s=default header.b=dLvxnYmx; 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 v11-v6si2652905pgo.643.2018.05.16.14.13.49; Wed, 16 May 2018 14:14:04 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=eea2f896; dkim=pass header.i=@codeaurora.org header.s=default header.b=dLvxnYmx; 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 S1752295AbeEPVN2 (ORCPT + 99 others); Wed, 16 May 2018 17:13:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55322 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375AbeEPVN0 (ORCPT ); Wed, 16 May 2018 17:13:26 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 28B396085F; Wed, 16 May 2018 21:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526505206; bh=UFYFyMJqGOuj0f+zapUsOyY+AQQ1XUc3zxrCLjM4aYA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eea2f896BljJ0us1EuRTn1PFgCBp9PDDur9daVPyyJGDpTJuXlZ6xrvxpVr4tjSel t3NMxvAeGWirmKuVlsYHKEAYTsiRy47qlQ1oqnlp0IBXbB/BwJzej7Yidu+he4xOpu lWIwY1rrOziZqmJwY4oP6V/gLiLEKUDtcnHuIE/k= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id BFB9060209; Wed, 16 May 2018 21:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526505205; bh=UFYFyMJqGOuj0f+zapUsOyY+AQQ1XUc3zxrCLjM4aYA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dLvxnYmxKeD6ux66UU8nfO0utsIw9B+Gg6XGQxnG0t2XUy2V+57wVEfvLVNnrMkmC jl+vfPiiwjth5ZtrO1LxA1j86zvLoSFrbvAiHFEaGYo0YAfShhqZFOzdgQ42/RLzIm goRKbwgQi2/VDTIMFAGcs0m6mh9wtTRDR9kfg2R4= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 16 May 2018 14:13:25 -0700 From: Subhash Jadavani To: Asutosh Das Cc: cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi-owner@vger.kernel.org Subject: Re: [PATCH v2 07/10] scsi: ufs-qcom: remove broken hci version quirk In-Reply-To: References: Message-ID: <31fe63a7a6497299dd2902fb15cc6346@codeaurora.org> X-Sender: subhashj@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-03 04:07, Asutosh Das wrote: > From: Subhash Jadavani > > UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS > host > controller version 2.x.y and this has been fixed from version 3.x.y > onwards, hence this change removes this quirk for version 3.x.y > onwards. > > Signed-off-by: Subhash Jadavani > Signed-off-by: Asutosh Das > --- > drivers/scsi/ufs/ufs-qcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c > index d9edef8..27be327 100644 > --- a/drivers/scsi/ufs/ufs-qcom.c > +++ b/drivers/scsi/ufs/ufs-qcom.c > @@ -1103,7 +1103,7 @@ static void ufs_qcom_advertise_quirks(struct > ufs_hba *hba) > hba->quirks |= UFSHCD_QUIRK_BROKEN_LCC; > } > > - if (host->hw_ver.major >= 0x2) { > + if (host->hw_ver.major == 0x2) { > hba->quirks |= UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION; > hba->quirks |= UFSHCD_QUIRK_BROKEN_PWR_MODE_CHANGE; > if (!ufs_qcom_cap_qunipro(host)) Looks good to me. -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project