From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BDC5C282DD for ; Wed, 8 Jan 2020 14:22:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EC552187F for ; Wed, 8 Jan 2020 14:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578493374; bh=J8i3km5c1S1vDwkAR9EfgL+HAWOrIMumVpDV8kFc4ps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=fuOnZVIR0p7DnizP3yh8aL+e50klfXdbcfc8i6QVEl4tsh/xwJZmXHr1pXVyDMH2B 1NLH2D1E51mLiCnDUL1qbfp546B0puh5rIEg0s/ERgiDU3U1tYi5zpibC7HdZ3zLUs LkTq3qFS/2uK1JTqlbG5/sbvc8Z9wG5igBBfP04s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbgAHOWx (ORCPT ); Wed, 8 Jan 2020 09:22:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:59202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbgAHOWw (ORCPT ); Wed, 8 Jan 2020 09:22:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C97AE20692; Wed, 8 Jan 2020 14:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578493372; bh=J8i3km5c1S1vDwkAR9EfgL+HAWOrIMumVpDV8kFc4ps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Drxq+7UWVIMSpeR2A0RV+zoFkkPhWQrLSW92+B3CsY64iZ9QVw6nw2MsWKRdsugnj mzEcHSa9sg8d/PTpay+I/5iRelRxHlw97ooO+tni3iqt5L8tYbxmq4ipGQEwUB3LH8 HFSSA32kKTYBoUvAyU/CLORJPfsVXC/OIP0RUWME= Date: Wed, 8 Jan 2020 15:22:50 +0100 From: Greg KH To: Pawel Laszczak Cc: felipe.balbi@linux.intel.com, rogerq@ti.com, jbergsagel@ti.com, nsekhar@ti.com, nm@ti.com, linux-kernel@vger.kernel.org, jpawar@cadence.com, kurahul@cadence.com, sparmar@cadence.com, Peter Chan Subject: Re: [PATCH] usb: cdns3: Fix: ARM core hang after connect/disconnect operation. Message-ID: <20200108142250.GA2383861@kroah.com> References: <20200108113719.21551-1-pawell@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200108113719.21551-1-pawell@cadence.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 08, 2020 at 12:37:18PM +0100, Pawel Laszczak wrote: > The ARM core hang when access USB register after tens of thousands > connect/disconnect operation. > > The issue was observed on platform with android system and is not easy > to reproduce. During test controller works at HS device mode with host > connected. > > The test is based on continuous disabling/enabling USB device function > what cause continuous setting DEVDS/DEVEN bit in USB_CONF register. > > For testing was used composite device consisting from ADP and RNDIS > function. > > Presumably the problem was caused by DMA transfer made after setting > DEVDS bit. To resolve this issue fix stops all DMA transfer before > setting DEVDS bit. > > Signed-off-by: Pawel Laszczak > Signed-off-by: Peter Chan > Reported-by: Peter Chan > Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") > --- > drivers/usb/cdns3/gadget.c | 84 ++++++++++++++++++++++++++------------ > drivers/usb/cdns3/gadget.h | 1 + > 2 files changed, 58 insertions(+), 27 deletions(-) Any reason to forget linux-usb@vger.kernel.org for usb patches? thanks, greg k-h