Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp545033pxj; Thu, 20 May 2021 15:51:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkeF5Lk2xBODd/z3YbLjU9KFe/ZLCbQGKXkENN4BTlPQHak3/ELcBo8ExLDBDBtZa5gWD/ X-Received: by 2002:a92:c607:: with SMTP id p7mr7768636ilm.97.1621551077036; Thu, 20 May 2021 15:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621551077; cv=none; d=google.com; s=arc-20160816; b=GCCEEfxrvuHmP9TA021TOTi0bzBMVuOuiy9lhX9FV/DSYivyfbie7pjybsuTcxA5CI GSt/NGPIEnagJC18c3S9HvFK9BmnYZLwomVKzXyu8128Sdv+S+bmjIi8uK5zwm+FqnR0 DqfHSU6xRMs+vt538i0ajOXcHk4edRvEC20WQbNMIMkXkC291EWtUB4YkmZ/T/9X134/ 2mLqO+DQSj9+hZZd7K/kzfoELkQOG3xApMNA5kDyr89aqaPav6m3B1gpbz8tzydYINCn W5xzNZGpq3ea37A8NY27QqJT4uVXDR0sPifvPnsLwWo3qA7zlbl5QMGM8hEsAP5XrpLU N0Mg== 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=ueLv4SCT7/RJOFPtsy8rjTCZEzqSSFJiE0dmBP5vI77X5gC1BN4Q7axf/1xenPi50R ALypjL6m9GCv0w8L+zJUv+Iqg8Jppo8jERXW2nksNnWQ4Z8PNqmpk+nqZwb0NgZegJA3 1XtmT+msem3KnMcwyPWQ2mAC14bhlzFeGO9BdFfNz6eeOO0ZNyj55D6KXhVW8Y4f0z1H fLMPNZTCKVj/5CAZrdPH69mNd8UckD737uAEwp6SBQYJhfa7fz3mJNTSbnqNp5q9UZe0 b1n+tzwB94fWsIRfL8UA1ZueYaKyedEwlDL8w7s9C/flXo8Grx5oAR7S/ltfYIziiJ0m AgZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nIA13PZ5; 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 z2si3834785jat.35.2021.05.20.15.51.04; Thu, 20 May 2021 15:51:17 -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=nIA13PZ5; 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 S239907AbhETLNM (ORCPT + 99 others); Thu, 20 May 2021 07:13:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238639AbhETKwz (ORCPT ); Thu, 20 May 2021 06:52:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B2AB861864; Thu, 20 May 2021 10:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504842; bh=3FJsfvIKvb8jEni70x0lqGFtIs3Ws2pMVf7+0cM9FeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nIA13PZ55PTaqZQ1V9qApT0dZGn3X62zwdK/wQIlp7UfbfFQQAQ/q1p3x3GXgA6sL A0dCAVRF6u8Wjm4z9Dgyua/FaJhIF2QUDR2AKEyjVVa0mK2MiaFaqJkqJ1wrMOiHSI dYvYfN/mKAYEYiJNh/0nQSlbqemzVbvLPzonBHMY= 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.9 104/240] fotg210-udc: Mask GRP2 interrupts we dont handle Date: Thu, 20 May 2021 11:21:36 +0200 Message-Id: <20210520092112.177721833@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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