From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbdJSLKZ (ORCPT ); Thu, 19 Oct 2017 07:10:25 -0400 Received: from regular1.263xmail.com ([211.150.99.131]:53336 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbdJSLKW (ORCPT ); Thu, 19 Oct 2017 07:10:22 -0400 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: <8439dd3e52a9d4a62f3e2c2fc48be5b7> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Jeffy Chen To: linux-kernel@vger.kernel.org, bhelgaas@google.com Cc: shawn.lin@rock-chips.com, briannorris@chromium.org, dianders@chromium.org, Jeffy Chen , Matthias Kaehlcke , devicetree@vger.kernel.org, Heiko Stuebner , linux-pci@vger.kernel.org, Klaus Goger , linux-rockchip@lists.infradead.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Will Deacon , Mark Rutland , Caesar Wang , Catalin Marinas Subject: [PATCH v7 0/3] PCI: rockchip: Move PCIE_WAKE handling into pci core Date: Thu, 19 Oct 2017 19:10:04 +0800 Message-Id: <20171019111007.25234-1-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we are handling wake irq in mrvl wifi driver. Move it into pci core. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Changes in v7: Move PCIE_WAKE handling into pci core. Changes in v6: Fix device_init_wake error handling, and add some comments. Changes in v5: Rebase Move to pci.txt Use "wakeup" instead of "wake" Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris Jeffy Chen (3): PCI: Add support for wake irq dt-bindings: PCI: Add definition of pcie wake irq arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru Documentation/devicetree/bindings/pci/pci.txt | 2 ++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 15 +++++++----- drivers/pci/pci.c | 34 +++++++++++++++++++++++++-- drivers/pci/probe.c | 32 +++++++++++++++++++++---- drivers/pci/remove.c | 9 +++++++ 5 files changed, 80 insertions(+), 12 deletions(-) -- 2.11.0