Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6136415ybi; Wed, 29 May 2019 03:27:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAFd8S+0TrWHRuHWgDVs59D7DF5kWXJQn/cJT8lApyxn2nGdSZHuQcXgaavsP5Zybly0Nf X-Received: by 2002:a63:f410:: with SMTP id g16mr33267367pgi.428.1559125638405; Wed, 29 May 2019 03:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559125638; cv=none; d=google.com; s=arc-20160816; b=l0jEE5gGFicCm+X6mRnHT0skhuImJAy7VJrZU9I+zWpOWQdlKv0iGIjGcyEelS5F+E aLErdgTirqSt5zSSuOYvQG+AOsy45bEcIEfnoiDbz7HLzDF5C3+XplTWT1aO5OPgkQDI BQ9FbcPPlLCe8mw8peRvlegAWK7/2IzitWVWZ3JSpi1tev6v9p8Hc60yk7694ONAoo89 /TaZ8R65k7Gl7rJIzZnWOmpvkLt9S55ZDVR6CCLHXmvcE22VYtfd2V2OFWykZCqs0J+y nskJIUknSQR8upDwZBzDK/OAv/gjG4vXJf641bZmseEf/ym5iHcEMcseZ8dC8H+OWDrg YZMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=STCy+jFtH2tcL9qKBeVlQU8wmU14TpJAxmaavREGcRo=; b=TMBB9uB/ZjyaWdRZEonDft09BHEhyMYb7HqYZNas+08KjRItBnLicGWbN32tEeokj1 ZpWqS/IrNznMjvdaIiU2XUIJ8LmTxuY0YGsnZd0ctXUNLEc4rRUdEkXf1lTFzfo/BTdn AvccPrDAqNvsMWzdbEytp6F2gx6jnfzvauGhXN7XRqCa816JOLwehsjdmEBJQNUYvra5 bMP0nS+N1aaxWkW9ODqRmW2nrmUv/i7A8zwWXdD25LzCllhR96p/glEzBWcirZjVUbLp RvT3TJ8WdeaWfwJzwQTHJGw71MpaXf0SRl9k1Er01GLjE9xOIPUNAN4B4y4/GH1Ri0ix 5cIA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si24967877pgj.57.2019.05.29.03.27.01; Wed, 29 May 2019 03:27:18 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfE2KYl (ORCPT + 99 others); Wed, 29 May 2019 06:24:41 -0400 Received: from mga09.intel.com ([134.134.136.24]:11595 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbfE2KYk (ORCPT ); Wed, 29 May 2019 06:24:40 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2019 03:24:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,526,1549958400"; d="scan'208";a="179534587" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga002.fm.intel.com with ESMTP; 29 May 2019 03:24:38 -0700 From: Felipe Balbi To: Ran Wang Cc: Greg Kroah-Hartman , "open list\:DESIGNWARE USB3 DRD IP DRIVER" , open list , Rob Herring , "devicetree\@vger.kernel.org" Subject: RE: [PATCH] usb: dwc3: Enable the USB snooping In-Reply-To: References: <20171115060459.45375-1-ran.wang_1@nxp.com> <87ineb9b5v.fsf@linux.intel.com> <87shdfet90.fsf@linux.intel.com> <87k1eaanjw.fsf@linux.intel.com> Date: Wed, 29 May 2019 13:24:37 +0300 Message-ID: <874l5dr21m.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ran Wang writes: >> >> >> c) WHAT does this mean for PCI devices? > > According to DWC3 data book, I think this (PCI) mean to the case of 'master bus type = Native' > The data book describes this feature as 'system bus DMA option for the master bus, > which may be configured as AHB, AXI, or Native.' On Table 6-5, it says when MBUS_TYPE > is Native, the definition of 4 transfer types control bits [3-0] is 'Same as AXI'. > > However, as to the code implementation to be generic to both PCI and AXI, > I admit I don't have a perfect solution so far, only 2 proposals with concerns: > > a. Create another module driver like dwc3-exynos.c (arch/arm/boot/dts/wxynos54xx.dtsi) > to contain above programming code. However, it will touch the same reg range of DWC3 > I think this is not good. I'd prefer avoiding another glue :-) > b. Add #ifdef CONFIG_ARCH_LAYERSCAPE in drivers/usb/dwc3/core.c to constrain hacking code > can only take effect for Layerscape (AXI case). I know it look ugly. > > Do you have any better advice on this (besides changed power on default value from HW perspective)? Maybe we don't need to care, actually. Since this property will only be needed for RTL instantiation that didn't configure these defaults properly during coreConsultant. >> >> >> Another question is: Why wasn't this setup properly during >> >> >> coreConsultant instantiation of the RTL? Do you have devices on >> >> >> the market already that need this or is this some early FPGA model >> >> >> or test-only >> >> ASIC? > > Several Layerscape platforms like LS1043ARDB, LS1046ARDB, etc. are already on > the market and have this issue. So I have to work out a SW patch to fix them. Thank you, now I'm certain that this is not some temporary solution :-) Thanks for going through this again. Please refresh the patch so we can try to get it merged. -- balbi