Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3267467imu; Sun, 9 Dec 2018 22:05:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/XHk2zNS7KclHQLkm7CIVr2KMGmR21PC64ZOXrdfQ81ZM1hbqxt7PoNQu43DqtTHq/vcyID X-Received: by 2002:a17:902:6a8c:: with SMTP id n12mr11031520plk.85.1544421923527; Sun, 09 Dec 2018 22:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544421923; cv=none; d=google.com; s=arc-20160816; b=09YSLDptQm1amrXpjbbNCxIv8z4bbJNGWGR4TVc664mCOXlsuyNJeXt8hfaHum+GVH Qn4Dr3k13bT5ZkWU2BLFWtq4Gq2jP05nEkUKEaD9wI1ns9mmcc8pcWoL3Hh15oHPqOwr 2bdriVwYqbMz/GwcBxDU9Zl1BRjNN5swkjlVMb3Ycjq/kZJdlRZ/3bzr8IaujZnrnJp8 Hn1fUqbmmVxW3a1tv62pWmMID+bP2x4KxKlC/0HTl26r8C+9vek3GlZMIPLOu+1EOITC RPd9eG7wjFelreXMEI70sS47bIxBP59tG6Objl4i2+5hnb1ES5mNH5EAd5amngofucDy OCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=2Wrafbq9evneDEl6vtQmFwFjjqvCKsxzZtg0Wk/SJVA=; b=e1nNTmLLrTlIwF/ihkPw0IFBVa6SFBdK0qluGd9GJHw312vj8lldBhNLE/w6ekEo4I tRHgiYdFUqgf83E+PU8RdkJbYQOi3czHWmA6C0BvPwHjzrO8Q27Q2F7xY30KAHRxKNgS GNXN8IuDP3+nTNh43fNepvLk+qS96e2P64namQ1NmKL7g0/jwF3M/K5nCYPVsE+MluSy fpWcVhATZvFmceEc8m4Mb8TlyTJ+vfjy3zDcsRTUSHoiuBewy02CN/+Elbm9/vzQp3Up JiEjr74yemvRysoyBj5KlXrf88H5VUafrpHrLGW4R4jWzCqUprNA+23NOrr5uwCwWats 1M4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=ZIxbebdy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc16si10100403plb.377.2018.12.09.22.05.08; Sun, 09 Dec 2018 22:05:23 -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=@synopsys.com header.s=mail header.b=ZIxbebdy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726513AbeLJGEb (ORCPT + 99 others); Mon, 10 Dec 2018 01:04:31 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:56222 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbeLJGEb (ORCPT ); Mon, 10 Dec 2018 01:04:31 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id A69D724E1190; Sun, 9 Dec 2018 22:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1544421870; bh=bHg4C6rLRi7UwLFIFdr5ggrF/iNEN7K6aK8xjr0TKdE=; h=From:To:CC:Subject:Date:References:From; b=ZIxbebdyzbIvpog9Py06ulgtI8UZPLlYyua3DknB+YfdcOWyiUjModVZwJd+OXP4A b37iyNowU/EoSa9RCyI+1eRcjzkECWq05gAwrPm7DKLUHK6BP1J3PSMJNmrR6vV4B7 pNGACAw4hhW6ecNi4j3xy2YqT3zoUOaRWcVp9fM0faz27BmG1BLCedZxtv++R21FfI ZX8jZIlr/vL+L2pca6HLIX3Tr4Ze1UZIRBr/7bgoenNMJbbNqtY9BUNt4LVGgCMBgV ynqeTAKz3FwerrIvvq17C/fTr01fj52H0qmshgOOhesRctGc+9P7GSIYGhPnZGefKv 7oHl7ADN60nOQ== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 5175A53F1; Sun, 9 Dec 2018 22:04:30 -0800 (PST) Received: from AM04WEHTCA.internal.synopsys.com (10.116.16.190) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 22:04:30 -0800 Received: from AM04WEMBXA.internal.synopsys.com ([fe80::79c3:55f2:1f20:5bf4]) by am04wehtca.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Mon, 10 Dec 2018 10:04:27 +0400 From: Minas Harutyunyan To: Martin Blumenstingl , "linux-usb@vger.kernel.org" , "minas.harutyunyan@synopsys.com" , "gregkh@linuxfoundation.org" CC: "linux-kernel@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "Arthur.Petrosyan@synopsys.com" , "christianshewitt@gmail.com" , "stable@vger.kernel.org" Subject: Re: [PATCH 1/1] usb: dwc2: disable power_down on Amlogic devices Thread-Topic: [PATCH 1/1] usb: dwc2: disable power_down on Amlogic devices Thread-Index: AQHUj/GlZFUzpz34P0WIm4puEQupSw== Date: Mon, 10 Dec 2018 06:04:26 +0000 Message-ID: <410670D7E743164D87FA6160E7907A56013A7B631D@am04wembxa.internal.synopsys.com> References: <20181209190129.11870-1-martin.blumenstingl@googlemail.com> <20181209190129.11870-2-martin.blumenstingl@googlemail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.116.70.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/9/2018 11:01 PM, Martin Blumenstingl wrote:=0A= > Disable power_down by setting the parameter to=0A= > DWC2_POWER_DOWN_PARAM_NONE. This fixes a problem on various Amlogic=0A= > Meson SoCs where USB devices are only recognized when plugged in before= =0A= > booting Linux. A hot-plugged USB device was not detected even though the= =0A= > device got power (my USB thumb drive for example has an LED which lit=0A= > up).=0A= > =0A= > A similar fix was implemented for Rockchip SoCs in commit c216765d3a1def= =0A= > ("usb: dwc2: disable power_down on rockchip devices"). That commit=0A= > suggests that a change in the dwc2 driver is the cause because the=0A= > default value for the "hibernate" parameter (which then got renamed to=0A= > "power_down" to support other modes) was changed in the v4.17 merge=0A= > window with:=0A= > commit 6d23ee9caa6790 ("Merge tag 'usb-for-v4.17' of git://git.kernel.org= /pub/scm/linux/kernel/git/balbi/usb into usb-testing").=0A= > =0A= > Cc: # 4.19=0A= > Suggested-by: Christian Hewitt =0A= > Signed-off-by: Martin Blumenstingl = =0A= =0A= Acked-by: Minas Harutyunyan =0A= > ---=0A= > drivers/usb/dwc2/params.c | 1 +=0A= > 1 file changed, 1 insertion(+)=0A= > =0A= > diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c=0A= > index 7c1b6938f212..38c813b1d203 100644=0A= > --- a/drivers/usb/dwc2/params.c=0A= > +++ b/drivers/usb/dwc2/params.c=0A= > @@ -111,6 +111,7 @@ static void dwc2_set_amlogic_params(struct dwc2_hsotg= *hsotg)=0A= > p->phy_type =3D DWC2_PHY_TYPE_PARAM_UTMI;=0A= > p->ahbcfg =3D GAHBCFG_HBSTLEN_INCR8 <<=0A= > GAHBCFG_HBSTLEN_SHIFT;=0A= > + p->power_down =3D DWC2_POWER_DOWN_PARAM_NONE;=0A= > }=0A= > =0A= > static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)=0A= > =0A= =0A=