{"id":831129,"url":"http://patchwork.ozlabs.org/api/1.2/covers/831129/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-imx/cover/20171027072612.26565-1-jeffy.chen@rock-chips.com/","project":{"id":19,"url":"http://patchwork.ozlabs.org/api/1.2/projects/19/?format=json","name":"Linux IMX development","link_name":"linux-imx","list_id":"linux-imx-kernel.lists.patchwork.ozlabs.org","list_email":"linux-imx-kernel@lists.patchwork.ozlabs.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20171027072612.26565-1-jeffy.chen@rock-chips.com>","list_archive_url":null,"date":"2017-10-27T07:26:05","name":"[RFC,v10,0/7] PCI: rockchip: Move PCIe WAKE# handling into pci core","submitter":{"id":67754,"url":"http://patchwork.ozlabs.org/api/1.2/people/67754/?format=json","name":"Jeffy Chen","email":"jeffy.chen@rock-chips.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-imx/cover/20171027072612.26565-1-jeffy.chen@rock-chips.com/mbox/","series":[{"id":10524,"url":"http://patchwork.ozlabs.org/api/1.2/series/10524/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-imx/list/?series=10524","date":"2017-10-27T07:26:05","name":"PCI: rockchip: Move PCIe WAKE# handling into pci core","version":10,"mbox":"http://patchwork.ozlabs.org/series/10524/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/831129/comments/","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"g9C5pAF0\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"Agim8Gq/\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yNb713XpGz9t30\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 27 Oct 2017 18:27:25 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e7z35-0006p6-SZ; Fri, 27 Oct 2017 07:27:23 +0000","from merlin.infradead.org ([2001:8b0:10b:1231::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e7z33-0006oj-F3; Fri, 27 Oct 2017 07:27:21 +0000","from regular1.263xmail.com ([211.150.99.133])\n\tby merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e7z30-0002zN-3D; Fri, 27 Oct 2017 07:27:19 +0000","from jeffy.chen?rock-chips.com (unknown [192.168.167.174])\n\tby regular1.263xmail.com (Postfix) with ESMTP id 5B9749003;\n\tFri, 27 Oct 2017 15:26:24 +0800 (CST)","from localhost (localhost [127.0.0.1])\n\tby smtp.263.net (Postfix) with ESMTPA id D1FDA3AE;\n\tFri, 27 Oct 2017 15:26:14 +0800 (CST)","from localhost (unknown [103.29.142.67])\n\tby smtp.263.net (Postfix) whith ESMTP id 84306YFJUK;\n\tFri, 27 Oct 2017 15:26:23 +0800 (CST)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=QOFIuO7oFG1piT/saUNoSFtY8mOoIOLV1xFTsPn4PlY=;\n\tb=g9C\n\t5pAF0buD+2ej1EZtjdDSPSBYDVj8ZtLusVL9akV4K5tVOxdm64MWOMTucHlWv3CAO1unbx70UySUw\n\tIuUhnf+JLQNaYfKNesz3qb2y2abValFC7Pi3DjrdUhXpVJ6xAFS4Hr7fXWYbBjKIl5cQjIi2+zmN5\n\typFYKRnN0+UkFL0JlOUOOwWKTkHlQw1NqIZl/ZtQfvtqlhYJtOmW7CWH/Ht5BowRZ2ZcfUDrfzerd\n\t10mgGJpNcSJSR9fmrOYxSnn6wpIKsnNH2JeCPBp5sOQC0NeJ3wYhw81rwhD+EqoAhuTwqY+ju+FLd\n\tjmYhfNEQQ8RwFi5aBzsX099qvBa6KeA==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=merlin.20170209;\n\th=Message-Id:Date:Subject:Cc:To:From:\n\tSender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=1TtiCa+B35f+5YqfSdA7o7mP6kVu9lQ1bTvZcX53x0Q=;\n\tb=Agim8Gq/X6xvAdeYIg8hrhfS9\n\t2tpXD2zev4RumlZeZDP9eGaitWTSkbRGRVbW2I8EJnOnyvE5wXKFf3N1hOHiJJkrlTRqcZ6QBngTJ\n\tz6s4Ql3AzKkfjP2qa5c9LF8WojADnxn+wPPy8soFrqyJ/bf2rXRS6yjbBpGgmkLjRYYNsm+Jy+bO9\n\t+m+pKr0UffEJJYzxOd6VxBDoNCBB4KyNB4EO3Jtce6/x6UXqPoNfqztSnniBTUYWi3IkCMSWapeLM\n\tMhMmL5jSMfv4BxLv1cTnHIEVXjGMIYJeX8m234CgdOQsMof8mek79i6cPBuVIPn55myzSVn+TKTr3\n\ttxsc0fcIA==;"],"X-263anti-spam":"KSV:0;","X-MAIL-GRAY":"0","X-MAIL-DELIVERY":"1","X-KSVirus-check":"0","X-ABS-CHECKED":"4","X-RL-SENDER":"jeffy.chen@rock-chips.com","X-FST-TO":"linux-kernel@vger.kernel.org","X-SENDER-IP":"103.29.142.67","X-LOGIN-NAME":"jeffy.chen@rock-chips.com","X-UNIQUE-TAG":"<4cf8ad196befe305a7c947531e72e096>","X-ATTACHMENT-NUM":"0","X-SENDER":"cjf@rock-chips.com","X-DNS-TYPE":"0","From":"Jeffy Chen <jeffy.chen@rock-chips.com>","To":"linux-kernel@vger.kernel.org,\n\tbhelgaas@google.com","Subject":"[RFC PATCH v10 0/7] PCI: rockchip: Move PCIe WAKE# handling into pci\n\tcore","Date":"Fri, 27 Oct 2017 15:26:05 +0800","Message-Id":"<20171027072612.26565-1-jeffy.chen@rock-chips.com>","X-Mailer":"git-send-email 2.11.0","X-Spam-Note":"CRM114 invocation failed","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on merlin.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [211.150.99.133 listed in list.dnswl.org]\n\t0.0 RCVD_IN_MSPIKE_L3      RBL: Low reputation (-3)\n\t[211.150.99.133 listed in bl.mailspike.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000] 0.0 RCVD_IN_MSPIKE_BL      Mailspike blacklisted","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Mark Rutland <mark.rutland@arm.com>, linux-wireless@vger.kernel.org,\n\tHeiko Stuebner <heiko@sntech.de>, tony@atomide.com,\n\tlinux-pci@vger.kernel.org, \n\tshawn.lin@rock-chips.com, Will Deacon <will.deacon@arm.com>,\n\tAmitkumar Karwar <amitkarwar@gmail.com>,\n\tKlaus Goger <klaus.goger@theobroma-systems.com>,\n\tFrank Rowand <frowand.list@gmail.com>,\n\tlinux-rockchip@lists.infradead.org, \n\tbriannorris@chromium.org, linux-acpi@vger.kernel.org,\n\tMatthias Kaehlcke <mka@chromium.org>,\n\tlinux-arm-kernel@lists.infradead.org, \n\tCatalin Marinas <catalin.marinas@arm.com>, Len Brown <lenb@kernel.org>,\n\tdevicetree@vger.kernel.org, Xinming Hu <huxm@marvell.com>,\n\tlinux-pm@vger.kernel.org, Jeffy Chen <jeffy.chen@rock-chips.com>,\n\tNishant Sarmukadam <nishants@marvell.com>,\n\tRob Herring <robh+dt@kernel.org>, \n\tKalle Valo <kvalo@codeaurora.org>, Ganapathi Bhat <gbhat@marvell.com>,\n\tnetdev@vger.kernel.org, rjw@rjwysocki.net, dianders@chromium.org,\n\tCaesar Wang <wxt@rock-chips.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"},"content":"Currently we are handling wake irq in mrvl wifi driver. Move it into\npci core.\n\nTested on my chromebook bob(with cros 4.4 kernel and mrvl wifi).\n\n\nChanges in v10:\nUse device_set_wakeup_capable() instead of device_set_wakeup_enable(),\nsince dedicated wakeirq will be lost in device_set_wakeup_enable(false).\n\nChanges in v9:\nAdd section for PCI devices and rewrite the commit message.\nRewrite the commit message.\nFix check error in .cleanup().\nMove dedicated wakeirq setup to setup() callback and use\ndevice_set_wakeup_enable() to enable/disable.\n\nChanges in v8:\nAdd optional \"pci\", and rewrite commit message.\nRewrite the commit message.\nAdd pci-of.c and use platform_pm_ops to handle the PCIe WAKE# signal.\n\nChanges in v7:\nMove PCIE_WAKE handling into pci core.\n\nChanges in v6:\nFix device_init_wake error handling, and add some comments.\n\nChanges in v5:\nMove to pci.txt\nUse \"wakeup\" instead of \"wake\"\nRebase.\n\nChanges in v3:\nFix error handling.\n\nChanges in v2:\nUse dev_pm_set_dedicated_wake_irq.\n\nJeffy Chen (7):\n  dt-bindings: PCI: Add definition of PCIe WAKE# irq and PCI irq\n  of/irq: Adjust of_pci_irq parsing for multiple interrupts\n  mwifiex: Disable wakeup irq handling for pcie\n  arm64: dts: rockchip: Move PCIe WAKE# irq to pcie driver for Gru\n  PCI: Make pci_platform_pm_ops's callbacks optional\n  PCI / PM: Move acpi wakeup code to pci core\n  PCI / PM: Add support for the PCIe WAKE# signal for OF\n\n Documentation/devicetree/bindings/pci/pci.txt |   8 ++\n arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi  |  15 +--\n drivers/net/wireless/marvell/mwifiex/main.c   |   4 +\n drivers/of/of_pci_irq.c                       |  13 ++-\n drivers/pci/Makefile                          |   2 +-\n drivers/pci/pci-acpi.c                        | 121 ++++++++++++------------\n drivers/pci/pci-driver.c                      |   9 ++\n drivers/pci/pci-of.c                          | 127 ++++++++++++++++++++++++++\n drivers/pci/pci.c                             | 112 +++++++++++++++++++----\n drivers/pci/pci.h                             |  31 +++++--\n drivers/pci/probe.c                           |  12 ++-\n drivers/pci/remove.c                          |   2 +\n include/linux/pci.h                           |   2 +\n 13 files changed, 361 insertions(+), 97 deletions(-)\n create mode 100644 drivers/pci/pci-of.c"}