Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030957AbbKDUQw (ORCPT ); Wed, 4 Nov 2015 15:16:52 -0500 Received: from mail-bn1on0093.outbound.protection.outlook.com ([157.56.110.93]:5114 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030260AbbKDUQt (ORCPT ); Wed, 4 Nov 2015 15:16:49 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; linutronix.de; dkim=none (message not signed) header.d=none;linutronix.de; dmarc=bestguesspass action=none header.from=xilinx.com; From: Soren Brinkmann To: Thomas Gleixner , Lars-Peter Clausen CC: Linus Walleij , Alexandre Courbot , Michal Simek , Grygorii Strashko , , , , Soren Brinkmann Subject: [PATCH v2 0/2] Power management callbacks for irqchips Date: Wed, 4 Nov 2015 12:15:58 -0800 Message-ID: <1446668160-17522-1-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.6.2.3.ga463a5b MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21920.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD037;1:AqNgkgaNurxpmaPIXHHxbz6aKQkp35ACRspDfUqiyLFS+5TEiJ+JTC826mmVBC4x67aspMy9R6XGKNQ5ms1k76DxVyizwfEIMcr0FnjjW2Ci6vT1Ip23V0dVjZ2wxc8glODSCPC2vHVSMK9Jvz30Bkp+csOupwQ293dc1EzVBLSZQjQJaZ9oX0sJFPLNRul+NIE+xbnYuNEvTn1xicyFvxTqz8gRA+6Xb2N6e4lE+UfpwrW/3X4q2gKE37812gwx7hU3hswZj+ePMuJZwDiBdMPhUeBwAjKYejSpkUubuJ/qoDAuysBxDnbGZVBFdvkLEwlQXrh5u6rS3cKpozRHBeA+tnBphOldbg7TiKpurD969+oAvfrYTLVBLZ1gypGe X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(164054003)(189002)(199003)(76506005)(19580395003)(6806005)(5007970100001)(33646002)(107886002)(87936001)(5001920100001)(63266004)(23676002)(47776003)(5001960100002)(50466002)(5008740100001)(92566002)(50986999)(57986006)(36386004)(50226001)(86362001)(229853001)(189998001)(106466001)(16796002)(5001770100001)(36756003)(5820100001)(15975445007)(81156007)(4001430100002)(77096005)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1AFFO11HUB038;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11HUB038;2:ATl29eaMi93QM5jZfYMEPjuRkIGZUt1L4vbYhTOpU9xsDljN234hK1+250wsjrSRtuGX47Oar1ogvq1+h+V2bz9ucl5bb6G//ouvYj3pT5kk75knb57sGDzshk3pPRWQ3mtEv6pCAxVPN8eS9DbMyM/jiDqCHBHCbFjeoXLxkTY=;3:wR4QCEWa+uCxkpbo9aD/2jerreuG6sdq7GdAcUgodHiwCIsBfYqbvgBxXlPQ8QFHaZRFlaMUQy8babyQdH0df7VeREziuIIAZT5Phsfi85Fc2hQmtinow5AHy6QYXIL+VEPzqOCopxT6q8E07uuzg1HwzQh403KziB4fh3js2qtCqM8h48t/dxiGGCpBZhG+BqlyD150udNiJDa1EU57nEqs4w4CAV47DhswfUQaiS1VF5yaaDfGBuMBdPTwxAUx3UH290+J/3MJ1J748uft7A==;25:QWKvwe24DqQ44X0dXNrOKgM1hqqsS+3SsL4n+PUBDYa5fntIKwfSeT8V6siHZW0+cew+urZSQc6PfnxI9SQjHtsPEk5t+7rBmDm+TBaGjAO0Ggb/DyRwYZ3yj1++oJOu+v6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eaUXcu1h6cp4MaP0rPnuovRvD16yzOA03DnTBhPzVw0NR3gLA8B1RXmDEYiK7IMUH9oKI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BN1AFFO11HUB038;BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB038; X-Forefront-PRVS: 0750463DC9 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFBRkZPMTFIVUIwMzg7MjM6VmN3QXFMYU1VdHZZb3hkemtZUElUTEQ1?= =?utf-8?B?WGlDR0JId2E4L2dNdGVsY1o2ZEZBbDVlUmpjQWNKd1ZhMzd6cFVrZE5xVHBl?= =?utf-8?B?dllKZHV3YXE5TVhEYThaQ2hEOTVnRmh5bFh5aU1nQ1NHNm5nekc1UXpraFV0?= =?utf-8?B?UHRzTUlYQ1pwazBoMjVYWnZGZkFoOWZkVHVjZnBJRjBTUEJCT280bUJxWWM1?= =?utf-8?B?ejJDV0NnZGlSdXRnb1VmMHQzZUtuc2FNRVlqNFdaTGd3MDFoN3A5NGdKY25P?= =?utf-8?B?WEk4aFhDNURnRVpyVVU3NU5RNjhVczAxSGdzWndmR0p1VTNmek9vdktqakxI?= =?utf-8?B?eVA3VXk4TmdGRWRPMUhpSDlTeHh3eCtSbnozbFI4QW1qYUlBK3gxcHdlSXdP?= =?utf-8?B?eHFUN05zbXNqS0tKdzhDUklnY3BNdGFXcWlmdUQ3MmJSYWszUW8rMTIwdHFh?= =?utf-8?B?OTRLa2lMR2YydEx4Rkh5STZHMzI3OWt3czR6c3BJckluUythdk1OZVJqT0xm?= =?utf-8?B?UUNvLzB5ai9JTWpuKytacDRzNC9OUG42VHNzdVlLTVB5UkJIK0dCeHNZT1Yz?= =?utf-8?B?V0k5anBUY1RxZDhJbjZCQzlhTWlqQkxPVmY5aklBcC8vWXdxV1FNZ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00pY/HdRBw/Lw4X5IgD/9ksugx5mcwMsuvNgHjCIcBJx28UgmjGw+TIr0Jw7PbFLuBTgr2tZsooaLvT01Pz5hq9+WPLvqTDXcD7eGIrWg==;24:2qovquT2Tri+GGFSpyOTSydgIrZRgzt8hr2PXoylvTTLyWCve0HX7aVLPlcybMlvzu6WxKZ4Qwv+1zFJ1MqMb7qDRqesaov/lZj3hMvQ/jg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2015 20:16:46.7569 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1AFFO11HUB038 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 32 Hi, we recently discussed how to handle power management with GPIO devices that can generate interrupts here: https://lkml.org/lkml/2015/10/23/305. At the end of that discussion stood Lars' suggestion to add a new pair of callbacks to the irqchip for this purpose. This is a first, naive implementation of that approach. Thanks, Sören v2: - add mailing lists (sorry for forgetting that in v1) Sören Brinkmann (2): genirq: Add irq_pm_(get|put) callbacks to the irqchip gpio: zynq: Implement irq_pm_(get|put) drivers/gpio/gpio-zynq.c | 20 ++++++++++++++++++++ include/linux/irq.h | 4 ++++ kernel/irq/internals.h | 14 ++++++++++++++ kernel/irq/manage.c | 20 ++++++++++++++++---- 4 files changed, 54 insertions(+), 4 deletions(-) -- 2.6.2.3.ga463a5b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/