Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp62439pxj; Thu, 20 May 2021 04:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcw89RRmFfdt/0G5OvPRmodtwxA3UQyU8eE62osv78NRsfcwRmFsDK67CfScQeAPIWriPI X-Received: by 2002:a50:c446:: with SMTP id w6mr4524430edf.62.1621510667270; Thu, 20 May 2021 04:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621510667; cv=none; d=google.com; s=arc-20160816; b=Y/GpDRdDLa5ZeiVvo8gSS256D7LQHq7cNfGewTBcTKVuIynZFGQaYriA3ptlsZvFq5 JHpBV+Am6ABZQu0vxO11fPFISYwDkwcFNJp+TXx0orWuxwATmHOB5QFi7czGpx6VX+sS D/tttte9rTkiHUkdWUINOCWRbgrMZFpJcdujWuvxOf+xrJ1z1bNiAO+2+BmQu7Y4Yezx PUtCtlFZoBGjkCSXnzKRHb0jE0QTeUjt3lhY2aW2RYNFhFb6f9pawvoZ+0crwu8EkNQN bgnMh/rcKfAZ7RAgOykAXUziA8FDZLUQnYS+dizX076nvz6as5mrinv3eafjooBDcGpW WOjA== 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=5fd185aXJnjiPVf+gWnuUy58udnajTKap2AJXBldYEY=; b=cApFlaP7otsdJlhe4gt7Wyv03nUxWgCdxaeUKWfVoKv2xwd4fKBs+rUVcjKLm/GZjL dsTNQ6yW5ljmnXMSb0Azyr4ultlcnppN6a9lwZMSub8brwvBkgnBMrjDDl+UwrBA1Q9O fj/B3mioTAH5SnsRchA2QP16EtQKccW6v2ROSg/PpjZKX1erolPmuhBGuaZU8y9gNPTo c3JOkxbsCfQNTINpEWZ52o8EnY/7/wT/N2bLvlz2qA0g212e9X11Yv27GC7kiCzFCksW fYtK/MATObT5sz6IMLQwGtq8MQaQNQkwbnld3onPB15GCOQdWG8RzsJMHb1gbWLeLmFv Hgrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nDVDgBfI; 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 kx24si2369352ejc.187.2021.05.20.04.37.23; Thu, 20 May 2021 04:37:47 -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=nDVDgBfI; 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 S242387AbhETLfY (ORCPT + 99 others); Thu, 20 May 2021 07:35:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:37898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240629AbhETLPC (ORCPT ); Thu, 20 May 2021 07:15:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9489661D56; Thu, 20 May 2021 10:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505329; bh=3FJsfvIKvb8jEni70x0lqGFtIs3Ws2pMVf7+0cM9FeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nDVDgBfIqbgMFhfkcdc/GAYCGIxwm2tD8Lr/NKaaAX4lMdoSQCi7lrWh9bqvg5Mrq hgcGVcCxjAJQnA+si0v3+6uAlYLiSyIP2NO5rwKQ93CNj2HV7QGkli+jf9JKherOb7 d4zyux/VnyWZlt2pZ5YyTWyd8U+jFkoMkj4IwOBQ= 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.4 086/190] fotg210-udc: Mask GRP2 interrupts we dont handle Date: Thu, 20 May 2021 11:22:30 +0200 Message-Id: <20210520092105.038971180@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 d0a9ce7d0635..491b04dd6db7 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -1033,6 +1033,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