Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1151482pxk; Mon, 31 Aug 2020 11:10:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyQXlNB0Y0GKeDGCph4R8INb1JJD1y0s/cTwtzl/kRAbXccb2zf3/K9IoFzGB4YR/59ohG X-Received: by 2002:a17:906:a18e:: with SMTP id s14mr2111323ejy.168.1598897447416; Mon, 31 Aug 2020 11:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598897447; cv=none; d=google.com; s=arc-20160816; b=rbtzSTy6Lp3TIx0zWcYftrt7PPhf5xCHAYGWMMfgm0SCHMGvaqGgHGsQC/8XNLJ9i/ 71ILIEg9uv99WBS4Djz8RwYGV9vT0Ku4lJYNDDXelFpewmNAYS1SQlKzSuY437DvmI8y AZWee889Ex74DRq75vNVb925u1aAkus2JmvKb7vUr9P1VR7cg6BDFPTduBa5LJ9RX/yg kLb/8HXMyKlv8c7fELcDS/ZrfLIuN9DbSDGcjlCQHbERGQSdpCUD+jqQ3p5i6T7bMM/A qemkL/O/ycnznAr7aISjhdDev346pdfFvdz1mOheCHbs/ySBDVmDwXIiA8w5YeRFB03s +Vvw== 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; bh=fAEf+wFDeBUv5cYz5qkmxYUlTUgGSo7Zjv4xY6DTkC8=; b=XU4cvhsmQSJ5lc+6IouG9d+qtAqpodF3tbzn7BTC9pTH7mCWTG4XHv0pKDQo6sOhaO KEbsSEysxDjSlI9CjkHhWa+GSIJ1g1BIdMfv6uBf+P6dmZzkAQVg/zEJw8nEA8lQLZlG m50kK/1KeHyX0/gZdFjuvLovYZKmfpu/5TnGFjidhnZ37RZOJt2bb6x5miPPVI1xbt56 h751GYk1KlqTbDd9GhW5xLVqOPfYxyQ9U2P1pojHfWsvpWjim+y22oYdTXrj1Pcg1nlp tmyaGevzROTnWBtEmKhf3ZKcE/b/mRd59CPkCL7hIR5UHW+MZOv98Kl/ebQEqn+9SdT6 sqDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=iq9TKWnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si5875467edq.34.2020.08.31.11.10.24; Mon, 31 Aug 2020 11:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=iq9TKWnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729103AbgHaSHU (ORCPT + 99 others); Mon, 31 Aug 2020 14:07:20 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:40843 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgHaSHS (ORCPT ); Mon, 31 Aug 2020 14:07:18 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1598897237; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=fAEf+wFDeBUv5cYz5qkmxYUlTUgGSo7Zjv4xY6DTkC8=; b=iq9TKWntamSZ8d9KO0pNzcxQK2vzXfqYHmy6WQOPispGn4HnoYbI28/VrkfaCmikxxzUgNs2 wj/9B+txHnVFVSG+kWemBPxEAzMPEdOjcvMfkDkf0N51RtGQQ26nH+tL4PBtyvlrSD3Tf3UL 9yp8Cl9Uw3kUQoEfHHMisMdP7+s= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 5f4d3c4c238e1efa37d512fd (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 31 Aug 2020 18:07:08 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E6991C43395; Mon, 31 Aug 2020 18:07:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 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: nguyenb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 49534C433C6; Mon, 31 Aug 2020 18:07:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 31 Aug 2020 11:07:06 -0700 From: nguyenb@codeaurora.org To: Avri Altman Cc: cang@codeaurora.org, asutoshd@codeaurora.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Stanley Chu , Nitin Rawat , Bean Huo , Bart Van Assche , open list Subject: Re: [PATCH v1 1/1] scsi: ufshcd: Allow zero value setting to Auto-Hibernate Timer In-Reply-To: References: Message-ID: <96e34a8d7d52dfbc47738f04d2a127c2@codeaurora.org> X-Sender: nguyenb@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-29 00:32, Avri Altman wrote: >> >> The zero value Auto-Hibernate Timer is a valid setting, and it >> indicates the Auto-Hibernate feature being disabled. Correctly > Right. So " ufshcd_auto_hibern8_enable" is no longer an appropriate > name. > Maybe ufshcd_auto_hibern8_set instead? Thanks for your comment. I am ok with the name change suggestion. > > Also, did you verified that no other platform relies on its non-zero > value? I only tested the change on Qualcomm's platform. I do not have other platforms to do the test. The UFS host controller spec JESD220E, Section 5.2.5 says "Software writes “0” to disable Auto-Hibernate Idle Timer". So the spec supports this zero value. Some options: - We could add a hba->caps so that we only apply the change for Qualcomm's platforms. This is not preferred because it is following the spec implementations. - Or other platforms that do not support the zero value needs a caps. > > Thanks, > Avri