Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp415404pxj; Thu, 20 May 2021 12:17:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZQyEZsIO6xNxT1/9M4y+2/2ntIYPDhINEEW0wxddubOlgvr900hJfHXQ5EqsubpDky8T/ X-Received: by 2002:a17:906:6549:: with SMTP id u9mr6070464ejn.506.1621538236465; Thu, 20 May 2021 12:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621538236; cv=none; d=google.com; s=arc-20160816; b=GXYI/SBtoxGKiw/5IY9uRNNVDqNiT9e4lWZue+fbuNY9S+Dek19Jnn36rebII9MTHE S2P4WUCxcb1ZvxdCfA+YgGcP0jsDJpRGyMw9iTI8fOZ5p4tPK+ONXwjexCHAeG5CvRfB xkh5iHEj0TI/aHXHhZN7c5uf31EkcgXdZ6mw7wEGlOUP+QzjSQ4Oh82+s2H08kUJzIvA Kum0FEn4E645k3YtZorDlX+zLz87M3HsnfkhQDyzIHZx5r8FLVwAckqcnelsWOH7F9Ik fhEIgXSi0tq28ykZQyA5mwkYX+Itr7Yw/ZBuHkXLgWo16+iAhdkCQiEFFNaRJ4CziFJc IcrA== 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=6j/CfivAQtWtZ1ah5/1o+Iy75M40hWd9Y/OvgtTP1FE=; b=0DVgEcILIEfRndcHEcvbEgqmoDCs+ezp4++cYIyRiBZSb45tp4ZiVCLb6rPtJWGux0 i45sXU//Usw5g6mzfKtgldTcY6BBBLb7C6MmVsq3VXghqGhxE6+rXc7XEGRMLbiE6pYb BMRxConkFnjkptdACpzfOf8JexYMU5yFYeRiGRmvhkwA6GGuNc5SMGfUCYmmFDdHpjAs uqwSlAR1qfLoVME40MeJ53dUB8/BUcwJOtE18giMXlRP3+pkc1Y2B10ir1/RD9bpzKbj mZ9fnljAzX1p+zMWXFmBrmWlu+TOQAJt1omL9O+Lll+yRKCYYC15nAg7GaaR3EHl9Qx4 x9yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T4NLTugy; 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 i27si3106246ejh.691.2021.05.20.12.16.52; Thu, 20 May 2021 12:17:16 -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=T4NLTugy; 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 S237723AbhETKnA (ORCPT + 99 others); Thu, 20 May 2021 06:43:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:55676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236724AbhETK1k (ORCPT ); Thu, 20 May 2021 06:27:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19F13613AC; Thu, 20 May 2021 09:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504237; bh=kDGiedMBDc8If3gZIPwzG/k6SJ8Q5Rpp8/C+ken0mUM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T4NLTugy0ThrYLSLSQxpZ2s1+8wN15PC1jMF76FZQCc72wnKkb1lsvvIQ8YwiEibR SAAZALglyyTGcmoADEF7j8zIvkZ/0mss80ZGhE3CDR5P8faCLHwjB4TFcXK0aHSN80 STrE+jnrglCPkPA13ATeRyl7Fht3luHLmZQTXA0k= 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.14 154/323] fotg210-udc: Mask GRP2 interrupts we dont handle Date: Thu, 20 May 2021 11:20:46 +0200 Message-Id: <20210520092125.382397382@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 dcdf92415064..d25cf5d44121 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