From nobody Mon Nov 28 17:27:05 2022 X-Original-To: dev-commits-src-all@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 4NLXTP2qVwz4jR4L; Mon, 28 Nov 2022 17:27:05 +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 4NLXTP27VLz43gp; Mon, 28 Nov 2022 17:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669656425; 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=A7pWSQU6cehJekRYZnAc9R/5swRXqNUgPmGitH3ervI=; b=Y/IMkE8JrnTgjj/K3602iJyguu3yAHb0BvBA0irSEoNqu5N59MLecdKnMCPPq2saXUbM4s B2gTELVcSLYnLgRuyUOtleBN/VMOSvffvoQYQMpZNjLEt1JlBzT6pbzfy0m1EKIKSIX0R2 wqrcAfXz37cLHPWUnGPt23vQ07XEC6GETtrFbDQp8E6g7yhKYUcAQ6Bp3QHvrxMohG3Vf4 MfR5Eup8xXqdpdY+JGPUcA74dug3bbYUJ1ZZs29vIWnob/+OXba5zyS9mVY0V0QPVXtGLB p1s7DFWcHsJ0971LANk/JPzJobbnTeKfZP0UJxTnF3jAOXFRJO9rDaf12966Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669656425; 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=A7pWSQU6cehJekRYZnAc9R/5swRXqNUgPmGitH3ervI=; b=IKH6XPTw1uplDYCpgr8rX/1qIUyR4otwsYjYhHsbI8ndptPAY/ihHWpqyr9g6hBQJG8VmN 8crC2zYrvZ/Zbw6Rc/R5CO+NVFwUwiNAtzs9E4aXddn+a+RAdOmqDDrTBmPyXVKZbkYZv6 kY0Zt7ZUfIitVM9CboPZSGlWNlbHoQJ7KWqe6g2h8OM8tcgfG6LEP3EDvWLzRn9IyaN2VF 9uF6owFmgpKdsHFVCSCbweVEzHMA70/wxPKWwylriwy+/0/Rkl2YyL3Gt2DA7FV3K8cIvD CnBZgsjdijmAifQlwy7BPnrYgy+5y12zDVFPMYGDqc2iPe1xB2rZvmVdE9kcGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669656425; a=rsa-sha256; cv=none; b=gRLqMh0Xz5mcoXgWYxtfXifVBFMJbWfuyzl1VQ4kIDAdncJXJ9YGmKtXtUHeL+OdSslDxL kHtS8QqfhRvwzltGCNkOjMfBtCTtynbCoLYkCxugQo5Mw4UkZAnhS6yELxlqZJ/2gC9J/a T/SNRlaoRnZCSSfjRgZB2HyGaokHlKYg3BCOQHsKOFoGIj+kFL3PmWObS65fNMlQkhL8rP HMI25PyZjTdaMkVO9oaqHDaxzZeSHw7TGcJ861B+uPVsU44LKbHY/nj9Qt51tCQs1oMgep heg6sGlMImAIH9mnc1DRtLXZh1jsKsWubGDADXHjtn3fmkWT7HD7vsjInMoiMw== 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 4NLXTP13vwzlxP; Mon, 28 Nov 2022 17:27:05 +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 2ASHR5OX081254; Mon, 28 Nov 2022 17:27:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ASHR579081253; Mon, 28 Nov 2022 17:27:05 GMT (envelope-from git) Date: Mon, 28 Nov 2022 17:27:05 GMT Message-Id: <202211281727.2ASHR579081253@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 9a62ff909505 - stable/13 - LinuxKPI: add devm_request_irq() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 9a62ff90950564e95688ff1bbd7b4c2b32b5acb0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=9a62ff90950564e95688ff1bbd7b4c2b32b5acb0 commit 9a62ff90950564e95688ff1bbd7b4c2b32b5acb0 Author: Bjoern A. Zeeb AuthorDate: 2022-10-30 17:41:53 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-11-28 16:34:20 +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(). Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37217 (cherry picked from commit 6e8d6761312e92227a87e0e07b51f89ff81a24b3) --- 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 8cfb37e700ce..57d7ac58ec5e 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -75,6 +75,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,