From: Andy Gross Subject: Re: [PATCH 4/5] [v2] usb: host: ehci-msm: Fix register initialization Date: Fri, 11 Dec 2015 15:34:19 -0600 Message-ID: <20151211213419.GG4022@Agamemnon.attlocal.net> References: <1449793737-1816-1-git-send-email-timur@codeaurora.org> <1449793737-1816-4-git-send-email-timur@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-ob0-f180.google.com ([209.85.214.180]:35261 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718AbbLKVeU (ORCPT ); Fri, 11 Dec 2015 16:34:20 -0500 Received: by obc18 with SMTP id 18so92072047obc.2 for ; Fri, 11 Dec 2015 13:34:20 -0800 (PST) Content-Disposition: inline In-Reply-To: <1449793737-1816-4-git-send-email-timur@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Timur Tabi Cc: Felipe Balbi , Alan Stern , Bjorn Andersson , "Ivan T. Ivanov" , Andy Gross , Jack Pham , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Philip Elcan , Mark Langsdorf , Jon Masters On Thu, Dec 10, 2015 at 06:28:56PM -0600, Timur Tabi wrote: > From: Jack Pham > > The default value for the 'transceiver select' field of > the PORTSC register may not always be correct. Previously > the phy-msm-usb driver would do this for us, but since > ehci-msm can now be instantiated standalone without any PHY > driver, the register needs to be explicitly initialized to > ULPI mode to properly communicate with the PHY. > > This is not readily apparent, as firmware or bootloader code > also happen to pre-initialize this for us. However, it can > manifest when performing a driver unbind/rebind as follows: > > cd /sys/bus/platform/drivers/msm_hsusb_host > echo QCOM8040:00 > unbind > echo QCOM8040:00 > bind > > The EHCI core executes a controller reset as part of this, > and as a result the register in question would revert to > its default state and must be re-initialized properly. > Furthermore this may be useful in the future when adding > PM suspend/resume support. > > Signed-off-by: Jack Pham > Signed-off-by: Timur Tabi Reviewed-by: Andy Gross