Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp951384lqz; Sun, 31 Mar 2024 06:51:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWO/8YPvsESxlkArhuCY1phpbBIXKg8W1tSuaRCdamXma5IPNOKpHDF1TL5cB9GKeMnRQ1ALvZFwgvIsKvOZjd3UHOUVS/t6b5VuNfU2g== X-Google-Smtp-Source: AGHT+IEfFKU3FbyeZEKYvAWTnIBWoMZ8Ey4NfRaSRO5TOha+D3uec57wdMX/iTFetshPMQClmzCv X-Received: by 2002:ac8:7d12:0:b0:42e:d5a3:e03e with SMTP id g18-20020ac87d12000000b0042ed5a3e03emr10215575qtb.53.1711893067250; Sun, 31 Mar 2024 06:51:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711893067; cv=pass; d=google.com; s=arc-20160816; b=yRIoIGpO+UlEC4czB/igFsTmLXiN/ST0n+Qmhgvp/egsGZ/yKv2mQSAGCPdHzCqAx1 8kNlB4l75/8BnCf/xR/VwXBIT90nPaVqhLJO+QeXq6M3JIZOxW79+PYjUsuPgy+ePFiZ lLRG9uCGOu0bEq/aQ99WRjfH63Tam4IlzL3VnV7Wi9nGOx4pdrPTh8F8HohvV1w8zQcu 7qHgoK8ywyh0Pz7+YdXqB7Nf3dzwW6UIQwdbN0nakKbD878f+t91c4d28XmqXXtSA+hh KuV7ORdWIpFZOJ5tuapELpNXxk/XzDyaPhvijtmWgj72gNu5KwDmoErT+gqzPpomG0b5 d7XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=c5UyzxdIo0EMw604i5z0Ke4dcgihgur2UN/owwURGQg=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=WxZg+iGEb735E9o3FWtFeKnq2kRLfrU68kpP0tErr/xyObHn1gwTiL3x1e+K0bKPip 9adrwaukRSHZHy2r1InHD4R8oxvrlfcZNPAzdI4TcVl3S2VpQLO48PpqP6zfA27h9cf7 VGjYMd553HCHNdBvHMA5nkzjqaloHOAXnDvjN1mi5ATGpyVrPpyEQqa3UDlmCqsGA23J Xr3RoVJBrsicjGe0xuphfC/0NOOWKPzWb1yhvf7/aEhtbPWld/8kWWR6lzQMTkssmqIP y5rIuI7n6fTSJ7U5JAbT3t8Z2S3SuZqgpYItxm3Bbc0fQ9Erl6c96cCXGzJBSjUe+3WC IKvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b="BGN/rskT"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rTTDVKf6; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-126079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w8-20020a05622a134800b00432dc8663c8si1639564qtk.56.2024.03.31.06.51.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 06:51:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b="BGN/rskT"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rTTDVKf6; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-126079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D572D1C210A4 for ; Sun, 31 Mar 2024 13:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E882B145340; Sun, 31 Mar 2024 13:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="BGN/rskT"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="rTTDVKf6" Received: from wfhigh5-smtp.messagingengine.com (wfhigh5-smtp.messagingengine.com [64.147.123.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36029144D28 for ; Sun, 31 Mar 2024 13:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711893049; cv=none; b=IcJ5XA4QBC7Vpzdl+V+WUESxr6yB3VNZwIupCay+myletf+CCaNBBjYK6rOb8CV8whs9tllBGcooXd6vtqac+xhW0ot+0KzXiKV/2FCEyGjF2N6Eu8ekBvrgsuLkCltsmd10wCXL4JpQZqQ4AtzjbciHX9F6iDbNOWDAt9QdyGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711893049; c=relaxed/simple; bh=qd6Hc1CnvuAkfK3DNjZ6oePksqpx6ygYsp1KXjodoYI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lUCWN7Fhg5kndlMIzObdCcDkCF7BtSi5ad8hspm3tO55MdRFVXQJYy/JzH77kMCvL/Vc0SFq0ZZ4flQujp2It3EYPjJsL3fn4Mru1dHceWtfjQdauHFVz9H03QgDmqDxme0z3xiI3YMhUrJ1l4tnjfLBfYZxPqAHuyw/j7c/Qd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=BGN/rskT; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=rTTDVKf6; arc=none smtp.client-ip=64.147.123.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 2E4E618000BC; Sun, 31 Mar 2024 09:50:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 31 Mar 2024 09:50:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1711893046; x= 1711979446; bh=c5UyzxdIo0EMw604i5z0Ke4dcgihgur2UN/owwURGQg=; b=B GN/rskTywntgx1+9BZn/VL+LKurmtOAdYtOJEuwkVWWBQ2KiSkupdcF0Thmpmolu udzqOHUQa5TM8/16lkcQyEhvvF9DpEDfKh4hGC7FoBMYl87Qu7lZPyaKF1DQO+zn a4BZmRicfpBHDOVN8VpPtFmXzmV0awhLIgfF+2XvVJB7Em68+aZQEv5DVJu4PDuY RxXakRsRB5pHLbjDDh4kf7dYPxzPnquq9RQp8RmzkjtQYkVqnJ5xhK56SYUvGlRX bEMordKvFZPPXll13dYR2YL9sbCmKOb1As88jnBjaj/WLmxf0QWkfLkk47Hfk2PV M0/1TIAQzw/rZ/tCGsn8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711893046; x= 1711979446; bh=c5UyzxdIo0EMw604i5z0Ke4dcgihgur2UN/owwURGQg=; b=r TTDVKf6yrcUCxLSzcD1IwM4I9Q9mqBvRDggEp9aHBUjuLN2tUklCUhbtRcTeHz0c C9iHqxo/CajCh0rBgfnOyO3fNXjLqy5AFLKU9ppo73kjU9iIIU5RLQsnNWEzyYL3 RkUsHE4lDd0qEcEOlWrAk9K922KqoZVBMXQBK/8DwVag1FG6RYKVW/U+avlw02FK LqJACUXiG1vFyl9UODO4JLRGg9Bhan+/66jFNu0T0unbdot8JB4uTxJlA2tghxCF tIMfgBHe/RAzxPGSC4gUMw09UzwMTJEQ/PbfeKV7xSzwekXGILwWP+SQFSgCq5i/ sUo2RwERy/rEsITCed7cQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddvkedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Mar 2024 09:50:45 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/4] firewire: ohci: replace request_irq() with request_threaded_irq() Date: Sun, 31 Mar 2024 22:50:35 +0900 Message-ID: <20240331135037.191479-3-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240331135037.191479-1-o-takashi@sakamocchi.jp> References: <20240331135037.191479-1-o-takashi@sakamocchi.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Nowadays request_irq() is a wrapper of request_threaded_irq(). The IRQ handler of 1394 ohci driver has never been optimized yet, while it is a good preparation for the future work to replace the latter. This commit replaces the former. Signed-off-by: Takashi Sakamoto --- drivers/firewire/ohci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index f18019c5d220..ec02708c5f05 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -3750,11 +3750,11 @@ static int pci_probe(struct pci_dev *dev, if (!(ohci->quirks & QUIRK_NO_MSI)) pci_enable_msi(dev); - if (request_irq(dev->irq, irq_handler, - pci_dev_msi_enabled(dev) ? 0 : IRQF_SHARED, - ohci_driver_name, ohci)) { + err = request_threaded_irq(dev->irq, irq_handler, NULL, + pci_dev_msi_enabled(dev) ? 0 : IRQF_SHARED, ohci_driver_name, + ohci); + if (err < 0) { ohci_err(ohci, "failed to allocate interrupt %d\n", dev->irq); - err = -EIO; goto fail_msi; } -- 2.43.0