Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp226103imm; Thu, 21 Jun 2018 17:12:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ9nxqZM1Js4oC7dmsDOTEyJnnMshfHfmxMiR4h8MiKSusDS7TFh766KFy990TBdYXNsqF0 X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr30744336plp.10.1529626342031; Thu, 21 Jun 2018 17:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529626342; cv=none; d=google.com; s=arc-20160816; b=09olO4r2lfPvnTIeIpHRuCCQiobofn5B9DRDISkLeqOL7tF6mXVQC84Y8pne3WzSrV pk2lEaST4n8qu9iW6Kb9MFk4BWQ1Yvfhk27IRCsGcX+hlQ3w/Hs1QKJ4npjdaNzSSK9k rlXI9ZAxhrpu3UlvpPYC9fjYIi/TeX2INWWP5dOQaFuHlLIvYBRJesgQWh1Xopoc5Pi7 JlHMJZe4SV+VA6lEqUlomvA1DS3PxzEM2uXKO95uF/giFKjSqfMfq4Dz1eB84hx9oANL jIciKnINBNRHvF/fK0Z0utDmBManPG/toNB2pR7qyA7oJYmpH1d5YjheMgq4O5TqJ9e2 lCWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=LoNwnwjhzkIfFcFAKQj5YTewPTc3MQqiXhMifvXqAQY=; b=Nj7t7nfZCvkFbH0nPDR5A8kXinFAyZu9sOL4jltdKZPWXYXVP4b3QNAdp06r3V75cG hupJcFcWtbsf7yvKj7vMvjSbPIQ11vo9u9ckqtiUKOrSh86nHQfAVHI6ZvJ7Hwf3XqUO n1xhxLNzWCGcpLjzuiiHKzzbooeVkpBSJ0qBSvtZiOCA6GEyHErBg7KQRg/pnhR85JaQ 6yB27cJ3rEEGAZndKK0yukID3SJZ166m3HLYKrzjwzPxkJxI1BInBHB5PcmQNLtom9FB mq2c4QLU7xeeFMfb/hcpxNslp++QbFG6vg8ZlCObthJilwEqhZ1kQl0RX4TCrl/3HeMp +6yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jTnyjfSn; 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 d191-v6si5135672pga.192.2018.06.21.17.12.07; Thu, 21 Jun 2018 17:12:21 -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=jTnyjfSn; 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 S933917AbeFVAKv (ORCPT + 99 others); Thu, 21 Jun 2018 20:10:51 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34987 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932397AbeFVAKt (ORCPT ); Thu, 21 Jun 2018 20:10:49 -0400 Received: by mail-pg0-f65.google.com with SMTP id i7-v6so2142457pgp.2; Thu, 21 Jun 2018 17:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LoNwnwjhzkIfFcFAKQj5YTewPTc3MQqiXhMifvXqAQY=; b=jTnyjfSnnOzs/OC9gmCGUSoMy+jV+AtThwyk+4WKIhTD7odajlYoLehwlGPprF1jqw Uu8zRmIOXhyyzdfzwIXPqz/P6YvZjydUofCkRakrTQg8T/W61I60eveWKcNRpgWwmrDK 3zVUoDoMZnaz+ou8OFgRBAy/8RZGOIdayn5RnnosXUl0M+mb+Cf1MN4+cUHjyUAmSyXi DANw5U7MaUvkXgGkKhSCKkEcJlT3bZx7NJuUsmEld9Jv0QlgIMrzzSRHlVk0HdWnxxtV 4irB7bnr1HXaVBPilFLT0N1FJf/UQM8+Cjgb9/EZjFokYa7iIYxpJOfGwkyBhblPv4zc aV3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LoNwnwjhzkIfFcFAKQj5YTewPTc3MQqiXhMifvXqAQY=; b=q/+qi7a9rAVxQYBnWkf/J3r3QTZH4uliwxrQuYfPk+SDJ5uA4iGn3KwU8hGc0fsB7/ 39YreymvsAICEiavm9hPH0ENk3q5UMQyRCs+Vb7+q4zPaGqzO8q1HJyJPbixoxHCmeTb P78spNa9e/6umbhwYv2cjT8esHhzabT1hFXc/IJieoGPpC6bCE4gSU77JIS2m0EcD7iK Oe1WuL5AmXiEMWicOGUdm6T6N2XjSslsG71mNAVJ0Jg6Ml1tlfw+Nn/nQw2Lx87GlBIZ IZHZqlC9AbfJGCZrd6Cwbg8oRVxhvBL9Dvqa8d2lzbHBLhO66T5xb+eVSBbB2juzVFkn RDyA== X-Gm-Message-State: APt69E1AW5rPCPQ4EjDYDnCW0VeGBM3TkaWQVImkw4q6ZyOW9fEPaGTG 2cySL8fguMeP9DDfS6esY4WfLq6e X-Received: by 2002:a63:7f4f:: with SMTP id p15-v6mr24409944pgn.312.1529626248211; Thu, 21 Jun 2018 17:10:48 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id y18-v6sm8670149pfl.122.2018.06.21.17.10.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jun 2018 17:10:46 -0700 (PDT) Date: Thu, 21 Jun 2018 17:10:44 -0700 From: Dmitry Torokhov To: Janusz Krzysztofik Cc: Tony Lindgren , Aaro Koskinen , "David S . Miller " , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Randy Dunlap , Linus Walleij , Mark Brown , Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-input@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 08/10] ARM: OMAP1: Get rid of Message-ID: <20180622001044.GE79890@dtor-ws> References: <20180609140224.32606-1-jmkrzyszt@gmail.com> <20180621224128.17623-1-jmkrzyszt@gmail.com> <20180621224128.17623-8-jmkrzyszt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621224128.17623-8-jmkrzyszt@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 12:41:26AM +0200, Janusz Krzysztofik wrote: > Split the header file into two parts and move them to directories where > they belong. > > Information on internal structure of FIQ buffer is moved to > for ams-delta-serio driver use. > > Other information used by ams-delta board init file and FIQ code is > made local to mach-omap1 root directory. > > Signed-off-by: Janusz Krzysztofik Input bits look good. Acked-by: Dmitry Torokhov > --- > Changelog: > v2: rebased on v4.18-rc1, no conflicts > > MAINTAINERS | 1 + > arch/arm/mach-omap1/ams-delta-fiq-handler.S | 5 +-- > arch/arm/mach-omap1/ams-delta-fiq.c | 7 ++-- > arch/arm/mach-omap1/ams-delta-fiq.h | 41 ++++++++++++++++++++++ > arch/arm/mach-omap1/board-ams-delta.c | 2 +- > drivers/input/serio/ams_delta_serio.c | 3 +- > .../linux/platform_data}/ams-delta-fiq.h | 27 +++----------- > 7 files changed, 56 insertions(+), 30 deletions(-) > create mode 100644 arch/arm/mach-omap1/ams-delta-fiq.h > rename {arch/arm/mach-omap1/include/mach => include/linux/platform_data}/ams-delta-fiq.h (71%) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 9d5eeff51b5f..c78b7dc42a81 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -10391,6 +10391,7 @@ F: arch/arm/plat-omap/ > F: arch/arm/configs/omap1_defconfig > F: drivers/i2c/busses/i2c-omap.c > F: include/linux/platform_data/i2c-omap.h > +F: include/linux/platform_data/ams-delta-fiq.h > > OMAP2+ SUPPORT > M: Tony Lindgren > diff --git a/arch/arm/mach-omap1/ams-delta-fiq-handler.S b/arch/arm/mach-omap1/ams-delta-fiq-handler.S > index bf608441b357..ddc27638ba2a 100644 > --- a/arch/arm/mach-omap1/ams-delta-fiq-handler.S > +++ b/arch/arm/mach-omap1/ams-delta-fiq-handler.S > @@ -14,11 +14,12 @@ > */ > > #include > -#include > +#include > > +#include > #include > -#include > > +#include "ams-delta-fiq.h" > #include "iomap.h" > #include "soc.h" > > diff --git a/arch/arm/mach-omap1/ams-delta-fiq.c b/arch/arm/mach-omap1/ams-delta-fiq.c > index 5a6c59ac9b5f..e72935034d42 100644 > --- a/arch/arm/mach-omap1/ams-delta-fiq.c > +++ b/arch/arm/mach-omap1/ams-delta-fiq.c > @@ -19,12 +19,13 @@ > #include > #include > #include > +#include > > #include > > #include > > -#include > +#include "ams-delta-fiq.h" > > static struct fiq_handler fh = { > .name = "ams-delta-fiq" > @@ -35,8 +36,8 @@ static struct fiq_handler fh = { > * The FIQ and IRQ isrs can both read and write it. > * It is structured as a header section several 32bit slots, > * followed by the circular buffer where the FIQ isr stores > - * keystrokes received from the qwerty keyboard. > - * See ams-delta-fiq.h for details of offsets. > + * keystrokes received from the qwerty keyboard. See > + * for details of offsets. > */ > unsigned int fiq_buffer[1024]; > EXPORT_SYMBOL(fiq_buffer); > diff --git a/arch/arm/mach-omap1/ams-delta-fiq.h b/arch/arm/mach-omap1/ams-delta-fiq.h > new file mode 100644 > index 000000000000..3f691d68aa62 > --- /dev/null > +++ b/arch/arm/mach-omap1/ams-delta-fiq.h > @@ -0,0 +1,41 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +/* > + * arch/arm/mach-omap1/ams-delta-fiq.h > + * > + * Taken from the original Amstrad modifications to fiq.h > + * > + * Copyright (c) 2004 Amstrad Plc > + * Copyright (c) 2006 Matt Callow > + * Copyright (c) 2010 Janusz Krzysztofik > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > +#ifndef __AMS_DELTA_FIQ_H > +#define __AMS_DELTA_FIQ_H > + > +#include > + > +/* > + * Interrupt number used for passing control from FIQ to IRQ. > + * IRQ12, described as reserved, has been selected. > + */ > +#define INT_DEFERRED_FIQ INT_1510_RES12 > +/* > + * Base address of an interrupt handler that the INT_DEFERRED_FIQ belongs to. > + */ > +#if (INT_DEFERRED_FIQ < IH2_BASE) > +#define DEFERRED_FIQ_IH_BASE OMAP_IH1_BASE > +#else > +#define DEFERRED_FIQ_IH_BASE OMAP_IH2_BASE > +#endif > + > +#ifndef __ASSEMBLER__ > +extern unsigned char qwerty_fiqin_start, qwerty_fiqin_end; > + > +extern void __init ams_delta_init_fiq(struct gpio_chip *chip); > +#endif > + > +#endif > diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c > index f15c0793c34b..fe9a3e7cbfeb 100644 > --- a/arch/arm/mach-omap1/board-ams-delta.c > +++ b/arch/arm/mach-omap1/board-ams-delta.c > @@ -41,10 +41,10 @@ > #include > > #include > -#include > #include "camera.h" > #include > > +#include "ams-delta-fiq.h" > #include "iomap.h" > #include "common.h" > > diff --git a/drivers/input/serio/ams_delta_serio.c b/drivers/input/serio/ams_delta_serio.c > index 7952a29f9540..2602f7cff5ae 100644 > --- a/drivers/input/serio/ams_delta_serio.c > +++ b/drivers/input/serio/ams_delta_serio.c > @@ -22,6 +22,7 @@ > */ > #include > #include > +#include > #include > #include > #include > @@ -30,8 +31,6 @@ > > #include > > -#include > - > #define DRIVER_NAME "ams-delta-serio" > > MODULE_AUTHOR("Matt Callow"); > diff --git a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h b/include/linux/platform_data/ams-delta-fiq.h > similarity index 71% > rename from arch/arm/mach-omap1/include/mach/ams-delta-fiq.h > rename to include/linux/platform_data/ams-delta-fiq.h > index a9769ff396bc..dc0f835ea918 100644 > --- a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h > +++ b/include/linux/platform_data/ams-delta-fiq.h > @@ -1,5 +1,7 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > /* > - * arch/arm/mach-omap1/include/ams-delta-fiq.h > + * include/linux/platform_data/ams-delta-fiq.h > * > * Taken from the original Amstrad modifications to fiq.h > * > @@ -11,24 +13,8 @@ > * it under the terms of the GNU General Public License version 2 as > * published by the Free Software Foundation. > */ > -#ifndef __AMS_DELTA_FIQ_H > -#define __AMS_DELTA_FIQ_H > - > -#include > - > -/* > - * Interrupt number used for passing control from FIQ to IRQ. > - * IRQ12, described as reserved, has been selected. > - */ > -#define INT_DEFERRED_FIQ INT_1510_RES12 > -/* > - * Base address of an interrupt handler that the INT_DEFERRED_FIQ belongs to. > - */ > -#if (INT_DEFERRED_FIQ < IH2_BASE) > -#define DEFERRED_FIQ_IH_BASE OMAP_IH1_BASE > -#else > -#define DEFERRED_FIQ_IH_BASE OMAP_IH2_BASE > -#endif > +#ifndef __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H > +#define __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H > > /* > * These are the offsets from the beginning of the fiq_buffer. They are put here > @@ -71,9 +57,6 @@ > > #ifndef __ASSEMBLER__ > extern unsigned int fiq_buffer[]; > -extern unsigned char qwerty_fiqin_start, qwerty_fiqin_end; > - > -extern void __init ams_delta_init_fiq(struct gpio_chip *chip); > #endif > > #endif > -- > 2.16.4 > -- Dmitry