Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2281270ybl; Thu, 19 Dec 2019 10:57:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwxvQtlQrhr1WOG38CjSo81vgxhD40btjtEKjUdah27L/i/1dh/m/P0oXnIZ55tM9mJ+wxv X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr10623875otd.266.1576781856287; Thu, 19 Dec 2019 10:57:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781856; cv=none; d=google.com; s=arc-20160816; b=h3Cgfku/HLR7w8hzK7Q/R9pp8bKdWYKlRBjjGGLNxvsyFhT6gg1spL1GYoPdi9VC7f UFZ/oFtQHUSJ2NIxj5p+GKE1kMl+3+S/YyL45DRq2Ae6j9v7+I5nl4noaeTjFuP+ieP8 gceKOszgrcRGqCVwO0xFOFAv1gT7XqiR4kcKvUjtaKsRXQ/By6mau9JkcTLZuk14o2aO 4BmlAgLNmCFRp1ZgDgqC5W8WuaTIhfnjFDxH5sF4J84gHa/PRqbyHbA+mDUBlr5bQbaG GjUlHMnLHy3x46CIHBu0DLVOx92kwSR3fk6G4wOsKtUMPZIocu9Z4WEy/JC8WfHA1x7y /Dhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CgzXa17/G2HRqZAjzEWb7uu4z/Ec5hJ7QZOn/6EBNYU=; b=N62Dmr54CGW/9n12rFWRURdQsBYtALY/SHvIfTxDb5g4jHx95ytD/83VnJwMiLPWFZ Nlf5Vzkx2RszdubUBAVWJlnc64NL5sQqdBvfIuFtAO6s+MVqIyUgwKKxIuTEL1Vwc389 3jfNNcY5UYgiQrtZ7SMy33XnorE4Yxza/+SdXy/dRLhZ2DpeKyRtsgBXlFWNdPKbHtgn ekPG6WiHNIw/Gsd2of2dNW4F4qgRtL0JklnjkyZU2Ifgq0PejvGOoGbhnFEs3Y8GB6EH +b+e/68MQW8Iv01zL6poEmDCViwOas/9jA+bfRDcPoDLpxSNLT9wBZjlnLAjzg+WErl+ Ba8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h3ceup8x; 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 f4si3674283oto.169.2019.12.19.10.57.24; Thu, 19 Dec 2019 10:57:36 -0800 (PST) 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=@kernel.org header.s=default header.b=h3ceup8x; 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 S1730686AbfLSSzf (ORCPT + 99 others); Thu, 19 Dec 2019 13:55:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:51642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730671AbfLSSzd (ORCPT ); Thu, 19 Dec 2019 13:55:33 -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 E4A2C24682; Thu, 19 Dec 2019 18:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781733; bh=qGRvROEzM3vlKI0jA+ExRsSkpch1HpLNnk6tlf+EM78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h3ceup8xJLbybHkcTJ+Uw3jNVYBGKSUPXJ9c6Ar7GGlvULWyd/Ffdt4+PgVvq9ctJ XdfL1SBVeimtKfxU2unE9upLAuEppr5PATFeIS35XyEp6f2pB8DpF7mJ6ZhZa0CFlE fO3pPL02X1CT2wM2Buq3JorORTJTJmI9V8LwAonU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, sheebab , Alim Akhtar , Vignesh Raghavendra , "Martin K. Petersen" Subject: [PATCH 5.4 58/80] scsi: ufs: Disable autohibern8 feature in Cadence UFS Date: Thu, 19 Dec 2019 19:34:50 +0100 Message-Id: <20191219183131.230267215@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: sheebab commit d168001d14eccfda229b4a41a2c31a21e3c379da upstream. This patch disables autohibern8 feature in Cadence UFS. The autohibern8 feature has issues due to which unexpected interrupt trigger is happening. After the interrupt issue is sorted out, autohibern8 feature will be re-enabled Link: https://lore.kernel.org/r/1575367635-22662-1-git-send-email-sheebab@cadence.com Cc: Signed-off-by: sheebab Reviewed-by: Alim Akhtar Tested-by: Vignesh Raghavendra Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ufs/cdns-pltfrm.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/scsi/ufs/cdns-pltfrm.c +++ b/drivers/scsi/ufs/cdns-pltfrm.c @@ -99,6 +99,12 @@ static int cdns_ufs_link_startup_notify( */ ufshcd_dme_set(hba, UIC_ARG_MIB(PA_LOCAL_TX_LCC_ENABLE), 0); + /* + * Disabling Autohibern8 feature in cadence UFS + * to mask unexpected interrupt trigger. + */ + hba->ahit = 0; + return 0; }