From nobody Mon Nov 07 12:53:14 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N5WP667pSz4gvmR; Mon, 7 Nov 2022 12:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5WP65KqRz3w2p; Mon, 7 Nov 2022 12:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667825594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oCvfw05Wkmk3MaRSERUHkf1x/bPPZKkNisEHF5hgNcg=; b=clXIHVMRfSn6Z/L1Ln3BotW4big1fbIKluMCcyevY/6Q8X0DIkYnL1fOMUnpBwBeKKalLZ i7taIxjjJjDIX/oRioMSDxHdF53CbPw6FZNNOs1jmWQvpaPjY+9dkx4l7V2KPsixA1OOIF n7n2577q5KItB5X5GoG03C+WwFY/i3S9u3uksvStSvuh+ZjO1l607FgyUdrE4Qn5g5uxU6 ZL3ADH98E9mFBcjKEwvHDTaOgfy+iYe0KYICpo6mERCBGkTK8xXYhDB8kfnSUsAGVxgGCw FYXWS8k70HBkfw9d+GQTJUDUHUcrBexKUxi+4/kknshyZ8bvOUlLAMQcG1jxqA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5WP64NKCz12X5; Mon, 7 Nov 2022 12:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A7CrExX023882; Mon, 7 Nov 2022 12:53:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A7CrEWD023881; Mon, 7 Nov 2022 12:53:14 GMT (envelope-from git) Date: Mon, 7 Nov 2022 12:53:14 GMT Message-Id: <202211071253.2A7CrEWD023881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 6e8d6761312e - main - LinuxKPI: add devm_request_irq() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e8d6761312e92227a87e0e07b51f89ff81a24b3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667825594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oCvfw05Wkmk3MaRSERUHkf1x/bPPZKkNisEHF5hgNcg=; b=kHUOox2GmX/R7XjYoNpPd9Nl9ftcPLp9Xlm2plEe61vvdnKA68T6ArWTRjl9BDY4lsLq8e uPCMm9RUyu+embv8MT44UyQ5XYHez6hfBTxSljqjq2pvNJrbEY0rtgFJiw5YyvQKazz1N4 HTQ9GPU24gHE242Oehy7WX3lB0RJMvVRDiWpHNXth1GahAwy4unjf2teT9l2rjAzs2WU4U vxbg9kyNZ0QtmgcUwOrZKH2/OTsIfMPRIE1a8fWReM+Co7QomttQ4qyN2qgFhmh9ZiIQ2q idkZ6Zw6zDQPysk5+qaWMePSZhOkNV/tVubEzNzUMRNroxgOF+PfK+fvdtl7Ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667825594; a=rsa-sha256; cv=none; b=czsMW5TNf67pVq8VUaM7+o8JsjsfBfGPbUhRnsYjEGyosofbsaajGfowy/BYr5pd1oTvNP ejDNddVHp/jFEoxv8pGdWezekqRmo6zFpR4eXQNau6X/Ka8bAclsB9N1Z/gp+5nYgskYY8 +LArodj8xKFLBNRomkbiQWcayO6DvsxHVZyjsQ/BJbuNlrokYTO29IZ8uZNT2anYo+6zH9 e7MDGsilPsQMfnGCF+auaXNwm0tEWkDxwdgsow25Wm9muZcdp0wbNiKozdwb+se3CzvQmk BvlKT2QXFW8Ch0WpVAXDzgLM3SGAD/yquK+OPhQjRqj/hukLXkRcs87ZqPgvoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6e8d6761312e92227a87e0e07b51f89ff81a24b3 commit 6e8d6761312e92227a87e0e07b51f89ff81a24b3 Author: Bjoern A. Zeeb AuthorDate: 2022-10-30 17:41:53 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-11-07 12:51:01 +0000 LinuxKPI: add devm_request_irq() Add devm_request_irq() needed by a driver. Turns out all we need is a wrapper with the right arguments to lkpi_request_irq(). MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37217 --- sys/compat/linuxkpi/common/include/linux/interrupt.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h index 905a29a77f91..d44b813ada8d 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -70,6 +70,14 @@ request_threaded_irq(int irq, irq_handler_t handler, flags, name, arg)); } +static inline int +devm_request_irq(struct device *dev, int irq, + irq_handler_t handler, unsigned long flags, const char *name, void *arg) +{ + + return (lkpi_request_irq(dev, irq, handler, NULL, flags, name, arg)); +} + static inline int devm_request_threaded_irq(struct device *dev, int irq, irq_handler_t handler, irq_handler_t thread_handler,