Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1961594pxb; Thu, 16 Sep 2021 21:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfMo5gNNJ6NCQyjsqWw6F7zRdze0J3dZftzY/ZEv+PGg3nqjlLJTjq8VuMF035rc5JopRg X-Received: by 2002:a17:906:7c52:: with SMTP id g18mr10022156ejp.246.1631853589913; Thu, 16 Sep 2021 21:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631853589; cv=none; d=google.com; s=arc-20160816; b=EnovVcHZ8LS0aOSCLVf0dR5FW9TLJLrfRRtBHmkPm2Fa333k444ddLQjVoI4cDRnSh hDZigW5TX68RkT0MyCmfP4qDAnatB+LopAL+XlE+f2nOeaBZ+oSRsJO7JHvrAGX3gcXS M3fbGcW2eYAR3iOtiLNSRVck9K2K992Dviv0Ly2/OCXaYSFKt4DmxYiy2SXraZF+2szC a9OgIpVriU4q5cugjJ/qrjDKso18yIyEhTkec9pIKw3g4dHtZq4uLEyuLOixg1+fEaWP rT7wdIX5apwMUFIG1giz/LLNapAUzPHe/dxhl9RK1w01D+YFqrAsH7pwhHoTwO0Iy/uc h4Nw== 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=KMpJduuNc8ykeZip5rH3Y8ThTNmJkjNZCGxG+WLAn2s=; b=wQ72tAlxMDHxA7bKDiM0+fvM4j+YqtiRWlZXm4w1bF0jLaZUDXR8sAA1OenZoVP5Dy l8XnZmDiAuYsPwDLuiyyDGC/hKlx367IJzLww/ycyEdZyyMCP06JahiS7qj/Y9mgnoY6 BRdv67IbFzks1zSpH9onIYEJGqZCSdu4zxt6IAdzNVQZ7FAsKizStqQFMXvs9IWX+gDk fZBtXmz2iHOf/qtc8VW9+/bp7a67T5sfwHwrD/cdti85xQ55ECp242yo5MIvy25PgX75 RAdYD84WFks0EQFR2Z3wZft5W/S6w0NUAz9YqYy0xoi6aFR84R1Xc3Ar4RjvvaXVma8R +RYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pRbwdrnE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si5416832ejm.549.2021.09.16.21.39.27; Thu, 16 Sep 2021 21:39:49 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pRbwdrnE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350099AbhIPRrS (ORCPT + 99 others); Thu, 16 Sep 2021 13:47:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:54414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354605AbhIPRk0 (ORCPT ); Thu, 16 Sep 2021 13:40:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A54863254; Thu, 16 Sep 2021 16:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631811089; bh=/7AEC3ilG/Z0kZyZJtcKVG5IiNVzFQK63um9OA45wwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pRbwdrnEhJ9259iqJmOvaXEZovtxSqk2Xikd2DStd12RuUDaJ3ILrQBFf1GIMIYrG A4GiQg95snrKn3MY+bIQDo06sCdhIVRPGSPy2Yg4OBcKGy+tFFShPDOoySCywm0y+T eAjDYgqej35bE4PgxdL4FDQa1HYygctgp35Y+RSE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dietmar Eggemann , Rui Miguel Silva , Sasha Levin Subject: [PATCH 5.14 380/432] usb: isp1760: use the right irq status bit Date: Thu, 16 Sep 2021 18:02:09 +0200 Message-Id: <20210916155823.698180802@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rui Miguel Silva [ Upstream commit 955d0fb590f18ec5c3a4085c7d0e39b6abde0dd6 ] Instead of using the fields enum values to check interrupts trigged, use the correct bit values. Reported-by: Dietmar Eggemann Tested-by: Dietmar Eggemann Signed-off-by: Rui Miguel Silva Link: https://lore.kernel.org/r/20210827131154.4151862-5-rui.silva@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/isp1760/isp1760-udc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index a78da59d6417..5cafd23345ca 100644 --- a/drivers/usb/isp1760/isp1760-udc.c +++ b/drivers/usb/isp1760/isp1760-udc.c @@ -1363,7 +1363,7 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev) status = isp1760_udc_irq_get_status(udc); - if (status & DC_IEVBUS) { + if (status & ISP176x_DC_IEVBUS) { dev_dbg(udc->isp->dev, "%s(VBUS)\n", __func__); /* The VBUS interrupt is only triggered when VBUS appears. */ spin_lock(&udc->lock); @@ -1371,7 +1371,7 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev) spin_unlock(&udc->lock); } - if (status & DC_IEBRST) { + if (status & ISP176x_DC_IEBRST) { dev_dbg(udc->isp->dev, "%s(BRST)\n", __func__); isp1760_udc_reset(udc); @@ -1391,18 +1391,18 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev) } } - if (status & DC_IEP0SETUP) { + if (status & ISP176x_DC_IEP0SETUP) { dev_dbg(udc->isp->dev, "%s(EP0SETUP)\n", __func__); isp1760_ep0_setup(udc); } - if (status & DC_IERESM) { + if (status & ISP176x_DC_IERESM) { dev_dbg(udc->isp->dev, "%s(RESM)\n", __func__); isp1760_udc_resume(udc); } - if (status & DC_IESUSP) { + if (status & ISP176x_DC_IESUSP) { dev_dbg(udc->isp->dev, "%s(SUSP)\n", __func__); spin_lock(&udc->lock); @@ -1413,7 +1413,7 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev) spin_unlock(&udc->lock); } - if (status & DC_IEHS_STA) { + if (status & ISP176x_DC_IEHS_STA) { dev_dbg(udc->isp->dev, "%s(HS_STA)\n", __func__); udc->gadget.speed = USB_SPEED_HIGH; } -- 2.30.2