Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp301668imu; Tue, 22 Jan 2019 19:17:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5N9hf1TQbeOOYaTIT6em/QqSS4OHTTzjx3ITXsdfDpdmP++sIj79XoTzzprDSz3iOQv9+o X-Received: by 2002:a17:902:654a:: with SMTP id d10mr554202pln.324.1548213457748; Tue, 22 Jan 2019 19:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548213457; cv=none; d=google.com; s=arc-20160816; b=I/s+GaSpGDO0uOXTVW2GjSd2VgD1OibCx10TgzOm0M61Wjild1H1HuErdGPrl6DPpc bzL45GzIR+EyTLiHdHI52xN9GOSp2HSsTxe3GC3iot7CMsXnqMJgt/i2B4Zv15yrhc7b jBOvlW/UI0KeLjkDR9xvm/Zyox7oGqPvp4mYG/PwSf0+aJvh96Kt1PU9tJP8v4U/0lBr PZ9xuU+Htkk6k4O3yrm4HM12DGb29tjGy8s/Qbobe8gMVh4tGKMqHIthGRkQpVid+Rji xqr4M9VcAuFsGePGNjkVyjz9oUXye0Q7ul33B+raSjl78sHlMXIO5ycilJl4qxiBEm0A X7QQ== 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=OIt2PraarJj6oLRB8hXAXMu/D6I0+jLG/xjbwtNDd+A=; b=sKEBMzsCrFW0dUH7nv75Us8phFiWVRihHoPlucuHKCJBJ63CX/V1oXonRC2JkPXv7I noUE6gQg4idWWI6D/TTy69HMZ4RzqvYlnRIJlentbkPgVaCNP0j5dRUdsF2Z0zmQFNJ7 IwrnKZ0ydJbMYXqkDEpScxQD/WtxJJ67CBtq3txdassZyJTiqfavzzf8p2pIMJh2sJgv NrEaqXmSrg0+aXfLecDvCscV+jRiqi+n09nmBbi5fem4u58g7V5xEcAfmfbD9ChUbyEt yTj8gBM4GT0VkaJjW+XKJJsfGaMX1wOK9MJ/H6ZvSuEVHMj0ji6m+mh2jqrzm5eqHQeV wMEQ== 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 e13si18678767pgh.251.2019.01.22.19.17.21; Tue, 22 Jan 2019 19:17:37 -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 S1727033AbfAWDOu (ORCPT + 99 others); Tue, 22 Jan 2019 22:14:50 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:6324 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbfAWDOu (ORCPT ); Tue, 22 Jan 2019 22:14:50 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id BC181ED496CEDC05D35E; Wed, 23 Jan 2019 11:14:46 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x0N3Eg9g000641; Wed, 23 Jan 2019 11:14:42 +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 2019012311150170-23654282 ; Wed, 23 Jan 2019 11:15:01 +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 V2 0/6] add pvpanic driver framework Date: Wed, 23 Jan 2019 19:37:51 +0800 Message-Id: <1548243477-60654-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-23 11:15:01, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-01-23 11:14:34, Serialize complete at 2019-01-23 11:14:34 X-MAIL: mse01.zte.com.cn x0N3Eg9g000641 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)". 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 pvpanic pci driver drivers/misc/Kconfig | 9 +- drivers/misc/Makefile | 2 +- drivers/misc/pvpanic.c | 192 ------------------------------------ drivers/misc/pvpanic/Kconfig | 25 +++++ 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