Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3054518rwe; Mon, 29 Aug 2022 05:13:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7LwwjUKosifHH/WLHhT+u6FpqBfYcmziDemOGxF/8ItRn2S4jXfb9YwSfiSwG3t9EpRpBy X-Received: by 2002:a17:907:6d03:b0:741:9b9d:ad8b with SMTP id sa3-20020a1709076d0300b007419b9dad8bmr2381450ejc.197.1661775182517; Mon, 29 Aug 2022 05:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775182; cv=none; d=google.com; s=arc-20160816; b=P3gVGtb9aXxOP6C53MP58HTGVQ8TFICZWjzU4Go/cIGpYil3qJqBM4EiU+xisIW2d/ ZteRhGdthSVUEbEV1THRUg9Im4uslOWmm+1sNMkpmrUVuf5JLqQ/jimjMhCkcJbZj65I BE5qJbfJSrYLfVSiSo2R46mCE5GI0VjcZD1E53yvA9bKDUiu2zyxmloDZv/BIWwrGxur 8QDJENJ6tnU7jMXNiUHkAiqt/eCsNtG0B9Deu5/HLBbz/GMziS+b5mUTLpiw+mKkMhlj 15exrSrp3pZu/+0FD575T1ayQ0yPCHsp56Qlo1C8JByIXW2GWOHgFMG40jOEzN8vdXnf vlOg== 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=2RadEjGrw8JL0fNQ+LSlsgHAfRjVYgcUwjvVAcm63oI=; b=X+2CevvudHqh2pj+iz1QF8uo7F3GG2o9RK078Rf7KXiTa+dkFDSDif4NSC0dpvAkX/ dVC1yBdKrLvA+8kEYkk0Zi7mleWa9v4B/9fkXTLjtUcfGxUozcjPbZUwhvxz5E0eBmyq WX6d8nV39g2lnxWiUUVw89NheliOi1tj6+E6zSwW77dmQwz0uASFUq8DVuuJ+VS8Xoec 1lkgcqrWJhERBKJYXh/fbSe4U8z1ku+2BE/oyA6aOymMz1cRdr4lgZtu/zj2d47h04ys RrOjf/r/f6P61ooRPp0upfhWR+hpum/1tUZC5wheAy+PPn5FQ6fNhLw/nR1ChuMel10m ptRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sv0V9cLB; 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 eh13-20020a0564020f8d00b004472b35d7a5si5689434edb.309.2022.08.29.05.12.36; Mon, 29 Aug 2022 05:13:02 -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=Sv0V9cLB; 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 S232335AbiH2LaQ (ORCPT + 99 others); Mon, 29 Aug 2022 07:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232409AbiH2L2y (ORCPT ); Mon, 29 Aug 2022 07:28:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4706A2719; Mon, 29 Aug 2022 04:17:17 -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 03E7D611B3; Mon, 29 Aug 2022 11:14:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BEC5C433C1; Mon, 29 Aug 2022 11:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771692; bh=8wcWicOBd5LoPg57jDudrOyj8i8B9hcXWR7IZJ9W3BQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sv0V9cLBHJTJBfvVHOZK9QN39JZpBcPjCQdotA5gMan1hO+FLTZdonL675xgefiCp mctkt1DfjCxjlHGUzUVeFhtVoOzhpXX02dCUtnrLm/zo7QyMTS+bdsS4hBGAQDVMmR 4XHI8izKdQz1332dLInAkSRHHBlNvQHEntrt/Y7A= 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.10 84/86] scsi: ufs: core: Enable link lost interrupt Date: Mon, 29 Aug 2022 12:59:50 +0200 Message-Id: <20220829105759.963958548@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105756.500128871@linuxfoundation.org> References: <20220829105756.500128871@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 --- drivers/scsi/ufs/ufshci.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -129,11 +129,7 @@ enum { #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 |\