From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbbD3Ke3 (ORCPT ); Thu, 30 Apr 2015 06:34:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:48503 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbbD3Ke1 (ORCPT ); Thu, 30 Apr 2015 06:34:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,676,1422950400"; d="scan'208";a="687948434" Date: Thu, 30 Apr 2015 13:34:22 +0300 From: Heikki Krogerus To: Felipe Balbi Cc: David Cohen , Greg Kroah-Hartman , Stephen Boyd , Baolu Lu , Paul Bolle , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 10/12] usb: dwc3: add ULPI interface support Message-ID: <20150430103422.GB1372@kuha.fi.intel.com> References: <20150429082113.GC25288@kuha.fi.intel.com> <1430296233-144245-3-git-send-email-heikki.krogerus@linux.intel.com> <20150429150450.GC7262@saruman.tx.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150429150450.GC7262@saruman.tx.rr.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Felipe, > > + case DWC3_GHWPARAMS3_HSPHY_IFC_ULPI: > > + /* Soft reset here to sync the clocks */ > > + ret = dwc3_soft_reset(dwc); > > you just lost all DWC3_GUSB3PIPECTL(0) and DWC3_GUSB2PHYCFG(0) > configurations which happened right before this switch. Essentially > breaking anybody who needs any of those extra bits enabled even though > they're not enabled by default. Is this a problem we have with DWC3 cores older then 1.94? I don't know anything about those. If it is, then I would imagine we just need to soft reset here conditionally, only cores >= 1.94a, right? With 1.94a and newer, DWC3_GUSB3PIPECTL(0) and DWC3_GUSB2PHYCFG(0) keep their ctx over any kind of soft reset. And any configurations done to them here will take affect the latest when dwc3_core_soft_reset() is called. Thanks, -- heikki