Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbdHRMi7 (ORCPT ); Fri, 18 Aug 2017 08:38:59 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34593 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdHRMi5 (ORCPT ); Fri, 18 Aug 2017 08:38:57 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Andy Shevchenko Date: Fri, 18 Aug 2017 15:38:56 +0300 Message-ID: Subject: Re: [RFC v1 4/6] platform: x86: Add generic Intel IPC driver To: Kuppuswamy Sathyanarayanan Cc: "x86@kernel.org" , Ingo Molnar , Zha Qipeng , "H. Peter Anvin" , "dvhart@infradead.org" , Thomas Gleixner , Andy Shevchenko , "linux-kernel@vger.kernel.org" , Platform Driver , Sathyanarayanan Kuppuswamy Natarajan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 52 On Tue, Aug 1, 2017 at 9:13 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > Currently intel_scu_ipc.c, intel_pmc_ipc.c and intel_punit_ipc.c > redundantly implements the same IPC features and has lot of code > duplication between them. This driver addresses this issue by grouping > the common IPC functionalities under the same driver. > > Signed-off-by: Kuppuswamy Sathyanarayanan > --- > arch/x86/include/asm/intel_ipc_dev.h | 148 ++++++++++++ No, it should go under include/linux/platform_data/x86/ > +/* > + * intel_ipc_dev.h: IPC class device header file No file names in the top of files. > + * > + * (C) Copyright 2017 Intel Corporation > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; version 2 > + * of the License. > + * > + */ > +struct intel_ipc_dev_cfg { > + void __iomem *base; > + void __iomem *wrbuf_reg; > + void __iomem *rbuf_reg; > + void __iomem *sptr_reg; > + void __iomem *dptr_reg; > + void __iomem *status_reg; > + void __iomem *cmd_reg; No, you have to switch to regmap instead. > + int mode; > + int irq; > + int irqflags; > + int chan_type; > + bool use_msi; > +}; -- With Best Regards, Andy Shevchenko