Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3914640imm; Wed, 5 Sep 2018 07:57:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFh4sEARWl6vheEn5+2WpN0KFxW0fZmxM4NYuQePWPKYRCu7FBShrexYpjpRcsXOP0U4Tg X-Received: by 2002:a17:902:bc8b:: with SMTP id bb11-v6mr38574569plb.112.1536159478934; Wed, 05 Sep 2018 07:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536159478; cv=none; d=google.com; s=arc-20160816; b=0E2TLQpfVWN7ielsNjk9YKx6V9K9ZuQDhUFssz1n3lvi35WsJslDlZCQxL5d+aAH2B 4VHR2Y/wQtKsqdRauXUiS9MEE+b34mBQSOIapqK79WmauRdELkZb2gHd+1ZpkYykT57f Vj7KSkI7wzIcSu+87F3zQ/6TZKp8hc5PkCP/BsAP/BunbJhU5vBHIZYxNbqSVyQH/gWH BW5Srg+Zfx/0Dues7SoWaZCc4rzGDNqadi2trI3/h8nFaExocUVpSjEm3q++GFGZrv8i pxuXAm0V97yUfpLQOtcyApezznFqnRUy+AczI5wT0s5gqTmswxz0g1bc/0xZpEObh2aL 7dgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=QxoNn9wD0S6oQzwXs2dfLxcInm23LNF/KOSiykYC4ms=; b=Ah39yOlnFRm0PaIDBXHRcCAGPRAkVC0X7fcsmpAvOmve9WANG7DUdJb+MhfrJdZEch LqIzn6PFJ3L1NglwjYD/cdGavMGEqCrk1ok0BMnDjSKv1L5dhx5zZZOBHoqElYG+6KpX xfG7/C59RhziqE+RxrsG1frT1qgvrjj6uIxL9yz0Me9GcEHk8tbyK+OcVEzvfcnsjFmd mttVAlo58FOoFSwaRiPx3XC4+51J/MMqyCOwKY2i+F1z/dIyGbW+DClo9v6s1K1gjwcz PGqS+TyW+Ix13ezmU3qDroBFYOTjGqcErfAH7rXbM717dBtFwnIg0OBgQibnQu2E75HY CDig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RFJsqFtv; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si2033434ple.241.2018.09.05.07.57.42; Wed, 05 Sep 2018 07:57:58 -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=fail header.i=@gmail.com header.s=20161025 header.b=RFJsqFtv; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727704AbeIET0i (ORCPT + 99 others); Wed, 5 Sep 2018 15:26:38 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39701 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeIET0i (ORCPT ); Wed, 5 Sep 2018 15:26:38 -0400 Received: by mail-wr1-f65.google.com with SMTP id o37-v6so8002897wrf.6; Wed, 05 Sep 2018 07:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=QxoNn9wD0S6oQzwXs2dfLxcInm23LNF/KOSiykYC4ms=; b=RFJsqFtvKKBY9pP92EYN9l+XWcjqS0w+F9j3GVKyy3soVYitXz0w/PDCZVyue2SC2I CrwacIYn7oItk8uTMSA8VNjFwLcVzVx4hcFasbYoZYS2iSNtWRg/qh2Dmx0B7K2iCA8v GFk2ZcbA0L1jxSyO8kuiD9EUw2L1348GLLS6GDRcn67Ofd/xz0J4TGlwuKeBgJq9FxOb FfF97AM+jiiozfbxJgpTDIhql+ZTxa4DXzOJKI7CpJSM2q8MSN5Kd0bLWab7NgSCaZYB v8+cas1eFSl/gl7z97KuwMfUP7cJppqhAUySsVbqZqxiIb69/KuvjK9+ngBNOfw9fe6r B9Hw== 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; bh=QxoNn9wD0S6oQzwXs2dfLxcInm23LNF/KOSiykYC4ms=; b=RzHhGExTbs2ifBTqqseFiTMZ/bJ5wvCUQUcd7CZYE3pmR2rQVCw5VG0I7ggF/5L7lf qiYNQ8d25actGoA+Lhv9D3aHZ7dFS/CQCOSbq2D8r13jjbNyKP+DGWeJ3IKnZUE5OSyN 2X/yST7723xB/ncnU+5czcAJa69F51rvX2sNwGGuWQ60mpIwyh5S3BpWZgN0IlpWS9Zz 1asGaQJT6NO0CdZt8w00L9fKGKmRMclnj/aqVHdeqhQLS4bBkH3sjlbfg5wkegVyhmIv syf6mcu4T7PcVo+L/TbxJc2qkT/NIkboYwgKQeMSpAPR8QylYiHAHWEHummnIZdqvzJj IgAw== X-Gm-Message-State: APzg51Ccl4CDM1OuTwEiPL1X1kU9so3aq9BG0nwT/6o1iFv7YI42SqbC 578BmgYjzB8CMYV4QXut+fM= X-Received: by 2002:adf:e6c2:: with SMTP id y2-v6mr26562565wrm.35.1536159363700; Wed, 05 Sep 2018 07:56:03 -0700 (PDT) Received: from localhost.localdomain ([94.204.252.234]) by smtp.gmail.com with ESMTPSA id 88-v6sm1607255wrf.95.2018.09.05.07.56.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Sep 2018 07:56:03 -0700 (PDT) From: Christian Hewitt Cc: christianshewitt@gmail.com, hal@halemmerich.com, arthur.petrosyan@synopsys.com, Minas Harutyunyan , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: dwc2: disable power_down on Amlogic devices Date: Wed, 5 Sep 2018 18:55:13 +0400 Message-Id: <1536159314-35831-1-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org USB devices work when connected to Amlogic GXBB hardware before power on, but not when connected after boot (hotplugged). With this patch hotplugging works again. This change was copied from the Rockchip patch here: (https://marc.info/?l=linux-usb&m=153205711616460&w=2) Signed-off-by: Christian Hewitt --- drivers/usb/dwc2/params.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index bf7052e..93561a2 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -110,6 +110,7 @@ static void dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg) p->phy_type = DWC2_PHY_TYPE_PARAM_UTMI; p->ahbcfg = GAHBCFG_HBSTLEN_INCR8 << GAHBCFG_HBSTLEN_SHIFT; + p->power_down = false; } static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg) -- 2.7.4