Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp429635pxa; Tue, 11 Aug 2020 06:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkeaYW261cr2FKmccfo1+x6HJnagHZldg8OUu78VuTnxtMIBB6EB/jWz8IK7J0iNi3Me8g X-Received: by 2002:aa7:d350:: with SMTP id m16mr25566993edr.169.1597153272722; Tue, 11 Aug 2020 06:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597153272; cv=none; d=google.com; s=arc-20160816; b=sd6t9Kzejp2OXemoEL00aIucsz4ATG0TenZxcHdvr+U7cGCvKSdAG+1viimQLSqThA GjHTU+VK8DRTaSzeDrNeHCUIIrrmXlIPwnhU3fLGlcilPXcXGun1xPfQZ+oY5nO42PTq utUWGzNwqscR9Ey0YOIB/lw9DQi27gsdbaorrPUWj2I/V5LFp/+t93dku63VbwEXHjCt mgs6Sx5Qr4r0kC3gYXzuD7CpR/BUDKb96qz9GPRZuDaVQKkNxgJXehrTDzt9waBXzWxy tTLun2ImBG7ie/z4eE6JDOIHhqo/Si3C3h6Tl8ghVL+U1+D1FI2Qi1vfuD7UuIHaW3Xh HDKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:message-id:date:subject:cc :to:from:ironport-sdr:ironport-sdr; bh=CXMV88Oz+Gp6qhWw9IlGlWxGKjbc+abAuoD4q5pOv/k=; b=e/pBT05AHlB9eLJ4qc3LHcOfTlA5MVjV/bLlvpROhCX551FMxd+kRrZyBnZlEIm1Y6 4Nm5x7XXilIBOUTlBYw9FUx/oUyeFbl552hJ61W0jrSbVhjEPhbXiDcDAZY4Xmv+RA0X fo7HeH05Cqt6Iyq6WZb7cnEUfKwcR33a3uTi3NuoiFHwGUcU81Vj7vwo6zqVue5xkuOF 8aQcc9zc0/TC7opJJBkTApLRdbTHts2Jwg1KB6SGWNzp86MMxPPjFsACm0wXjK9xpngd HPHQ1yAz22HlmX5NrlHRoPila0rq6IreSz/xALwEkowkjihJM+0FMgXs19ajOvOF5q+T wWPg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce6si12533342ejb.734.2020.08.11.06.40.45; Tue, 11 Aug 2020 06:41:12 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728700AbgHKNkI (ORCPT + 99 others); Tue, 11 Aug 2020 09:40:08 -0400 Received: from mga06.intel.com ([134.134.136.31]:31275 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728672AbgHKNkG (ORCPT ); Tue, 11 Aug 2020 09:40:06 -0400 IronPort-SDR: zdKtDCR1xJwaILTZxya/RKb5v0G3x9guXvDyVk4EEtdLDcKafpv7FGnGhtoUlWY9kBDYvTnEyY KYG6irJjNHPw== X-IronPort-AV: E=McAfee;i="6000,8403,9709"; a="215248822" X-IronPort-AV: E=Sophos;i="5.75,461,1589266800"; d="scan'208";a="215248822" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2020 06:40:06 -0700 IronPort-SDR: iCeibHRehNfaIjhB8D+vlQQyJdqQ049xecga7ERReYHFKNXY2v9kXLjdj8rv8C4Wg7R8KGa+xD vwk4x0Wge9UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,461,1589266800"; d="scan'208";a="334576492" Received: from ahunter-desktop.fi.intel.com ([10.237.72.73]) by orsmga007.jf.intel.com with ESMTP; 11 Aug 2020 06:40:03 -0700 From: Adrian Hunter To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Avri Altman , Venkat Gopalakrishnan , Can Guo Subject: [PATCH V2 1/2] scsi: ufs: Fix interrupt error message for shared interrupts Date: Tue, 11 Aug 2020 16:39:35 +0300 Message-Id: <20200811133936.19171-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The interrupt might be shared, in which case it is not an error for the interrupt handler to be called when the interrupt status is zero, so don't print the message unless there was enabled interrupt status. Signed-off-by: Adrian Hunter Fixes: 9333d77573485 ("scsi: ufs: Fix irq return code") --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index cdcf56679b41..bb2543010af9 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -5994,7 +5994,7 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba) intr_status = ufshcd_readl(hba, REG_INTERRUPT_STATUS); } while (intr_status && --retries); - if (retval == IRQ_NONE) { + if (enabled_intr_status && retval == IRQ_NONE) { dev_err(hba->dev, "%s: Unhandled interrupt 0x%08x\n", __func__, intr_status); ufshcd_dump_regs(hba, 0, UFSHCI_REG_SPACE_SIZE, "host_regs: "); -- 2.17.1