Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2482970yba; Mon, 15 Apr 2019 12:35:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHnOfeKCgQMMiB1yP9Fbxera8sq2EtsyJ9QGqR89bZLCxe3sKn1HHwSg/cJ4mKI7tXhPTb X-Received: by 2002:aa7:85cc:: with SMTP id z12mr77221187pfn.142.1555356919479; Mon, 15 Apr 2019 12:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356919; cv=none; d=google.com; s=arc-20160816; b=iIlxUEtulqCRSwvxjx1ye8yAoVqF1TJdjbhm+Tze9iLPMIupaUrzdQvDSez3q3+TTa KrVuEF23PqIGhbD6IzE0hJ5bsFFUkT2FKh7Sob2bTJlKbgv4yT1ZXuYILPvukHrUlBdG YPf0HLJy1q7e2tjNWfyksvupg15kFA8mWwpnF/Gy7EKsE7MfV0Wfi29FJjGDVtiF0Kev hFgZVyvwuyRWr1srJm6wh0QxCm6BHx2QrqPgvJjxWWIP+4/9jzgdk86+BwPPUym7BB75 ZzxatZXCrLSAOTOtq+YaePfIoga9YWwIN3iBiP6o70UR3TiclGgXBHnwJv6YdwswxQEO jeug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ma5uDlcJg/vAc/B3lffKq0xAllAv/cjyeMuwGpJId8U=; b=IBAC35Ps4hA5gvTy8MocMrjXW+VPhYsbtY4WyfgVSmIIycuTyJ8CaZHZYmojocP6KF hW3RX9Y+ZHmIWnAblX1c+zvFHAiTLaE4iuHlig8MGwIa3ipOU9FT5KRYbtUDArsO4kSs pK+aWtLNa9lNwUciuAyFpAPDOwa96dECHDiCKmVpOqKWhkQMBwG9pdNaPW8xwgmM0Q20 AC3lxwgl9cs+OKDfROYq/83xpFcCPE77CtCEzRnRdZ6flB4Qi/VgCVxpuXAGJpdXor4K Sj6K9ZywetuhsFCUyE2ETxwhrUmXbZiGQiYnjy03/ohWInBrYWhSRKktCv0iymXeFsD3 cKgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MWvIQ6U+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si45380667pgi.61.2019.04.15.12.35.02; Mon, 15 Apr 2019 12:35:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MWvIQ6U+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbfDOTdG (ORCPT + 99 others); Mon, 15 Apr 2019 15:33:06 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41546 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728220AbfDOTdF (ORCPT ); Mon, 15 Apr 2019 15:33:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id r4so23424246wrq.8; Mon, 15 Apr 2019 12:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ma5uDlcJg/vAc/B3lffKq0xAllAv/cjyeMuwGpJId8U=; b=MWvIQ6U+dwRQXBjdUoyeIhDPUeJLewF10K1omsHHKi1+xPKZzPN8kodzetTeAIse+3 xM2vn31dTbUwQ0TJRIxYb0lbR3bbtT6qe0yS2IhUQk/+0BCHM66lS3Vq9k0MN4tJn19K Ot7m8Ph+DIpn7z4NX18fVCph/4IdtzJxAk8oAhD1n/27gfzSQjcJSEosGigevD3Ua8LN YPSBzismWkwkW3VJ2uBcpG4ImzU0lLL8N+8DcvcagjRrd3Cryyi7NRh5BpCDf+L4iVKi 2Ij4wBMsDL0AG1kVBbJMJ7JdAVErVLnz4LsxmZZ/TZX+LOE/zi18H+9IF5s8rSGc7zJF 7OVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ma5uDlcJg/vAc/B3lffKq0xAllAv/cjyeMuwGpJId8U=; b=QprFPV+wDhNRverj/zFnNultXHpDrQ+585st17OP6aJ//TlCj6yy24aD0Sj9a3+uCv PSnT2OkZhBvI03lqB6gO2iWDQbwZNVQchhJJlrfAjs5Ora0lbBeY0fUL+5J32JJdKFMN 1KuXI+2VkFoq5ZSibqFiCoRc+8PjIKpwg7MAED938dtQhNgw9MJuEj8SXwb0UYx9O5yw p/e7Siy1VoXFx9E6vovTDUMymHWZNTvIZ+YIy9iVCuY1K/mzCH5xrvycCVfp42k/YfX0 w+QFjDet8kdqqLxohxs+51PRtoitpjK0arQwqoLgR5C66mOeJDHT2bjVwqeD9QUSnoZ+ Krcg== X-Gm-Message-State: APjAAAXfYd3VBXEYq040+1oIp5H4vSos6i/ZkK3Ae/7hA+11iLZSAkXJ adGnP/DYbkyXB82QCrpAofmHVWkzn/I= X-Received: by 2002:adf:eed1:: with SMTP id a17mr50263531wrp.268.1555356783158; Mon, 15 Apr 2019 12:33:03 -0700 (PDT) Received: from [192.168.1.221] ([195.245.38.118]) by smtp.gmail.com with ESMTPSA id j9sm56018749wrr.93.2019.04.15.12.33.01 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 12:33:02 -0700 (PDT) Subject: Re: [PATCH 1/4] ARM: ep93xx: move network platform data to separate header To: Arnd Bergmann , Hartley Sweeten Cc: Linus Walleij , "David S. Miller" , Jakub Kicinski , David Ahern , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20190415192734.935387-1-arnd@arndb.de> From: Alexander Sverdlin Message-ID: Date: Mon, 15 Apr 2019 21:31:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190415192734.935387-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On 15/04/2019 21:25, Arnd Bergmann wrote: > The header file is the only thing preventing us from building the > driver in a cross-platform configuration, so move the structure > we are interested in to the global platform_data location > and enable compile testing. Acked-by: Alexander Sverdlin > Signed-off-by: Arnd Bergmann > --- > arch/arm/mach-ep93xx/include/mach/platform.h | 7 +------ > drivers/net/ethernet/cirrus/Kconfig | 2 +- > drivers/net/ethernet/cirrus/ep93xx_eth.c | 2 +- > include/linux/platform_data/eth-ep93xx.h | 10 ++++++++++ > 4 files changed, 13 insertions(+), 8 deletions(-) > create mode 100644 include/linux/platform_data/eth-ep93xx.h > > diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h > index 6c41c794bed5..43446f33c2be 100644 > --- a/arch/arm/mach-ep93xx/include/mach/platform.h > +++ b/arch/arm/mach-ep93xx/include/mach/platform.h > @@ -5,6 +5,7 @@ > > #ifndef __ASSEMBLY__ > > +#include > #include > > struct device; > @@ -15,12 +16,6 @@ struct ep93xxfb_mach_info; > struct ep93xx_keypad_platform_data; > struct ep93xx_spi_info; > > -struct ep93xx_eth_data > -{ > - unsigned char dev_addr[6]; > - unsigned char phy_id; > -}; > - > void ep93xx_map_io(void); > void ep93xx_init_irq(void); > > diff --git a/drivers/net/ethernet/cirrus/Kconfig b/drivers/net/ethernet/cirrus/Kconfig > index e9a0213b08c4..6238e6951336 100644 > --- a/drivers/net/ethernet/cirrus/Kconfig > +++ b/drivers/net/ethernet/cirrus/Kconfig > @@ -41,7 +41,7 @@ config CS89x0_PLATFORM > > config EP93XX_ETH > tristate "EP93xx Ethernet support" > - depends on ARM && ARCH_EP93XX > + depends on (ARM && ARCH_EP93XX) || COMPILE_TEST > select MII > help > This is a driver for the ethernet hardware included in EP93xx CPUs. > diff --git a/drivers/net/ethernet/cirrus/ep93xx_eth.c b/drivers/net/ethernet/cirrus/ep93xx_eth.c > index 13dfdfca49fc..a6da9873570b 100644 > --- a/drivers/net/ethernet/cirrus/ep93xx_eth.c > +++ b/drivers/net/ethernet/cirrus/ep93xx_eth.c > @@ -25,7 +25,7 @@ > #include > #include > > -#include > +#include > > #define DRV_MODULE_NAME "ep93xx-eth" > #define DRV_MODULE_VERSION "0.1" > diff --git a/include/linux/platform_data/eth-ep93xx.h b/include/linux/platform_data/eth-ep93xx.h > new file mode 100644 > index 000000000000..8eef637a804d > --- /dev/null > +++ b/include/linux/platform_data/eth-ep93xx.h > @@ -0,0 +1,10 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _LINUX_PLATFORM_DATA_ETH_EP93XX > +#define _LINUX_PLATFORM_DATA_ETH_EP93XX > + > +struct ep93xx_eth_data { > + unsigned char dev_addr[6]; > + unsigned char phy_id; > +}; > + > +#endif >