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 D3073C33CB2 for ; Wed, 29 Jan 2020 07:52:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A039220720 for ; Wed, 29 Jan 2020 07:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580284350; bh=E2gB8/IVYfzCG8u8xgT7bImHIwd51ldFMW6eqcDAvb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Xd8B34C1sN1gALIGdMUVSe9wvlE1Jfm+Rno/EU4jsqJwkrXhAILTi5BVAB39bh6MC dwNigvjWIYSZKXrgUPT1mu6+jf9Us7lxlTP7pFfHJt2ERg1I3zVcYct9/DLL1LFsPt aVB+LU+arMxASRfqk3ipZPdZfvs3IZH6hg6zu+f0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbgA2Hwa (ORCPT ); Wed, 29 Jan 2020 02:52:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:48828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbgA2Hw3 (ORCPT ); Wed, 29 Jan 2020 02:52:29 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F142206A2; Wed, 29 Jan 2020 07:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580284349; bh=E2gB8/IVYfzCG8u8xgT7bImHIwd51ldFMW6eqcDAvb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zpEMqlQPSjBfOuVeijexexAZ9NASLTff4lkKWYeLMj2eifuhCGX5PwFMaGR4y2CPN aNlRnZ8y5WAxFXJQmoS8HZhO5grNJvzsU56p4fNU+DUnOLNCh9A3WQD/SoO3wpnvp9 VBG3y7lR3zfoDKkVTGQNRu7/EgeGh3GV1ySWfaZs= Date: Wed, 29 Jan 2020 08:52:25 +0100 From: Greg KH To: Stanley Chu Cc: linux-scsi@vger.kernel.org, martin.petersen@oracle.com, avri.altman@wdc.com, alim.akhtar@samsung.com, jejb@linux.ibm.com, beanhuo@micron.com, asutoshd@codeaurora.org, cang@codeaurora.org, matthias.bgg@gmail.com, bvanassche@acm.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kuohong.wang@mediatek.com, peter.wang@mediatek.com, chun-hung.wu@mediatek.com, andy.teng@mediatek.com, stable@vger.kernel.org Subject: Re: [PATCH v3 3/4] scsi: ufs: fix Auto-Hibern8 error detection Message-ID: <20200129075225.GA3774452@kroah.com> References: <20200129073902.5786-1-stanley.chu@mediatek.com> <20200129073902.5786-4-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200129073902.5786-4-stanley.chu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 29, 2020 at 03:39:01PM +0800, Stanley Chu wrote: > Auto-Hibern8 may be disabled by some vendors or sysfs > in runtime even if Auto-Hibern8 capability is supported > by host. If Auto-Hibern8 capability is supported by host > but not actually enabled, Auto-Hibern8 error shall not happen. > > To fix this, provide a way to detect if Auto-Hibern8 is > actually enabled first, and bypass Auto-Hibern8 disabling > case in ufshcd_is_auto_hibern8_error(). > > Fixes: 8217444 ("scsi: ufs: Add error-handling of Auto-Hibernate") This should be: Fixes: 821744403913 ("scsi: ufs: Add error-handling of Auto-Hibernate")