Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1034753ybe; Wed, 4 Sep 2019 11:29:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI8XMBrclaxYG82g+QCLyhEjB5+Ot5Ze81TPVNeOMS8xsLmdH2PBV6oNwXvdpUMcYevB+k X-Received: by 2002:a17:90a:e013:: with SMTP id u19mr3873732pjy.104.1567621767595; Wed, 04 Sep 2019 11:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621767; cv=none; d=google.com; s=arc-20160816; b=Ee1F7UwPedUqO7/ZqfQbZhA3BbUaaI1MUfVziP6TppGg2Js9pXU+gXT0McLLbWFt1S Adsc3cSE5sO7LvSZ6xXdF2VvsEfD80q15FFKCCMwkU1h4rMWh+ZJvhQ4aCcrOpiQrgMi 4NBIhmfJbcfeIhlNU2Jz6x6PTUd2bd12YPzd5+RLv1VR+/OnelGOSE2T+mxddnqbr87L /reWFlYEeAcywSLRzH9l+XeMutq+Z1C4VYMporqowEpl2FFEcj06n2tmLyVuF14uJlCQ wzPYoGzaaDric8e7dx2d0//4WP63sMRrJH+778q7e5cereEGZxzPChzwXCycnopyf28+ ljiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JXGnPy7vQtjl+7RirF8mCavfkekSGJfPaEAmgwlQwiQ=; b=KYv7ph7mMfp4fA0HFxpUBN++9G6v7+gWfxFaueKnDvmHhBtYQQYvyGQkLo/3W/Hhjl zk4IZOUiEiizt1p9gv2jlhVXtmXcToQkq5oyqEC4zxdSlAZSwI3ic9rMjfkoZxN2aXC7 4CDhsOWmXbupY8eD2KaRpBVMmU+CCJmlyP/9rhEnIB6/SgXdWIypp3dwylFVcRuUK8Cu JzGsW+P2zEkpChWxXi20zLYKxQ2A9y6jh67kG9O5DlNCzawZXTFBI49fHcqaFeL1P2IL caIQRoJ+gw1jm0e7PYDx8BooawVmVx2v2rCAxKrpTLNcSsMKHAI5zMIW0l+vwsG6oD5Q I5hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=scnxmbe3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn12si17873680plb.308.2019.09.04.11.29.12; Wed, 04 Sep 2019 11:29:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=scnxmbe3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732872AbfIDR5Z (ORCPT + 99 others); Wed, 4 Sep 2019 13:57:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:35302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387834AbfIDR5W (ORCPT ); Wed, 4 Sep 2019 13:57:22 -0400 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 F10812339D; Wed, 4 Sep 2019 17:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567619841; bh=XBqv6luQ5CXrM3bvctgYpcF6Xz+G0qfVbm9g6i0gai8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=scnxmbe3IEf2D2d2vtaLatFUDsaMqeCrFfNQFU8kwg8uA1arP/i6OkquRHmAQR2gz No1pil25rMAUk0NI0Kj0TQaib1bqzRh3lAdmSjh8paNSR4Iax/heLWlTrfMnIbxTXm 6s7gLmr3GgzZCoBCR+lSdWegyJHKnIfRNFnPj+GQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Ulli Kroll , Linus Walleij , Sasha Levin Subject: [PATCH 4.4 53/77] usb: host: fotg2: restart hcd after port reset Date: Wed, 4 Sep 2019 19:53:40 +0200 Message-Id: <20190904175308.345191767@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175303.317468926@linuxfoundation.org> References: <20190904175303.317468926@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 777758888ffe59ef754cc39ab2f275dc277732f4 ] On the Gemini SoC the FOTG2 stalls after port reset so restart the HCD after each port reset. Signed-off-by: Hans Ulli Kroll Signed-off-by: Linus Walleij Link: https://lore.kernel.org/r/20190810150458.817-1-linus.walleij@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/fotg210-hcd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 2341af4f34909..11b3a8c57eabc 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -1653,6 +1653,10 @@ static int fotg210_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, /* see what we found out */ temp = check_reset_complete(fotg210, wIndex, status_reg, fotg210_readl(fotg210, status_reg)); + + /* restart schedule */ + fotg210->command |= CMD_RUN; + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command); } if (!(temp & (PORT_RESUME|PORT_RESET))) { -- 2.20.1