From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2EB5C5ACC4 for ; Thu, 20 Feb 2020 01:37:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B258824670 for ; Thu, 20 Feb 2020 01:37:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CEOdBUYG"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="IMBrMsFN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B258824670 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VN0dMVHStmhWieW4qXITwaPGUluRZ5HGwg846xKKHRo=; b=CEOdBUYG1EbiHgQDD5kDItwxi 5u2sL5PQI1OwA2vgVP3uYwqhFTLYfNTuAP4Az8+EaoVPE9EgRd9/sKH4BIpNYMCUJTIGa/QHcQUTc Av7//DbGvbIn3PAdYbuTVZiWwIRp448opOqohdvSnt640bCs8K4tEQNrMxXIqSwNhyd+QDQvvnxp/ DN/thGasw+1MKWZCVtaD4CFnrP+2CNe8lblr4UiM1Csm4YdWlUcUEs2E3mbLk1xc+XIoneJhbHtA+ N1qKV41lKMufsLbJPA+uMsoIN7dhWZxzrYyJzKOwhD8Cz9/vf8qSMRhy7WssKPK0gOnfEKP4yljdd Nt1cEKLGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4aly-0006wF-FB; Thu, 20 Feb 2020 01:37:02 +0000 Received: from mail27.static.mailgun.info ([104.130.122.27]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4alv-0006vv-WE for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2020 01:37:01 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582162619; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=hsLg89Wno2a4zivhXbQ7ZlOQv+K/T+fljhSoDklnjik=; b=IMBrMsFNMnVZXOJdQB3BgVslD+fgYh4kt/WwpHm2kp/Tw/GrphtiQQaB0Iu5azhEkxFnekeY ZplE6Vb4V0zqpr/lYQZpvqHCxiiAiHrJ7OzzEyHnVM4ypMY7q/fszcQni8Z2T09SniQFSoZZ Hab3+t4TWqyL3eqqF0TY3+HVvio= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyJiYzAxZiIsICJsaW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e4de2ba.7fca98fd8998-smtp-out-n02; Thu, 20 Feb 2020 01:36:58 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4DAAFC447A5; Thu, 20 Feb 2020 01:36:58 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 90B50C433A2; Thu, 20 Feb 2020 01:36:57 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 20 Feb 2020 09:36:57 +0800 From: Can Guo To: Stanley Chu Subject: Re: [PATCH v3 1/2] scsi: ufs: pass device information to apply_dev_quirks In-Reply-To: <1582009359.26304.29.camel@mtksdccf07> References: <1578726707-6596-1-git-send-email-stanley.chu@mediatek.com> <1578726707-6596-2-git-send-email-stanley.chu@mediatek.com> <2a8fc44914b7ed8777a4a99ba6b8647a@codeaurora.org> <1582009359.26304.29.camel@mtksdccf07> Message-ID: <57698522f7e1d9401ac27a0bd7f0756a@codeaurora.org> X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200219_173700_097776_83614B8A X-CRM114-Status: GOOD ( 15.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-scsi@vger.kernel.org, martin.petersen@oracle.com, andy.teng@mediatek.com, jejb@linux.ibm.com, chun-hung.wu@mediatek.com, kuohong.wang@mediatek.com, linux-kernel@vger.kernel.org, avri.altman@wdc.com, linux-mediatek@lists.infradead.org, peter.wang@mediatek.com, alim.akhtar@samsung.com, matthias.bgg@gmail.com, asutoshd@codeaurora.org, bvanassche@acm.org, linux-arm-kernel@lists.infradead.org, beanhuo@micron.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Stanley, On 2020-02-18 15:02, Stanley Chu wrote: > Hi Can, > > >> Hi Stanley, >> >> Is this series merged? If no, would you mind moving >> ufshcd_vops_apply_dev_quirks(hba, card); a little bit? Like below. >> >> @@ -6852,14 +6852,14 @@ static void ufshcd_tune_unipro_params(struct >> ufs_hba *hba) >> ufshcd_tune_pa_hibern8time(hba); >> } >> >> + ufshcd_vops_apply_dev_quirks(hba, card); >> + >> if (hba->dev_quirks & UFS_DEVICE_QUIRK_PA_TACTIVATE) >> /* set 1ms timeout for PA_TACTIVATE */ >> ufshcd_dme_set(hba, UIC_ARG_MIB(PA_TACTIVATE), 10); >> >> In this way, vendor codes have a chance to modify the dev_quirks >> before ufshcd_tune_unipro_params() does the rest of its job. >> > > This patch has been merged to 5.6-rc1. > > Basically I am fine with your proposal. But if you need to move it to > new mentioned position, our apply_dev_quirks callback also need > corresponding change so it might need our co-works : ) > > For example, you could just post your proposed changes and then we > would > provide corresponding change as soon as possible? > > Besides, I would like to remind that allowing vendor to "fix" device > quirks in advance imply that current common device quirks have some > problems? If so, would you consider to fix common device quirks > instead? > > >> Thanks, >> Can Guo. > > Thanks, > Stanley Chu Thanks for your cooperations on this :) There are some failure seen with specific UFS devices on our platforms, we can fix it with the quirk QUIRK_HOST_PA_TACTIVATE, but we are not sure if other vendors need it or not. So we want to handle it more carefully by limiting it to our platforms only. I had sent out that patch weeks ago, so I will just upload the new patch as we both agreed in that patch series. Thanks, Can Guo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel