Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1026459ybe; Wed, 4 Sep 2019 11:20:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuENUviBM0DnfYDh67M6lHkPiO43ZveGUWIs6yM7sLKOgqjwdDujuEpv7MP+ZOPheqZrNu X-Received: by 2002:aa7:8c03:: with SMTP id c3mr47268189pfd.139.1567621255130; Wed, 04 Sep 2019 11:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621255; cv=none; d=google.com; s=arc-20160816; b=ayuRGZJ5W9W7HgpAA5Gf0OtHSCp6iewiq7if3NPxDMbiUTVfUxCttYbEfDbfeFDJ4f pG5mj7WAnB89lGkwat+vvXS/RfKc4gX5F0+UDfzSodRHpOi8sgAsj1Mfp4ZuUEb/Mw8z 9wOzko3JMewOP17oDgN5TOLNaLWRq/Z+5vGRLddeYoXLMGmtchu5RfcAi26aGeXWqm52 C3tiozACJfvDza0mE4B5a9R2JGsQ9FzSpp9IsdQ9zJKQTi3YbN8xB9B2RSK/XkLySAVq viHCLmY53mweoKZ6TTReLZF6i0KKfe8wnPXX529LXwrh+L68CfG+Iry8NbS5MU49L3fK SoYw== 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=F30qmm/bXNmII1vR5ZEifZ31+EqyXCeBD7zBqIS1hSE=; b=rtyZV675mxJ6/Hq8M3RP2tA1YVZ6arV+wHW2STnHI+Qm/4P4DZrMMH/xpZ0Z40lfEF UF30BEm3h6K/ugnpDkGYYZ1s246lVuTEsfMaX/B7wIEJ8wFcvox9YM49alfq6z4b0krP IO1DiZRzdIvqodKkStFAgNbvZnsu1XpwcDPvTrz2u6BU33braFNApby+2X18kUFhPEjs r9yQ/Rv0S9QJhAugOy7HZs9KLkOwVdbb+CkMK3a0mE0ABazM4Ev7LT+ubAc2SXUjC020 Lc4WJIJAFTd9BOXfuufYwDpQvWnIvhTOKHAojKBT7mESsnvqewABNo8rRPobSERfgSBa +s8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bSDjbvf5; 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 h45si1269646pjb.0.2019.09.04.11.20.34; Wed, 04 Sep 2019 11:20:55 -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=bSDjbvf5; 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 S2389616AbfIDSKp (ORCPT + 99 others); Wed, 4 Sep 2019 14:10:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:54430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390085AbfIDSKm (ORCPT ); Wed, 4 Sep 2019 14:10:42 -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 E2205206BA; Wed, 4 Sep 2019 18:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620641; bh=JzGyCxM9fLvwKrSelgPKI7s1H2cRcHSU8bJMaDuOMlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSDjbvf5HKYfnno44mkBSlbpX9w2lZE1xHSoh9uJpZq1QdqYPBvCYp/L3LZESr1Xe ZrNqe99asaJXGtuR1V1B1Qkf1o88c+gbswf7AnYrtlue0IVuAr2cjkfHS9UWhF0O9J Jw1dlkEa88ia6PBClw9vE9np3twgrkNwVhcjDAzc= 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 5.2 040/143] usb: host: fotg2: restart hcd after port reset Date: Wed, 4 Sep 2019 19:53:03 +0200 Message-Id: <20190904175315.626484122@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175314.206239922@linuxfoundation.org> References: <20190904175314.206239922@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 0da68df259c86..7bf621d40c5ae 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -1628,6 +1628,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