Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7740147ybh; Thu, 8 Aug 2019 22:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6vpF9iTEmzIg58H38z17oC6eUmJFlZUYh22KUmBm+B4yf6aR7VdVltwz8PPGninweT4fe X-Received: by 2002:aa7:8559:: with SMTP id y25mr218256pfn.260.1565328817805; Thu, 08 Aug 2019 22:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565328817; cv=none; d=google.com; s=arc-20160816; b=KDNVrx5oAW6cXu3+yblYX21nPBdTdKqmxVa2fSZ/eQT7U0rOiPiyOjMOR4Kt1hWHAS IDDhHsXtG60IwfRq1SbnN2SVYZ85J0u/nM3Zy81VjivfRR7zmOhU1zUHvwf+3p80IvY3 xcZvkuytenPXPYCDXxK9kRdfqZIknh9Uq5D29m8+/rCWaA8UoRZPkhMCkD3w3aHjsJUG dsy+0cK2hcTi3bviytzquneNhffea4LsKWtrJKsetqEuckSY6sRsvyh5fR/DRq0bFwXo niw6/bJROGGlw2bLNOajNCHcW+zdK9/4EGIb5KrkAyk5jNxZnl5Seaw8X520yxuZj57J TfMQ== 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=qxzr1T99/gT22XQ388fthp90ijiL6cD8sbBqDrf8cYg=; b=jiq5KbuFOE6IznXUrAMJ2vo+HizGTrttiy+N+gP+pz3TxWHEaZjmZ+Wg5//N74VmPl 3Azb21Wq3x+jfzk0yYW2O9domwxrPCZ+nV5Fs+gEDy912vogFZU6M0pmEmA0t0rREHfr UPn5WI1y/tgYUvm/36zhlY+xSBWzRN/JPMDMbF6noUA08OafwDrLVVBs2xAM4DWi92mL P0euE2zujHcf/niOJkxhcgXjSBSVRH4tqSODaTsiORtPCaZKSr9Wa1WVQ9OMBbLhBhck FHqhjXlkzTvr6isqUCt8LWB+1QMxsas44ndb99/n9hTNO/05KPdwA+VUzC/4mvfKKBc8 YrCQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x126si81655614pgx.356.2019.08.08.22.33.22; Thu, 08 Aug 2019 22:33:37 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405415AbfHIFce (ORCPT + 99 others); Fri, 9 Aug 2019 01:32:34 -0400 Received: from mga03.intel.com ([134.134.136.65]:48559 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbfHIFcd (ORCPT ); Fri, 9 Aug 2019 01:32:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2019 22:32:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="193315385" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga001.fm.intel.com with ESMTP; 08 Aug 2019 22:32:29 -0700 From: Felipe Balbi To: Arnd Bergmann , Tony Lindgren , Aaro Koskinen , Alan Stern , Greg Kroah-Hartman Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Bartlomiej Zolnierkiewicz , Tomi Valkeinen , Arnd Bergmann , Russell King , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 03/22] ARM: omap1: move omap15xx local bus handling to usb.c In-Reply-To: <20190808212234.2213262-4-arnd@arndb.de> References: <20190808212234.2213262-1-arnd@arndb.de> <20190808212234.2213262-4-arnd@arndb.de> Date: Fri, 09 Aug 2019 08:32:28 +0300 Message-ID: <87y302ewer.fsf@gmail.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 Arnd Bergmann writes: > The mach/memory.h file only exists to implement a dma offset for "Local > Bus" devices, and that consists of the OHCI USB controller for practical > purposes. > > The generic dma-mapping interface has gained this exact feature some > years ago and can do it much more efficiently, so replace the complex > __arch_virt_to_dma/__arch_dma_to_pfn/... logic with a much simpler boot > time initialization. > > This should also make any code that performs dma mapping calls at > runtime much more efficient, by eliminating the strcmp() along with > the computation. > > Similar, a portion of the ohci-omap driver is just there for configuring > the memory translation, this too can get moved into usb.c > > Signed-off-by: Arnd Bergmann For all of these patches related to usb: Acked-by: Felipe Balbi Thanks for cleaning this up, Arnd. -- balbi