Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp316268pxj; Thu, 20 May 2021 09:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznY/cqvnd9rC4HQqMz0Pl8uDSVjGoWqd2FJaHuakXHLUOHkB1ECFZAHnPprhOggEk2AYhF X-Received: by 2002:a05:6638:34ac:: with SMTP id t44mr6850631jal.97.1621529928148; Thu, 20 May 2021 09:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621529928; cv=none; d=google.com; s=arc-20160816; b=fXmFrWw2EcDI6oTmONnTtfk9SB69CzGTqCcObFszcjXX0sdaZiJ7VLvggUHq2NHX5f LsEJhfwkUxzav1M9iO9n9kmuh4mC/f7oh0uWnEdJE4+CeXteWqQXdQ36YH90FiSoet1G YyKdGZ7H2+n2ntHMpPiMNkbOQhy/hmQyvmyV/eTl9eV/3Gh11RsBm1RxGDsHCnbTMfN+ 4rneNgw44xKz6t9tMo+ag9DlxvNxEaUU9Y5V/ywgvCVSFSaWlh7ujUTZGyQ/99qBATWD 217fx9cRhWRx7pBQ2luQleszNF/2VY5lYEgLHAzJg5z10yXXHnsnJUBIcSYmo4eyh6jN HqIQ== 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=EzAGWEPH8vnybWgc2MVliBEqjEZp5f6R8o2M4ZbMIc8=; b=VP+nYOJ1E7vDFwM6KRvR3DduH3NkX+flcSOOC3tcPZcQeeFM0pHS595RU+tOw7Q53M wAr1XPrcSJp2BEJjleCaCWv1Ayp6/s1kboA4+wMh/xhxTznF0Oxh7P5WBy9BngLFWyKE gqkCgSsLBMpJVfyCSv/tkTBNJDdl9trnbKHrIoE8qe58yj2GOgGGedwJ3FmUKQDRCf2a 6OQIzzasQZxydgDAmIxAM58lSvEYeFZ6smWGBJ6x3XxubidG0K0EH+ZkejsR78r3zRni POMdqA54csYR6VSIyWS+kXFb6CAwITkgWlZoOV8MnyH4/4G6kdLsROxTejKGpqWD4Sy3 f4HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=II3PS90U; 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 k43si2759123jav.84.2021.05.20.09.58.34; Thu, 20 May 2021 09:58:48 -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=II3PS90U; 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 S235007AbhETJ7R (ORCPT + 99 others); Thu, 20 May 2021 05:59:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbhETJzY (ORCPT ); Thu, 20 May 2021 05:55:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C226613DD; Thu, 20 May 2021 09:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503433; bh=JyKRS3S2twQ0S8Qzeh9jHHPpJk00RJwQtT9LA3q4HS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=II3PS90UpNjJbst9jk3h1sYqQU3M+QD1DbfhsQo0IBzxguOBHZM+1316is4Dp/qz6 BD4KpgnHEDBm0cW0gZiUb2Xvf6KO898nvw9VvGv+eyh1RCxCod+vMf2nF9LKYVosmy Qk7oY2aQeI8Io9hvQgDZCOjbA01v4cJwQiZ8V//w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fabian Vogt , Sasha Levin Subject: [PATCH 4.19 186/425] fotg210-udc: Mask GRP2 interrupts we dont handle Date: Thu, 20 May 2021 11:19:15 +0200 Message-Id: <20210520092137.534262526@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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: Fabian Vogt [ Upstream commit 9aee3a23d6455200702f3a57e731fa11e8408667 ] Currently it leaves unhandled interrupts unmasked, but those are never acked. In the case of a "device idle" interrupt, this leads to an effectively frozen system until plugging it in. Fixes: b84a8dee23fd ("usb: gadget: add Faraday fotg210_udc driver") Signed-off-by: Fabian Vogt Link: https://lore.kernel.org/r/20210324141115.9384-5-fabian@ritter-vogt.de Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/gadget/udc/fotg210-udc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index 6e284332b11f..41cc5babd50d 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -1030,6 +1030,12 @@ static void fotg210_init(struct fotg210_udc *fotg210) value &= ~DMCR_GLINT_EN; iowrite32(value, fotg210->reg + FOTG210_DMCR); + /* enable only grp2 irqs we handle */ + iowrite32(~(DISGR2_DMA_ERROR | DISGR2_RX0BYTE_INT | DISGR2_TX0BYTE_INT + | DISGR2_ISO_SEQ_ABORT_INT | DISGR2_ISO_SEQ_ERR_INT + | DISGR2_RESM_INT | DISGR2_SUSP_INT | DISGR2_USBRST_INT), + fotg210->reg + FOTG210_DMISGR2); + /* disable all fifo interrupt */ iowrite32(~(u32)0, fotg210->reg + FOTG210_DMISGR1); -- 2.30.2