Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp462172pxb; Thu, 9 Sep 2021 05:08:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw929JPktJZApLUnPT3uE/vfqZEiHe2uO4QGhai0uqQa3xazdpAGYDnTEucO8XVBFOB8IBt X-Received: by 2002:a17:906:2ec5:: with SMTP id s5mr2997338eji.192.1631189309031; Thu, 09 Sep 2021 05:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631189309; cv=none; d=google.com; s=arc-20160816; b=VGI6S85kM7Xl5t4kk8jP/IA7zTI/i8duWCsOXRF8aG467Y7TmKOJhgxddT0gXKx8tK 8Wml/jC5aylSvXM56zez+4d3SbyPHg0DE54mINzmn5MkEon/g0PMTxpzC6FkT8fK1Vaj HtRxjcMqZcPB8E9cVSVlQA3QThw5U663IR6FgfQec+oEvuvzQJPEnv7FniChvpYOJNr5 mULUUjUeVlTnBUgMQOZXdKpnUkuUKtY7j9h+NBgLQZSO+XjHopJ6R2PeNsrYCvNYYIU0 4LW8FrWAd/rKHmgvEJJEwTYjZUCe+5ka+Qgxy3js0HlVJMxIica+JBTs4eEovqn9coKI kilw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KMpJduuNc8ykeZip5rH3Y8ThTNmJkjNZCGxG+WLAn2s=; b=ygBNxzc8b+REu+0NKRNIrIuRnhumxJZsjCki61+jAgtBX5CodRTKH4XUUxnn0Wx6po pzbLm4SbXaaXaEqHTTFws8J0GtONb7lUZSLFfyV9PG+3amZTCglg+lvcFTU17rePBZpE bM7uQU3pyrYOBdatO7KycBTj+cSKGYGDeGeUKIdku/r6tPVIbhg9SnkU2abhyyVX3Owv iwyrYS8bHtO7xRfNI05tVLIcp1awzLgu2FEDQ+Epq9zbBIvCWQb7VP0D0/JHmbXaRBvX 23tWKlgttTGcVc+QOBjBDoTZSzKYzHsx6oNRRVjZJfpveXXAAG8+LKQzN0ZmyHphrTXV 2Crw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JykPtzfn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si1801312edd.386.2021.09.09.05.07.56; Thu, 09 Sep 2021 05:08:29 -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=@kernel.org header.s=k20201202 header.b=JykPtzfn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243551AbhIIMGb (ORCPT + 99 others); Thu, 9 Sep 2021 08:06:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243185AbhIIMBF (ORCPT ); Thu, 9 Sep 2021 08:01:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F332C61526; Thu, 9 Sep 2021 11:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187980; bh=/7AEC3ilG/Z0kZyZJtcKVG5IiNVzFQK63um9OA45wwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JykPtzfnVOZyRXCwQagIkJmfNThTCZurDJqxDVaPA7SXPUA+NvZdWdqy6fyWuuNBc kuraDyXVs15+Mim8KzkjWj0NCtdKXD1t1X6GLeLjxQTqpdumTENiZ5O+GvBsjsJsCs IwGiMXbhRFdHhcv+AWrbh5oiGtNx5B6rweRONXYLwbp28yFM62VmTnyoYup6GCnUOD O7BmzLNm7/h4kR9gjrQX5hKLzbJKt5DYzmteyoA/7UOqMNPp+n+T56cVpmYK7cghgN uNwcvkiJK2aSRWmdqcUShaggviD8QGX2qfVKyYnyJzQ12Y2y+pDn0QNVuRw6jYt6xF h0VpVTOp0XiRQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rui Miguel Silva , Dietmar Eggemann , Greg Kroah-Hartman , Sasha Levin , linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 242/252] usb: isp1760: use the right irq status bit Date: Thu, 9 Sep 2021 07:40:56 -0400 Message-Id: <20210909114106.141462-242-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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