From patchwork Tue Jul 27 19:46:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 486748 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp527582jas; Tue, 27 Jul 2021 12:46:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxiynoiAZ1xwLzTR2wJCY6hIhUcsxEXS8NlWFm2BGEGUB0QWxCXbzGGWxnHFOhuijQLL32 X-Received: by 2002:a05:6602:2057:: with SMTP id z23mr19797977iod.29.1627415204037; Tue, 27 Jul 2021 12:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627415204; cv=none; d=google.com; s=arc-20160816; b=NLqXtxcMj20xQ8RoO0vFTuJna2p3Z8AVG8aFMB5hLyVifgCrKHvvcVu6rRFj+ftOPZ gTmlm0AawoeuVnkdHiVXWnmOe61J/FPqiupf+2fLIlapienazym43z0cJppZf2e+Pi02 r35Itqy4L2wU09I0bqlyPjuV1oOmlLtpi4HwVDiWzuhWnLbimD5XMZ7SqXkhc0xF5Mub 6zSjQ5TK6cGdMOd/36jnxId1XdttjF2ahaNGqcoJWbak0GyVCmH9snfcfg4TOShbOl5/ WXC71a6T/Y1HnvMOImq6Xt+AUbF5oSOWrJK6G81L+22s9ez1Vy+eAKu+6s/Nz0zS4Oaw 46WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eH4S8FNsAoKRYvFR0Ki+05n7mxmZZlMccibOdhfBxlg=; b=UYMEyyvnFF/fEveBEnopUMm/dxdlknI4EsCBFmhzsAjqK1v8ix4v/i7AdsaKdIx/Gm Mhuo11KJmZtUlNWl/HSym19hDLLslnAdGaAqTkHRw56NKLKzYxmRePp6eBnBtHj8W9Wg YGqpR1M9sag20KzhtSh5QXXtxP95eLaf1g7RWrMGjBwNwdmsknlgD1ZxoBkLbGnysvC3 j6xErkiZni8sLgZZd72cYBg3YS7hdphFmsJreUQIRnT9nJoTUhPUn5qrYSAPwJ94kcRp r49rS1ErmJ6x2cnYUjYdzcnJY6Y9ffZnK8ZWCM9sjy4nLzj2R6zQhxGWWYck87h6yAxH eLTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MgJnPNwG; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v25si4315487jan.107.2021.07.27.12.46.42; Tue, 27 Jul 2021 12:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MgJnPNwG; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232200AbhG0Tqj (ORCPT + 8 others); Tue, 27 Jul 2021 15:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbhG0Tqg (ORCPT ); Tue, 27 Jul 2021 15:46:36 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FC87C061764 for ; Tue, 27 Jul 2021 12:46:36 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id y9so140597iox.2 for ; Tue, 27 Jul 2021 12:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eH4S8FNsAoKRYvFR0Ki+05n7mxmZZlMccibOdhfBxlg=; b=MgJnPNwGGGC8USKl7KNWBI56pzqNdFS7mvjfVzTn1v7II1LQF8+IxuJOUhUgNNAiNN 7osh0jaO1pZXNA42jKDLWA8P9ywA4SFxlRncmLYOnjrUtxjUoJzA44vcnrqNJaJtNlpI Ym1ehl4GYYUG6sR1YjCAf8oKL8nmEbOw4IntTbvO7qGkKgmh+bv291pxio8tjuuCF5qX 47BkgFa/booLy4dfisVIolTlOOuJXGVZXAIxijz63awCZwabMQI1XRW7RCF3gHTOC38J 4wYue0xhxaSeWRaI2kVB/bBqG0iTOr1kDBKOerzdplFVkExUV+0nnd12GjRUfOGzSN+4 VSOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eH4S8FNsAoKRYvFR0Ki+05n7mxmZZlMccibOdhfBxlg=; b=csjRJ44GP/Zd9RzSuZ/UQUkh9HqQh8OcbO+ZmOzljzjY+WyAn0Nl0JJHh+BaWczvba Y6arD8Dj4L8zCNxMdEJJ0+k8pgbgLcF0482VrgWN21YQFkazljtwKc1p6ET910peFkZH 8WWTHDgHTRXDrbCyIwQaN/f5OpwKS31NwMzF3bmakZei0wjFKRcFEcI+ZuHNdlpgeRgf +r2jjQmkkqo6a9s9NM7f4FqybVWiDSewDN+mzMkKdvLKzgnAvxZDSk6sdbhzcLaLc7LT HpH2UlbmjyITY75ahE1hBDwzc8Xj3u5V3Yejmp2Yiz4kWD/Ylsqhxvk8EVNwnyXO0ryJ /XbQ== X-Gm-Message-State: AOAM530ryCCCpYkN5zxxJ6eCxgRTP+8mAiUV2HBSoJ/PlAhL7pvsZEJu MOwkxdwsVvUkrxSPvJ2RSQtHeg== X-Received: by 2002:a05:6638:538:: with SMTP id j24mr22703457jar.59.1627415195809; Tue, 27 Jul 2021 12:46:35 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id c1sm2443014ils.21.2021.07.27.12.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 12:46:35 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 4/4] net: ipa: kill ipa_interrupt_process_all() Date: Tue, 27 Jul 2021 14:46:29 -0500 Message-Id: <20210727194629.841131-5-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210727194629.841131-1-elder@linaro.org> References: <20210727194629.841131-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Now that ipa_isr_thread() is a simple wrapper that gets a clock reference around ipa_interrupt_process_all(), get rid of the called function and just open-code it in ipa_isr_thread(). Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_interrupt.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) -- 2.27.0 diff --git a/drivers/net/ipa/ipa_interrupt.c b/drivers/net/ipa/ipa_interrupt.c index d149e496ffa72..aa37f03f4557f 100644 --- a/drivers/net/ipa/ipa_interrupt.c +++ b/drivers/net/ipa/ipa_interrupt.c @@ -74,15 +74,18 @@ static void ipa_interrupt_process(struct ipa_interrupt *interrupt, u32 irq_id) iowrite32(mask, ipa->reg_virt + offset); } -/* Process all IPA interrupt types that have been signaled */ -static void ipa_interrupt_process_all(struct ipa_interrupt *interrupt) +/* IPA IRQ handler is threaded */ +static irqreturn_t ipa_isr_thread(int irq, void *dev_id) { + struct ipa_interrupt *interrupt = dev_id; struct ipa *ipa = interrupt->ipa; u32 enabled = interrupt->enabled; u32 pending; u32 offset; u32 mask; + ipa_clock_get(ipa); + /* The status register indicates which conditions are present, * including conditions whose interrupt is not enabled. Handle * only the enabled ones. @@ -109,17 +112,6 @@ static void ipa_interrupt_process_all(struct ipa_interrupt *interrupt) offset = ipa_reg_irq_clr_offset(ipa->version); iowrite32(pending, ipa->reg_virt + offset); } -} - -/* IPA IRQ handler is threaded */ -static irqreturn_t ipa_isr_thread(int irq, void *dev_id) -{ - struct ipa_interrupt *interrupt = dev_id; - struct ipa *ipa = interrupt->ipa; - - ipa_clock_get(ipa); - - ipa_interrupt_process_all(interrupt); ipa_clock_put(ipa);