Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4597792pxj; Wed, 12 May 2021 08:58:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7gnegReR0vFcowZ9tFu6Wt7mmeC6qG/R2FDw8fdtzBqVPO/Xh39lmmOsFWnj+BZwdgpdR X-Received: by 2002:aa7:c34b:: with SMTP id j11mr45593104edr.188.1620835099253; Wed, 12 May 2021 08:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835099; cv=none; d=google.com; s=arc-20160816; b=P/oBjZ48r1z7mtDcEcykG6tDSqSgdKPkhu/Z5lKJJSyzdTd+RRLweTEkr86/e9hqgf rdZt9LIJMILv3l9IESoNjewhdO4FmgYm9m1m8NdBHDVJ4KcqxEg7lHtkm2FrXkhbTNrH liVSw+zd9/B7XBlaxiOpIzX3DRSNUBCXMLQnHCbo/UHAhqPoKe/B8B3Qy9jQRnjQTEs0 ZQjofousZ+8ElljSxanLL2yAVEqc4d4TJEFHLzdra4oJ0Do39tVASf3afQMgsWEt29DV FY/j32Tm+hwHeDDMBkf2EJ1ENZHp6wuLJbvw1iCiZJhpJV4xqHyhKRMOeNd/ZLGpUdB5 igsA== 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=Ou9c+TYtE8ogbQuV+lqaiO1D5N3n0WSY7TBMlZTNc6M=; b=SHMOMhiRb8R2cObVxDAweCdRcBq0i0//0SeHmy8PdWpae35ya5UPSKShb880xXJ6bI rhHWkAiHZr8QV8LxDvbrB5I1uHvW0IT9DVGD990FevkPoqbbyfeEATUagxVSdXRybB0O b+1hasQh5vbavB9AMXLJSckegSTTbMFBy6+Hjsra+zkfEkLeO5hDnupsa2FmV4oi3zWr ajv6Y9QoyWhfeJEnWgIAInsVCfs0em/fW1TyBu16hQuibWpk4pRRfTtybMqqb3NNlcAQ YARzS1bzuGxDtHltW8go7lTP5qrHe0vFKGhGSLDE5e5QRuwsIjxH645JYc68WfF0IKd0 7EYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kMfcmEXH; 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 z5si110958ede.44.2021.05.12.08.57.50; Wed, 12 May 2021 08:58:19 -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=kMfcmEXH; 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 S237463AbhELPzv (ORCPT + 99 others); Wed, 12 May 2021 11:55:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235103AbhELP0v (ORCPT ); Wed, 12 May 2021 11:26:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A06D619F1; Wed, 12 May 2021 15:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832303; bh=ToGWAJoKrX6GrEGvdI8sRmt4yW3Bej92l4CJnTLyK88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kMfcmEXHtr0WuLv3X1LSeQOSQXiUc7Krc1LLAbZPTwLNp1J7nUxujU/4ffcRRNhAh qPK57ZfvDkohm4Px8NfVVCHjzQOoRpZSN/oWwNEAspV4NHQZLSsciDS+CKOurm7NPv R8qCZ3M6rbIA9ZAyxhIKTaE4pDRaspRlZrJocdXI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fabian Vogt , Sasha Levin Subject: [PATCH 5.10 179/530] fotg210-udc: Mask GRP2 interrupts we dont handle Date: Wed, 12 May 2021 16:44:49 +0200 Message-Id: <20210512144825.716085087@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@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 a3ad93bfd256..bbcc92376307 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -1026,6 +1026,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