Received: by 10.213.65.68 with SMTP id h4csp1076575imn; Wed, 14 Mar 2018 08:56:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/1kYYaq1vL4kGK232DeDhr8ZThq0neXMNWZHo2OCvJMzZjjPvy9SBLsdhLgscYYahGpvR X-Received: by 2002:a17:902:143:: with SMTP id 61-v6mr4559150plb.345.1521042965060; Wed, 14 Mar 2018 08:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521042965; cv=none; d=google.com; s=arc-20160816; b=jrQq3qSOaClo4mWYEWYFW8riHn46IrqkL1drPYB2YjSo8srL9Cbeat5HS1HRd/gQaN /r6BWCtOT6JH/f8X1BGr6abrOmdf01sBzgDSODbDy9CpY5ii8RX8l8uAsFvWG98LtOMF GELq3TcdY9kz+VWmeCX3V8oiPBx/rngcrY+QzyzMn9fnLKX8xRT2G67luWeWqy2QMj4X /5ZJhwvYuH72OKFiRqLMvQZeHL+NFQENfo8PlDxNfOSr580QYFtI4JkMHGB8jW5V33Aq EiYTEcQteY12NkAxZZWeEW2A3/wN4o1E9LbMRBPX33r1pIEFxrdYNwCHuBW3llHTQyKq y1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=msPd3rYBbQEsltFA71FW5KliyuLdmpJBMNpqGizFD14=; b=kObNDKmlMt5yW2IeAmkwEVinDNIs/qVXu0gZTupG+k39BmGyACEsFQy58poCp7mFLn BGtbvcufFJgghh+bOk7MWl2oT5hiy4LyuMwFw4yx4CJ4aIX/xZy+BlgzClSX9EZQl/Yb 7/cgAYY8JEfSnBqOygSvnwpM7qjQPUxinZ+ZhPqBRUCAM42FYDf2DX1d9YoORiSGIQBX 7WADq1bB3SQxuEboUlDQCpGTMXrh7H1xZzSjwP+6aLs7N8Lhazd7M+FGgkBE19tb7ETv n4PKoL3heeXSsLVskon1kh4Yiwndwl0gO7cNmxoRSiMWkp9xE3sJU3tzbEE1uK68Pxw1 BhKg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si2249553pfa.46.2018.03.14.08.55.49; Wed, 14 Mar 2018 08:56:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbeCNPwo (ORCPT + 99 others); Wed, 14 Mar 2018 11:52:44 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:35331 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751740AbeCNPwm (ORCPT ); Wed, 14 Mar 2018 11:52:42 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MdTH9-1fDwfZ2P7z-00IU7k; Wed, 14 Mar 2018 16:52:34 +0100 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Alan Stern , Thomas Gleixner Subject: [PATCH 39/47] usb: isp1362: remove blackfin arch glue Date: Wed, 14 Mar 2018 16:35:52 +0100 Message-Id: <20180314153603.3127932-40-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180314153603.3127932-1-arnd@arndb.de> References: <20180314153603.3127932-1-arnd@arndb.de> X-Provags-ID: V03:K0:c5JeVy1gON2m2+W6jRJWE8GnhlEPxsTBhlDcHbXJK/zAtH2CIS+ LUZ2RfnaR2HxBq6yOj/jQGCvxIBH0w2g0DAYpUJZeZ7n7yrEpxdKwtB6AyUcYQBJvs0leEg WfCQY1TtpH0/x62di5/1/M5wtPV81Nxedz+YCsEZ7zInU+7/pb4sGDsfbTIRAWLMUtad3w1 d1WexFQRZpL0HOzknhEyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:nN+xlWwBoUA=:bpXUqT+2D7O0H5JosZ/hvl hX3ra+eU4s4xPCDdeQsIgyNFQ/rjopOslVGr2tA+w42F+2AwW9pjXu6L3CIN4KurN0GYYnY43 UhWcNr0LyVjx7hFoOYO7i1qne8341HCf/ralAboobLSwpFY+M6mpbodglG3Y1MnI/9bp6RtNc 5WoEgswdXYtA7YRuWxZBeIhzdV0gfeeAYgLz9K5EKus5cr8GdEFRFWNurvYVjFLjBuj0Ky63d zZBu8sR/iVex7XYSssr4UA1Vl0zKhGPDA5QfC7znCpgB2xkrT0GZOwnOf+O92dyMzMg8nIvN0 iJ4Qv1nBnROgRTlBzk8O3HYzpyiWwdAroKA6n1FdmPGWq7dC6OGInWI7D8S0V/vT6G+jEpaNd Q9LpJw3StPpl6LCaDOZAlq/ebCLIBDvVfiPq/bW8tbWrdNcWpol/TN64s4C7U3RrwuPTqsdYX q3cIajjNIoMymUzim/4aar7JLcflTEwGJu+0qGoLgNrQIzyKe36Syu6CwGIDfx4ndI+vbjNTM 2sLAVUZ7UV9PukGlEWjMwobUHEd8AEV6UOeT+yGkvvqJ2fzbCs723hGA9ZxZeeG/vsn5CX3yy +IPY7DT9KrvCW3A/jyc3IKR1yvht+dDskAdaf912BK5ztBeyxdjLPSmyCIZO+qzUnMqMCrFwF 6Bh4b8FpRs5ds7zp+TshXfuKvxRU9secmpPo0MdDfsuDE+OEMnHf+h2zCS2/h25Bw/IfrtcSu Hdyr6KI5bLDPRpA7bZkoJO6QgkxbpcPejgLbCg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The blackfin architecture is getting removed, and this is the last remaining architecture specific setting, so the various hacks can be removed now. From all I can tell, there are no remaining in-tree users of the driver, but it could be used by out-of-tree platform ports. I've marked the driver as 'depends on COMPILE_TEST', short of removing it outright. It was originally written for some ARM PXA machines using the same chip, but that platform never really worked and the code has been removed a long time ago. Signed-off-by: Arnd Bergmann --- drivers/usb/host/Kconfig | 1 + drivers/usb/host/isp1362.h | 44 -------------------------------------------- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 4fcfb3084b36..b85822f0c874 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -360,6 +360,7 @@ config USB_ISP116X_HCD config USB_ISP1362_HCD tristate "ISP1362 HCD support" depends on HAS_IOMEM + depends on COMPILE_TEST # nothing uses this ---help--- Supports the Philips ISP1362 chip as a host controller diff --git a/drivers/usb/host/isp1362.h b/drivers/usb/host/isp1362.h index da79e36ced89..87c1ac97e538 100644 --- a/drivers/usb/host/isp1362.h +++ b/drivers/usb/host/isp1362.h @@ -9,47 +9,6 @@ /* * Platform specific compile time options */ -#if defined(CONFIG_BLACKFIN) - -#include -#define USE_32BIT 0 -#define MAX_ROOT_PORTS 2 -#define USE_PLATFORM_DELAY 0 -#define USE_NDELAY 1 - -#define DUMMY_DELAY_ACCESS \ - do { \ - bfin_read16(ASYNC_BANK0_BASE); \ - bfin_read16(ASYNC_BANK0_BASE); \ - bfin_read16(ASYNC_BANK0_BASE); \ - } while (0) - -#undef insw -#undef outsw - -#define insw delayed_insw -#define outsw delayed_outsw - -static inline void delayed_outsw(unsigned int addr, void *buf, int len) -{ - unsigned short *bp = (unsigned short *)buf; - while (len--) { - DUMMY_DELAY_ACCESS; - outw(*bp++, addr); - } -} - -static inline void delayed_insw(unsigned int addr, void *buf, int len) -{ - unsigned short *bp = (unsigned short *)buf; - while (len--) { - DUMMY_DELAY_ACCESS; - *bp++ = inw(addr); - } -} - -#else - #define MAX_ROOT_PORTS 2 #define USE_32BIT 0 @@ -60,9 +19,6 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len) #define DUMMY_DELAY_ACCESS do {} while (0) -#endif - - /* ------------------------------------------------------------------------- */ #define USB_RESET_WIDTH 50 -- 2.9.0