From patchwork Fri Jul 21 09:46:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 123739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp100690vqg; Fri, 21 Jul 2023 03:15:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHwf9kxoBegeERbmO124hzutKxn9HcJemYp+qE44Z9h5kuRVt15WfIWwYWgFzCZ/SqruCqH X-Received: by 2002:a17:903:11c5:b0:1b9:ebe9:5f01 with SMTP id q5-20020a17090311c500b001b9ebe95f01mr1976636plh.19.1689934530460; Fri, 21 Jul 2023 03:15:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689934530; cv=pass; d=google.com; s=arc-20160816; b=iwYPPGIs7o1+1iffveVt6il64dBsQwZN3dRbfhgjauitws9RfYbYt6uQ6FHP/YOzUE xU+CWUvR+eQFOFWiOr3QjRU1x+JhPtG6acDdXsquLlW+0juIUKdn8P01qM6OzkS9Hrz5 8elBuouEeadnJ7BKfAJ4AvMwLNzdvQwOQsD/1OQilSfq+OkmFl6Rtp+iFvIV08fd9I20 Ozx+f7zMgl5CLDPvqrNfsTz48oXO+bonl3yFy1VMBIqoQKtCIpOQdstjQMAydnVTRgC5 RYVhGmJKYM/9WMPdp8tQsqXXmQzrYexpW3z04IZrW1PZkb451xvZJ2j2fnHLzANQyrjZ vcXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=gxSaJcUJrOhYfCgqHyxB2Dz5FjATs5FXCAzpxy8vL+A=; fh=W5R8GLqMLQzWLtsksSQ/SV0LRpkJLRiXBKjtiKwZvFY=; b=RP2HaEqJVaUJ1xcVLD97A+s2nKQQ0DbPOK+u5h4qrFKnCOPfBCWmsE4H5oJAKXSsFK WxC32UjTHGn/OpN2/L4RW7//flv023LDEB8DG6ROZDjqG/6SCiHnZ4W+fDQ3r6VwKEMi Fs/LlE5l6pCpVxlR1JfN+qXBcbX/2LvRvcy5L+qVQAEwX5nAWU5Uny7xIEXJ6b0AC6cT 7nhzW6xIUZyDEzX0tGJSEcTINpSE806/Xx9Ud6zczqr3Q+0bmcEL/MfwzHH2582xJkU5 kn4/XyZNZjV2+yfX+Lj//QU10y01osQosIDE+iOWE+FWrFglvXL6nz+cnYxgiyldKH55 j2PQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LIlmhHl4; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a170902d4c800b001ac4f733007si3042720plg.549.2023.07.21.03.15.14; Fri, 21 Jul 2023 03:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LIlmhHl4; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231293AbjGUJrL (ORCPT + 99 others); Fri, 21 Jul 2023 05:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbjGUJrH (ORCPT ); Fri, 21 Jul 2023 05:47:07 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AAA72715 for ; Fri, 21 Jul 2023 02:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZF9tVg2gJqNJ+PZrKIQ71MJ+og3AinHuKx932B2I1siTt58soODavXoiJMnBKA5bGjWtOl37C6YZHdf110F8AF2CBrmnG8WLhLh9rb4F2Sj6chsv9LJhljQ+nt4rwABBkqN2vfz3sRXbiBRY23bZriq4pUfbSUoKgft7qOV+VTFGNgyQxZxjPbVRp5N2wHCSy9CsxSz6TE9Jnoabuq58bHbh95Q77bnGtm828sA2gXOvUPE+zfhK43pVANoAKji2vHksV3oAjjPPsJJN23D7ImRRIPrJE71/1c2691mv366mhPQjyp7jXsyVYb0QAr5vigpfDK6sIsSY4wjBWMnhBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gxSaJcUJrOhYfCgqHyxB2Dz5FjATs5FXCAzpxy8vL+A=; b=BCicPA6lCdQAYIdlHzrApMGxMY/fw5uqrOP35LnlvvAQStKz1czH5m4/ISno3XdH+ODDRjJkKSMfaxgaaGQb30SDnBdQwbNwqqhhsWOIrZswzQidyDV2cBYy2FSQuwh9XfRQbUlG3sT3iwvAERXsQT+Q1tFH/Q4CLQVrdEQmCgqEr7ntKaxoAIh76HcdpKplP+KyArScwQb4AthmtvrkYDsqTtiamWSHzhdD+6a75ueoKkA0R8beeoD7GEPHXGmx3AvkEx60p351SJ/ac0fSKDzYUbXy6WxGYS8uJKb+/6HeE/8KPowSCiB7Ic2H599zOKU63cIdOEgTCc1/adbj6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gxSaJcUJrOhYfCgqHyxB2Dz5FjATs5FXCAzpxy8vL+A=; b=LIlmhHl4RwO7jdDkbLswj1Cn7osX7s44UC2ka54T7KRE3sVlMd5h9usKb3lO3TLhLCyavOcKSLq/zs2sILowp/JGT6BeM36YgtqHhFbG7+ZhrQgknrbDNKcRwmpbe2TeH4sxIH3SJi5C/kBksRBctEnAwY2YH+co0ZW8uE25wHkMPeFnPj6LGVrXS8PhEvpXt4AkykakaG3RQ7fENkZ01c9+3KXIUGEDPl+Cnx8kKMbxKAAoz0RCQpozRgPo2K1b5KhtBJi8gevc15FWbFOYKHERZpxY5bY4LR9lyufwlQMtCeETX4SAB0QOYQouS7dDRi92uTTCmglR7dXxcbVqpA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by KL1PR06MB6789.apcprd06.prod.outlook.com (2603:1096:820:ff::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Fri, 21 Jul 2023 09:46:56 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b%3]) with mapi id 15.20.6588.031; Fri, 21 Jul 2023 09:46:56 +0000 From: Yangtao Li To: Thomas Gleixner Cc: Yangtao Li , Krzysztof Kozlowski , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Jonathan Cameron , AngeloGioacchino Del Regno , Geert Uytterhoeven , Jonathan Cameron , linux-kernel@vger.kernel.org Subject: [PATCH v5 01/22] genirq/devres: Add devm_request_threaded_irq_probe() and devm_request_irq_probe() Date: Fri, 21 Jul 2023 17:46:20 +0800 Message-Id: <20230721094641.77189-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI2PR01CA0031.apcprd01.prod.exchangelabs.com (2603:1096:4:192::11) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR06MB6789:EE_ X-MS-Office365-Filtering-Correlation-Id: 297f9694-3ab4-41b7-0ff1-08db89cf6b7d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5X+wXCgtxZSOyFtPTy8zq8sNdGDL07VuyNexTis2Y/rERr1+WKzEtrCO2Bz908CxTEI8Jz0ulQMgWxtCEJvQzQtQzMXmVW5SRlWZelgrRaizY3QLFuOjbGX9s9+UW2lS3nW4UAHb5/+9vo8Ql852ocJKppom2cf5WSfHQuu2TqtcrSP0vmzSl24dyog/vcK/zVgnBlgW4eiUDj2yTmOYs2GFJrjhEyX+1ckyWn0hvfS2iV9x3c/Sz8vtX4SzCbLVnpnX9au8IF3eyqZyB9i1BHv96GcqRogsoEVzohUkkSGsguL0pkI2tJgOYcAMYU3j0T8bP3vCT2esGhNuJphZYez8FAGegusQSn8APdZjN+GI2AHgQT6XRZNRvPhyD9dduqm7/A0d7XQJTSHmJj9CJ+3fvJimZNMgDHmTVwVIzGgq8qp9wKNDptuqZWN+bbTO6Qlb8rgusgtTC8r5L8GtXXxu2mtKyaS8rWeWdvXev8HY9UW1lJHeasEz1R1NLdyjsn2jgOKP1iPYvdCWaHt3Oj7Uk/zf4QlvQ0Q5urcTVNdp8MPuWY5JP1AUOtw62tXfUs8Z5QrXGnFa45RCL5GzKiX20kNVSPZhlb7FJoUEknCyCwGPxoqKWy7MS55Beht5 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199021)(83380400001)(66574015)(2616005)(2906002)(38350700002)(38100700002)(66556008)(316002)(66946007)(478600001)(6486002)(6916009)(41300700001)(4326008)(6506007)(26005)(186003)(1076003)(66476007)(52116002)(6512007)(54906003)(36756003)(5660300002)(8936002)(8676002)(86362001)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PSj2txUzA5xCf4VNwOAer9NcU5z9?= =?utf-8?q?IEblANid66YiLfOXFrl5JRwHRFTQImNPCIIm5y0JnhBF28BXWpRRZBEb/CAiMmiZI?= =?utf-8?q?Kk1xo7do/uMKq7y7YVPpGhBQa0yPer7dfvvX/w6cCdxuizD8k1xKwrL1ievneae2Y?= =?utf-8?q?lJIuH8woQk5FTDfa4tqDAssiXs4XpfGcGG7yQphRBc0e7pMbqJnj4Zdmct8PxVByj?= =?utf-8?q?v4M6d12XQfBOSn+iojbDpt4HMSAKNrwqG9mDC4bnvwP2aDWftjB9Rjm3fU4bg5ryS?= =?utf-8?q?BVjYPm99mTtsseqr+73hFkzRcVQIKv0N5L+NarHkNJttgELeVHv9ROxPnXL90B5+j?= =?utf-8?q?cS/EhnX2j5Pa4+yv6DcIx3myMXze2QhXb2gmUx9pdDq3tB97dYOPhLzua7VyvLq2v?= =?utf-8?q?Dl/nMEh6F+yOfvBvdPONY2uuOyv4erWg+eH8ChKkxwj29V3wSxuGV1vGuSOHWaRxg?= =?utf-8?q?a+mY6NBdwPDrOnT5msl86Zuz7dw0Jalki35+uXyDGkexY/lq69KyHemN+HNPkl8fT?= =?utf-8?q?LGsCWoJcT7Yhe92hWCw459iZEB1+UzZiO6JHrBGfqe2wvKQc2dwnJvGpN+oHejpid?= =?utf-8?q?O3Itef7b5ldcUwxP5fCiTCoxoSEPJro6eyMc95lIiQ/yeDs6nURENwspwFGny9qHG?= =?utf-8?q?1kpjyRAbUcvRcefLKE51lMlSXxiC22rtpWjtG2GSsAHHqTv/eywS1nakY4r7UOawx?= =?utf-8?q?RyLx/MfUKia5mHQmYIwYhQ7EVmR2uEt+Os4YlcsqjOlXKG8ZQydp2WYwRqTzA8ddD?= =?utf-8?q?i1WyRg2BXLGZ2m7A+XYnzDMdYeVz4FMIHHZGL5MIgawYk5vuh/pA0tNO4R5pSr2le?= =?utf-8?q?6KrzFtBqAw4Hs9W8yGP2DzzQsnUXjz+eDLvR4dxk9di45gV+4C6ta5Qm7+1aagBX5?= =?utf-8?q?E5ae+fg/cLThLqfZZR6fi7rFIBE2Db+xrxlhuI/k7+rZ0Du/8V3i5P+9f8sSfTbXd?= =?utf-8?q?slXixCCzuHJLgNAAoOFQQZtOovRBRe+G4JLB3JoHfRVKnmIcR/FifOsn0FzUFQZ/h?= =?utf-8?q?KMOZaJ5EN8c5PMTJchjXzulHPD8sh2G1XzbTXgSAUgUZm6VUXPdtlxtp69GIgdPIv?= =?utf-8?q?5aC8Xrz97Mk1+rjGWN/enjLHIXWhB/2wMKgTE6hUA3aEujM+L0D8Z8LwK9IWCcna/?= =?utf-8?q?FvFqVUOvtKNyQv66lzmA2A5JxZfKsEtLqoLKNjPcHM1m4BqOjTV6qvzAAYzYoY260?= =?utf-8?q?RXIRIbVqrI0XSeTDibv2Q9wKe7Optuv0RTmYZIEBvq0P3oNMxFaSzByoTfXYqkSuy?= =?utf-8?q?fI+ryKqcBw64RnmxCVe8ovmu5zUkk7s3akQkvy39erwMJTcmdC+/xvtxV3ssEv/zd?= =?utf-8?q?odw4HGjY8r0qz/zu1w3U0uRwLsu08dbTD74272JbY1nYoipzSkvq6TdVyVM7yiXhh?= =?utf-8?q?NK+jGXkLycQIrlkW97epJwZfGiUtwy4S/4tr6E0z8EuG4vbpsT47L0MXIoLFWiYEb?= =?utf-8?q?Yi2hCtelyIAHqaUBjpHzHAXHOGnygq7S1MjUzaYJ3/ckb/zUS56vtlkVFQe/h0+gl?= =?utf-8?q?LAfy2KbzczZk?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 297f9694-3ab4-41b7-0ff1-08db89cf6b7d X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2023 09:46:55.9916 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: E7zPzqvDXuIn/GHACqUOFYygyiqikSHUEMzinnEq4hJD1Y6rx9yFX2DNytUP/6nvXghNGN6y5p+2xNNj4YrQzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6789 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772024789783552999 X-GMAIL-MSGID: 1772024789783552999 There are more than 700 calls to devm_request_threaded_irq method and more than 1000 calls to devm_request_irq method. Most drivers only request one interrupt resource, and these error messages are basically the same. If error messages are printed everywhere, more than 2000 lines of code can be saved by removing the msg in the driver. And tglx point out that: If we actually look at the call sites of devm_request_threaded_irq() then the vast majority of them print more or less lousy error messages. A quick grep/sed/awk/sort/uniq revealed 519 messages total (there are probably more) 352 unique messages 323 unique messages after lower casing Those 323 are mostly just variants of the same patterns with slight modifications in formatting and information provided. 186 of these messages do not deliver any useful information, e.g. "no irq", " The most useful one of all is: "could request wakeup irq: %d" So there is certainly an argument to be made that this particular function should print a well formatted and informative error message. It's not a general allocator like kmalloc(). It's specialized and in the vast majority of cases failing to request the interrupt causes the device probe to fail. So having proper and consistent information why the device cannot be used _is_ useful. So add devm_request_threaded_irq_probe() and devm_request_irq_probe(), which ensure that all error handling branches print error information. In this way, when this function fails, the upper-layer functions can directly return an error code without missing debugging information. Otherwise, the error message will be printed redundantly or missing. Cc: Thomas Gleixner Cc: Krzysztof Kozlowski Cc: "Uwe Kleine-König" Cc: Jonathan Cameron Cc: AngeloGioacchino Del Regno Signed-off-by: Yangtao Li Reviewed-by: Geert Uytterhoeven Reviewed-by: Jonathan Cameron --- include/linux/interrupt.h | 15 +++++++++++++++ kernel/irq/devres.c | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index a92bce40b04b..60a3d3bdcf45 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -201,6 +201,21 @@ extern void free_percpu_nmi(unsigned int irq, void __percpu *percpu_dev_id); struct device; +extern int __must_check +devm_request_threaded_irq_probe(struct device *dev, unsigned int irq, + irq_handler_t handler, irq_handler_t thread_fn, + unsigned long irqflags, const char *devname, + void *dev_id, const char *info); + +static inline int __must_check +devm_request_irq_probe(struct device *dev, unsigned int irq, + irq_handler_t handler, unsigned long irqflags, + const char *devname, void *dev_id, const char *info) +{ + return devm_request_threaded_irq_probe(dev, irq, handler, NULL, irqflags, + devname, dev_id, info); +} + extern int __must_check devm_request_threaded_irq(struct device *dev, unsigned int irq, irq_handler_t handler, irq_handler_t thread_fn, diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c index f6e5515ee077..40494eabb060 100644 --- a/kernel/irq/devres.c +++ b/kernel/irq/devres.c @@ -79,6 +79,46 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq, } EXPORT_SYMBOL(devm_request_threaded_irq); +/** + * devm_request_threaded_irq_probe - allocate an interrupt line for a managed device(recommended) + * @dev: device to request interrupt for + * @irq: Interrupt line to allocate + * @handler: Function to be called when the IRQ occurs + * @thread_fn: function to be called in a threaded interrupt context. NULL + * for devices which handle everything in @handler + * @irqflags: Interrupt type flags + * @devname: An ascii name for the claiming device, dev_name(dev) if NULL + * @dev_id: A cookie passed back to the handler function + * @info: Optional additional error log + * + * This is a variant of the devm_request_threaded_irq function. + * It will print an error message by default when the request fails, + * and the consumer can add a special error msg. + * + * Except for the extra @info argument, this function takes the + * same arguments and performs the same function as + * devm_request_threaded_irq(). IRQs requested with this function will be + * automatically freed on driver detach. + * + * If an IRQ allocated with this function needs to be freed + * separately, devm_free_irq() must be used. + */ +int devm_request_threaded_irq_probe(struct device *dev, unsigned int irq, + irq_handler_t handler, irq_handler_t thread_fn, + unsigned long irqflags, const char *devname, + void *dev_id, const char *info) +{ + int rc; + + rc = devm_request_threaded_irq(dev, irq, handler, NULL, irqflags, devname, dev_id); + if (rc) + return dev_err_probe(dev, rc, "Failed to request %sinterrupt %u %s %s\n", + thread_fn ? "threaded " : "", irq, devname ? : dev_name(dev), + info ? : ""); + return 0; +} +EXPORT_SYMBOL(devm_request_threaded_irq_probe); + /** * devm_request_any_context_irq - allocate an interrupt line for a managed device * @dev: device to request interrupt for