From patchwork Sat Aug 10 15:04:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 171019 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp646608ily; Sat, 10 Aug 2019 08:05:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd+lx4dJA5Y5KM690Q/NRs74mxjpLrcCvWn5eSotRze3xVN7YUhvTcqWYejoHWVFjC+UUs X-Received: by 2002:a17:90a:be15:: with SMTP id a21mr7934294pjs.74.1565449505366; Sat, 10 Aug 2019 08:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565449505; cv=none; d=google.com; s=arc-20160816; b=guZhGdT9jjVC5FpN8A3zuk2Udj3MmFh8QXKglOKIH1+EpDq0xJZW6njQr5sdA1CEkq c1XTrdJD8BWw54kCK8GPQVXGLQUEwhqkBQRiZZC/7wmQAuCOuVdzpief2xhChD3XDlso ZYCsaB0bB15zclAvhAdT8CkhxwnDwU8l63ipNF3z1njBZMFmol/6eCduaGSGYdFR+pJo o9cScAUjgXHEQ/iIwEe5O72znYjIm3PWvO9P6t9YcfXpLNLir9dI67XSAVgiB7gaJwn4 QbjiyjYUuYpSWm6Opl1jQr1lvRW0cmY1RBau87r6vMWx1xwS3qLHDJ+cWE4F7C8TPRJW ATWA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=X0SVgB3hTGST7nqpvoFejGqz86qw1oYwy3TMBUWpuKY=; b=OiCy2D2gp2i0HkF46TQQyp7+TKFzm1yFqbXM8277HHW1TW7Jf/GoIvorkIRLe83iqH sKXmbN3UMuYWZi0wUg68YAlkLdVPfFbIfTKqfXtD7lx5l2roAb9+VxplKFRqw9kEC5rR 6ZFbizOv1O1WF/aovbRSW+/iUkKbrwv15gPLpa3AM8AIpuzFWsIMXEf2x6wFHa4ufA9u 1Fuqh4rzMiah0tlHoU1j5IYKISjDyRnNcB9DrhqNOTiDIvOc2T1oIgC0oBFHsFmNG6wA +b/cHB1BIOBkaT86//eC97hPaHS0XAtL2IxNcJieOcgacbQwY4JK+20vwLqcHULgH6m5 +MEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CHoezcXa; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si56201632pgu.376.2019.08.10.08.05.04; Sat, 10 Aug 2019 08:05:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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=@linaro.org header.s=google header.b=CHoezcXa; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbfHJPFD (ORCPT + 5 others); Sat, 10 Aug 2019 11:05:03 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41590 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfHJPFD (ORCPT ); Sat, 10 Aug 2019 11:05:03 -0400 Received: by mail-lf1-f65.google.com with SMTP id 62so66684009lfa.8 for ; Sat, 10 Aug 2019 08:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X0SVgB3hTGST7nqpvoFejGqz86qw1oYwy3TMBUWpuKY=; b=CHoezcXaZHmx0amETbz2IKzpx0Jua9qfQ1bl6EsE7BvZYiL05gmhLlXIpoqrB5aIp3 XKVsVzDxWI1LXJkt03ZLAwZ6WtY18SbYkPDKVfHMf64HXB4r6PrNY4mpSSy5k/xjX+Xt mGpDHGlX8eS54CwlXdyNZrcdK7rw8uVMFCvVOgW12UkwDRuQsZ+oAK/+NE8Jgv6roM0u WsYCuieU4qO7IGCwVpSKYDSvfcRPXELS0ZUOoqrk65T8zQobllsgwb13ueikWWYf/2MS mKpB/Xn7fmRAxBYSE0Pp6+/bFEnnbxGFqolpt4bR4Uy0lq0UvzU+F9srTpc0ViPRBHod w+Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X0SVgB3hTGST7nqpvoFejGqz86qw1oYwy3TMBUWpuKY=; b=mYLNrjm+AWTpvt4fjZgfqb5QZgBK2QZEttkE4Wi+yWqKudgfnxGLUNICu+c7QRkbnO /aUHxTpnt1flTrr2e5UKBZHr0J7A6T7OuX3FoRf8sqx0G95D8KxgbvsGl0+kXCJJH7JJ HZDh3JaGQTdUcUvQ5sJIrbUnFipZHTX3QqbAZUu5ygtjnxY+wO4Itoq1m8z267zYIMMo 8RrV4vLpsRKVGnUsYsUxYkVWoUIVfENGfqQ3Uw0jRrFwWcubxRspQkWKdW2LE7GpG4zO nVtMtdUyrCDEFQPGp7WSCBlZYsC6RwWXPARLDiEO+ILtPf/BfXFKL/9JlHS5pBazBWsy R3Tw== X-Gm-Message-State: APjAAAXNyxJ7cQKI9/VAjUF70iChECIo+h3I6DoPSpNG/i0yPjbdWXjF I2z+J6plOkDMp2TXpXyclGIJ8+aA5sypPQ== X-Received: by 2002:a19:8586:: with SMTP id h128mr16169179lfd.62.1565449501563; Sat, 10 Aug 2019 08:05:01 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-2ccd225c.014-348-6c756e10.bbcust.telenor.se. [92.34.205.44]) by smtp.gmail.com with ESMTPSA id k27sm19822161lfm.90.2019.08.10.08.04.59 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 10 Aug 2019 08:05:00 -0700 (PDT) From: Linus Walleij To: Hans Ulli Kroll , Florian Fainelli , linux-usb@vger.kernel.org, Greg Kroah-Hartman Cc: Linus Walleij Subject: [PATCH] usb: host: fotg2: restart hcd after port reset Date: Sat, 10 Aug 2019 17:04:58 +0200 Message-Id: <20190810150458.817-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Hans Ulli Kroll 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 --- drivers/usb/host/fotg210-hcd.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.21.0 diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 35f69bce40d9..8ee28f5b7957 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -1633,6 +1633,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))) {