Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1723270imu; Thu, 24 Jan 2019 00:20:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sMKbLK06qz7MyDEs9qqte4yn850wsCOH05dOVkfAmLJHi5yPtaerMYQJPRbQIB+IJFo0M X-Received: by 2002:a17:902:1126:: with SMTP id d35mr5300431pla.1.1548318056212; Thu, 24 Jan 2019 00:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548318056; cv=none; d=google.com; s=arc-20160816; b=M0JCgzjOYXPrqU7jJcCTjOccoQMyEPShGpRHdttCUEpOtgiB4op7EGKizBCXW/Zgrj uiM0gdSAFVtth2n+sQrHL2IwZINaouBaLV/GoUCXrJuTnqN5H2QmHYSZLKYJoKwBBHvB NfRV4wdnfYExVhCxWEJjdPA97wXB5lgwJsQo5jCMZZt0rBWxo+klj18LR+b2x3vWDHRd slD2OS94kw1hhxtFmuG28bp0zGZVIaHgBORkzswn/kK6W37f8cTW5aE7q8EwdbkXxesc oW0ukXDxTy26e1iqblGi5BncmRgryiWrT1BE45U9CQCwl221WDKmZbTme+LfACY3ROCi JQnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=vZXmh9VaMch1LkGna+b0tzpMutlp7qZxmI/FxzZTRc4=; b=m1D3dxqCC8Sbe6WXTHKXFrJP2ZwCnGCnrNpjinN1LTrrzIy5O6SBqiql2kIr6zqeIg gPYSiMTBPyg+rVs0iXpx1Ht/S9rZRNiN9jmQNPYIrENMxw+3b6OL07Mn1956DkXXyQlY +vQdx55puDNr/Ns4bt5f1MkHGpC4h7vkyUlkFDXNXTqm2aOU11Tr+Zen3fdnQt/no4E/ ljUOVSj8g76cI3Mrj6u5EKNBoMDSoNQQ7DkgaQkenWMBwMa22+TREj5+hvPjgVcr1nTp we19SsqokMk8d8AfhwRUEcsJ1Hh/l8zTzn+6XYnJmoIHcqzhH0UYfAFGnwL0VOajtIZq 4LZA== 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 t3si22873264pgo.585.2019.01.24.00.20.40; Thu, 24 Jan 2019 00:20:56 -0800 (PST) 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 S1727069AbfAXIRl (ORCPT + 99 others); Thu, 24 Jan 2019 03:17:41 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:64624 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfAXIRl (ORCPT ); Thu, 24 Jan 2019 03:17:41 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id A92F1AE6CB4E24024120; Thu, 24 Jan 2019 16:17:37 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x0O8HQfC030828; Thu, 24 Jan 2019 16:17:26 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2019012416175619-23927958 ; Thu, 24 Jan 2019 16:17:56 +0800 From: Peng Hao To: gregkh@linuxfoundation.org, arnd@arndb.de, andy.shevchenko@gmail.com Cc: linux-kernel@vger.kernel.org, Peng Hao Subject: [PATCH V4 0/6] add pvpanic driver framework Date: Fri, 25 Jan 2019 00:40:32 +0800 Message-Id: <1548348038-69560-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-01-24 16:17:56, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-01-24 16:17:14, Serialize complete at 2019-01-24 16:17:14 X-MAIL: mse01.zte.com.cn x0O8HQfC030828 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QEMU community requires additional PCI devices to simulate PVPANIC devices so that some architectures can not occupy precious less than 4G of memory space. Previously, I added PCI driver directly to the original version of the driver, which made the whole driver file look a bit cluttered. So Andy Shevchenko suggests: "I would recommend to split it in a way how it's done for ChipIdea USB driver, for example. (drivers/usb/chipidea if I'm not mistaken)". v3 ---> v4 : add help text info in Konfig from patch_0004 to patch_0006 adjust structure definition position in patch_0002 and patch_0003 v2 ---> v3 : add change infomation. v1 ---> v2 : add patch 0000 to descript the whole patch series. modify text infomation from patch_0002 to patch_0006. modify "SPDX-License-Identifier: GPL-2.0-or-later" to "SPDX-License-Identifier: GPL-2.0+" Peng Hao (6): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driver framework misc/pvpanic: add API for pvpanic driver framework misc/pvpanic: add pvpanic acpi driver misc/pvpanic: add pvpanic mmio driver misc/pvpanic: add new pvpanic pci driver drivers/misc/Kconfig | 9 +- drivers/misc/Makefile | 2 +- drivers/misc/pvpanic.c | 192 ------------------------------------ drivers/misc/pvpanic/Kconfig | 34 ++++++ drivers/misc/pvpanic/Makefile | 8 ++ drivers/misc/pvpanic/pvpanic-acpi.c | 77 +++++++++++++++ drivers/misc/pvpanic/pvpanic-of.c | 53 ++++++++++ drivers/misc/pvpanic/pvpanic-pci.c | 56 +++++++++++ drivers/misc/pvpanic/pvpanic.c | 131 ++++++++++++++++++++++++ drivers/misc/pvpanic/pvpanic.h | 14 +++ 10 files changed, 366 insertions(+), 201 deletions(-) delete mode 100644 drivers/misc/pvpanic.c create mode 100644 drivers/misc/pvpanic/Kconfig create mode 100644 drivers/misc/pvpanic/Makefile create mode 100644 drivers/misc/pvpanic/pvpanic-acpi.c create mode 100644 drivers/misc/pvpanic/pvpanic-of.c create mode 100644 drivers/misc/pvpanic/pvpanic-pci.c create mode 100644 drivers/misc/pvpanic/pvpanic.c create mode 100644 drivers/misc/pvpanic/pvpanic.h -- 1.8.3.1