Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3056631rwe; Mon, 29 Aug 2022 05:14:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ph6mh/EHdQExqaP1tPvXH6eBrYOhIWFCHPNf395HIhf+MvtWEfUL31mtm0SrSUWJHnJgL X-Received: by 2002:a05:6402:3489:b0:448:5486:fa10 with SMTP id v9-20020a056402348900b004485486fa10mr5563304edc.386.1661775294394; Mon, 29 Aug 2022 05:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775294; cv=none; d=google.com; s=arc-20160816; b=kHVfqhn1UtKJV1UunFy/pM48Yi8UGtM0iSow62lIf0jedxyFBVC68XK7Tqz3kJ2bHo S3DJiBtufee+Pxnf3SkWnrAoN7f+z8fCGx+/CbRxlsrsVRAre7WOYqXv5igb2xwj09hM S0JEOBjel/otRv4PbKJsQ/DBh62vcLLeUj9073g9tM9YRujUN26ZdBN41/W71ktzPLF3 c3DkMEkvIo7PfKbCJDSvXQfauwFoU4yfh62AkKXW6oXgpiZdlgT0CZn3Gs0KxqqtdioI zSxeEK28qjXxiDO8zBWMxYcd0p+MGO0PilPx4InheZwb9zW8P/XLoHWe2zcgok75zIL3 0Irw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cqE2aBVPhKsDCFFGmMLOAjtAwUs5qyUtTW9VPFHfavw=; b=OnQz12Wu/M4URviURMgIv1QEJHbRJF6NWXRK6RY6fN7qQtW4TpBVLpsdNVadNR40vT /S7wzrw6iNIQLUA9pMyUnhsmhke1O6wPWU2zarsuGBsMpTgPxja51ctlTobl8L8v9S0x iiRkDPVfzArrgk4jdwP4dCTqGJRNoFcpxlosFcqTv2WHnddKsfu0zY1kCSxQdf4JjylI FkD85LF2UJTTbcN4IhLL9OISt/s4S7+ftRi8K5jGcJfR4TBcv+cttHWLyVdJy2DNFvpH NmecdmqK7uhsYbo59TdJjrYHTKqj+Kx/te8fjQ1CwDiEMQ11HIVgeRm6mEu/ThpBIIS1 0VRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tNlweIYo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg15-20020a170907970f00b0073306ff26besi6286673ejc.969.2022.08.29.05.14.28; Mon, 29 Aug 2022 05:14:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tNlweIYo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232963AbiH2LiS (ORCPT + 99 others); Mon, 29 Aug 2022 07:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbiH2LhD (ORCPT ); Mon, 29 Aug 2022 07:37:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3CF975CE5; Mon, 29 Aug 2022 04:21:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EEFFE611EC; Mon, 29 Aug 2022 11:19:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E42ACC433C1; Mon, 29 Aug 2022 11:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771973; bh=YtkX/3PjReAp3XkWC6HaDINJSMRfudU+k7O974n++vM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tNlweIYoCrD+Il1qvBlX38umCI9nVkqd+eFy+nQ2u8EjAmKnNeiJ2pbfcHC+WGHNQ Dwhk+9cYzOutffhQUOVCt4sPudeSQe0U04f1MsHAETnSpgYDsQ8pjBucH0BKPTuqvn KAEGivxVKII7y4dU7izeSh3hF2NEDxSstcr20Nkw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , Kiwoong Kim , "Martin K. Petersen" Subject: [PATCH 5.19 151/158] scsi: ufs: core: Enable link lost interrupt Date: Mon, 29 Aug 2022 13:00:01 +0200 Message-Id: <20220829105815.440946536@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kiwoong Kim commit 6d17a112e9a63ff6a5edffd1676b99e0ffbcd269 upstream. Link lost is treated as fatal error with commit c99b9b230149 ("scsi: ufs: Treat link loss as fatal error"), but the event isn't registered as interrupt source. Enable it. Link: https://lore.kernel.org/r/1659404551-160958-1-git-send-email-kwmad.kim@samsung.com Fixes: c99b9b230149 ("scsi: ufs: Treat link loss as fatal error") Reviewed-by: Bart Van Assche Signed-off-by: Kiwoong Kim Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- include/ufs/ufshci.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/include/ufs/ufshci.h +++ b/include/ufs/ufshci.h @@ -135,11 +135,7 @@ static inline u32 ufshci_version(u32 maj #define UFSHCD_UIC_MASK (UIC_COMMAND_COMPL | UFSHCD_UIC_PWR_MASK) -#define UFSHCD_ERROR_MASK (UIC_ERROR |\ - DEVICE_FATAL_ERROR |\ - CONTROLLER_FATAL_ERROR |\ - SYSTEM_BUS_FATAL_ERROR |\ - CRYPTO_ENGINE_FATAL_ERROR) +#define UFSHCD_ERROR_MASK (UIC_ERROR | INT_FATAL_ERRORS) #define INT_FATAL_ERRORS (DEVICE_FATAL_ERROR |\ CONTROLLER_FATAL_ERROR |\