From patchwork Fri Dec 29 13:31:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 122931 Delivered-To: patches@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4693440qgn; Fri, 29 Dec 2017 05:31:55 -0800 (PST) X-Received: by 10.46.116.9 with SMTP id p9mr20055646ljc.28.1514554315467; Fri, 29 Dec 2017 05:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514554315; cv=none; d=google.com; s=arc-20160816; b=byqUpImaoA8FfImPB5Z6gMxecYmotK7kgbp+pvlhYpOwFye3gOtIBbAQwFwh07xTID TMHeyoHD6KcIsgXf6nDpG3AWf3uFF8Plz1lLQcOg1Vo+7iz2FDvH7mFGRqdBJlS1dA+I H0oDADI5gb9qmbxfvThQhhnPzNfsRfhiOi1GV/6LAY0PREvpO4yhMMmCRkDJPxDFt1Uz nOGi9Dk43dkrI/cykfhfsiwt8bpUStqV6Rggs5/hGyWkA44bWDAvfmG5+YWtlbAy9QZH KvfXezLy47XRn5Io3OBPWYsN/hmLxncOF32iScC0w7a2wVyKSKGJpZNo18aatVDAi0z9 uWNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=lojZXSfdhbNDet1sOf3QtDFmjpLWKpTirmu/AEYK9lU=; b=QebizuMJUPiCvMDr0paP0EatOGbfICNAibHD0NVNqzf/TaIObQiMuH4mmCdShVSe6c ILFTICyeh2vDQMIKTAGmQdwGqwxPV2DdZPgy1nXCzRQFpxeowaU8j1OTMAIA5lS2SXQa 4pijSmGRoV+SkdFF4aYl+BdiMLoEj9oCZoVVlGr/AWG4HegxrO6nwLMJ1L+xru7tinJC QdcbpvHCxRG+uxhtUZjOdo6OlvbyBlqVQWrBN8j4nLTUqYby1XYzAHolzYemJ274mggH xZxnYKB9Mr0zZEYuxaaVh8g0D8VGRE9lgMErsBli9g99uzbEFFxr6JWOM5+qq8EoNaUN n6fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNHm8qC7; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h9sor6253674ljh.111.2017.12.29.05.31.54 for (Google Transport Security); Fri, 29 Dec 2017 05:31:54 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNHm8qC7; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=lojZXSfdhbNDet1sOf3QtDFmjpLWKpTirmu/AEYK9lU=; b=BNHm8qC7sueVL8M1Oc74a7Jg7+JFBM8r1ZRsZ6NfZMLOzbNJHlKDrnxykWSkRl8ZZW Zad+LWM/gdO8rybxC2k6JeuAizgHOscv6e6ZX5Q5Ve9YmXalvOGp23zeVrjPUw2qaO0u D8Z8XTOqx0xwrtp1sSvbkhN7wjWLkc8r4WrVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lojZXSfdhbNDet1sOf3QtDFmjpLWKpTirmu/AEYK9lU=; b=raYIPh3iMevHpczodbhNjt2z9M/Lqucl9vj9nf/ACtLiL43Cq5bmybmx3Ginz68FAM IWJnJxJCMX4btqlPtAGqIdZLOXLJk1Utnjs/qX1cJ4FXktfVWgRELeH3PlvVjKcgtisw BAldVrCjK5j996Tr4xIkgJag/NR08T2D3Oc6wBb+XIDZz6Thd05YUwyS40lpsVqR6Kl6 ELIt377ZwYveeeirP7xzcujQkmZ4GiRxvXwCMcsBvyCpCBaBVKgP2DhXDISQhgtrZtPv OrqXX+r/FoC3KIezfZIMQvCWkib3QbIROAnkP/XvWVtUeUItXGdp4ECPlSpBDEZfVH0j EuHg== X-Gm-Message-State: AKGB3mKTVxqVFXE2eOcyB+pqR7ZRRRYkgLpbsrrzQ7lF4IJcq2xFZJpk SYK4U5EbiW2Q5Ql62GeWHWni/fu7 X-Google-Smtp-Source: ACJfBougnEPsDzOfFAxeird5oYH1sWrrzGQmus512EqLyz0n0nl5FCqHQTSzCDH6fiiRVMo5J4MKJw== X-Received: by 10.46.88.77 with SMTP id x13mr20066948ljd.80.1514554314501; Fri, 29 Dec 2017 05:31:54 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id e72sm7521063lji.63.2017.12.29.05.31.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 05:31:53 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Simon Horman , Niklas Soderlund , Geert Uytterhoeven , Ulf Hansson , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] renesas: irqchip: Use WAKEUP_PATH driver PM flag Date: Fri, 29 Dec 2017 14:31:41 +0100 Message-Id: <1514554304-18989-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 From: Geert Uytterhoeven Changes in v2: [By Ulf Hansson] - I have picked up the series from Geert [1] and converted it into use the WAKEUP_PATH driver PM flag. This includes some minor changes to each patch and updates to the changelogs. - An important note, the WAKEUP_PATH driver PM flag is introduced in a separate series [2], not yet applied, so @subject series depends on it. - One more note, two of the patches has a checkpatch error, however I did not fix them, becuase I think that should be done separate. [1] https://lkml.org/lkml/2017/11/9/382 [2] https://marc.info/?l=linux-pm&m=151454744124661&w=2 More information below, picked from Geert's previous cover letter. Kind regards Uffe Hi all, If an interrupt controller in a Renesas ARM SoC is part of a Clock Domain, and it is part of the wakeup path, it must be kept active during system suspend. Currently this is handled in all interrupt controller drivers by explicitly increasing the use count of the module clock when the device is part of the wakeup path. However, this explicit clock handling is merely a workaround for a failure to properly communicate wakeup information to the device core. Hence this series fixes the affected drivers by setting the devices' power.wakeup_path fields instead, to indicate they are part of the wakeup path. Depending on the PM Domain's active_wakeup configuration, the genpd core code will keep the device enabled (and the clock running) during system suspend when needed. Note that most of these patches depend on the series "[PATCH v2 0/3] PM / Domain: renesas: Fix active wakeup behavior", hence they should not be applied yet. This has been tested on r8a73a4/ape6evm, r8a7740/armadillo, r8a7791/koelsch, r8a7795/salvator-x and -xs, r8a7796/salvator-x, and sh73a0/kzm9g. Thanks for your comments! Geert Uytterhoeven (3): irqchip/renesas-intc-irqpin: Use WAKEUP_PATH driver PM flag irqchip/renesas-irqc: Use WAKEUP_PATH driver PM flag gpio: rcar: Use WAKEUP_PATH driver PM flag drivers/gpio/gpio-rcar.c | 40 +++++++++++------------------ drivers/irqchip/irq-renesas-intc-irqpin.c | 42 +++++++++++-------------------- drivers/irqchip/irq-renesas-irqc.c | 32 +++++++++++------------ 3 files changed, 45 insertions(+), 69 deletions(-) -- 2.7.4