Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3513550imu; Mon, 7 Jan 2019 04:54:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN6GTWghP5Fl2VaVo9rKH+/mPIyaLx/9jCGYBAe6UCuZVFFxQ09N/G2yodQ0/5lA1H8KAwJL X-Received: by 2002:a63:f006:: with SMTP id k6mr10869490pgh.259.1546865661449; Mon, 07 Jan 2019 04:54:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865661; cv=none; d=google.com; s=arc-20160816; b=qZDIObJ7NvaFXweskcm9yts2hIaXIXRwvJ/5YmmJNwncVRR7e69ryJz29F6okvNmxy fktW+dXJthP7tdtmhZvMAkE+sU9LAVdaTvWKllFYuf2na/FhiOBYLa2SLVk+rJqlBZGw Oh4ocMrVPemMp8tor90EChN2Q+QrAWWg3dVNwS0nvmBixU5s0a+S9QGAwgmnB5QQKrdf awfKE7wd15LFk//EiWqV98HzHlPj1B0RpobTuZ1dqCw0CebL2ztXJ5bBZNrIWX/zdP0C 1jfKViG3Z8GwkQ7B5+1xeNUbg0zxbJTfWE6FQdG4jJzQrPw7ttKS2N3MGPlsAKnFSdMR pF2w== 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=3Lq3ur5ExrvoL2eTI2dgsSJsxwzYIJCT0WlCQUjiQPc=; b=rk3VpA0J2NkSYO2lXIcJAfAnPWAsuPZiA5uXG6jBZ+35SKUBUmM5MWJlG04AUkcGlZ izNwCjob7q6XhJSX6EZCBLgj1qVYVuDEX55rzqlu4KhwqQ/IvUFWAixb/9fHGcZac+aY zKcs6nGHQr5Eux7PYoYpvjYBd2Q7pcwIooc2CKULl8xs1buQfk7IRBz1O8jwylZ2X5zS kr1V/jT4m37wVxJ2bNx3X8EmtjlL/u5KVcY+QePMRiajw59dW+hP8U1VL8L6v5mo9PXB CElnciLMR2HJ1vR5IwtvGDO/tMc392XhqBdxN/6IF/1EXX3g8/caFJSh3pFVg8L8o/+c 5NwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j3JXhpwJ; 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 1si21353194pls.16.2019.01.07.04.54.06; Mon, 07 Jan 2019 04:54:21 -0800 (PST) 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=j3JXhpwJ; 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 S1728596AbfAGMvI (ORCPT + 99 others); Mon, 7 Jan 2019 07:51:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:41214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727517AbfAGMvG (ORCPT ); Mon, 7 Jan 2019 07:51:06 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 C1A3720651; Mon, 7 Jan 2019 12:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865465; bh=D88nfrN2iN0VEXALLtUT14XCarb1Cpm0CmuVWKJK76w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j3JXhpwJ7/rU4gOvo+tCPx2CxvwI7z+wevPibXvwun8+SKwAUHBt/xnVVcNPw5i5k d6Yl2o8nG8rYWhooTWEROGxxtobp08RSNjHFP1an7b8A9jdPglhckgoxGVJ6NoBthC jbPvvMlJju4FuiqM+wvR+FkivEfjG6v6l9NDC3Ww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Minas Harutyunyan , Christian Hewitt , Martin Blumenstingl , Felipe Balbi Subject: [PATCH 4.19 080/170] usb: dwc2: disable power_down on Amlogic devices Date: Mon, 7 Jan 2019 13:31:47 +0100 Message-Id: <20190107104502.519941621@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Martin Blumenstingl commit cc10ce0c51b13d1566d0ec1dcb472fb86330b391 upstream. Disable power_down by setting the parameter to DWC2_POWER_DOWN_PARAM_NONE. This fixes a problem on various Amlogic Meson SoCs where USB devices are only recognized when plugged in before booting Linux. A hot-plugged USB device was not detected even though the device got power (my USB thumb drive for example has an LED which lit up). A similar fix was implemented for Rockchip SoCs in commit c216765d3a1def ("usb: dwc2: disable power_down on rockchip devices"). That commit suggests that a change in the dwc2 driver is the cause because the default value for the "hibernate" parameter (which then got renamed to "power_down" to support other modes) was changed in the v4.17 merge window with: commit 6d23ee9caa6790 ("Merge tag 'usb-for-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-testing"). Cc: # 4.19 Acked-by: Minas Harutyunyan Suggested-by: Christian Hewitt Signed-off-by: Martin Blumenstingl Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc2/params.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -110,6 +110,7 @@ static void dwc2_set_amlogic_params(stru p->phy_type = DWC2_PHY_TYPE_PARAM_UTMI; p->ahbcfg = GAHBCFG_HBSTLEN_INCR8 << GAHBCFG_HBSTLEN_SHIFT; + p->power_down = DWC2_POWER_DOWN_PARAM_NONE; } static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)