Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27573pxu; Mon, 5 Oct 2020 22:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQIRAmGG/iWreATWhzAH3P5IS5sTkZWgFopQdVA5ObYFwoVwf+P0obSxloPOafKOtWl6ah X-Received: by 2002:a17:906:9588:: with SMTP id r8mr3464907ejx.389.1601963743168; Mon, 05 Oct 2020 22:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601963743; cv=none; d=google.com; s=arc-20160816; b=SQ5O5HXfjBCjsxar+WvHdr83DdHLQQT43rC7jZR3ovBTlZWZmqN15+E6ZECv4CbRs2 hq/2JvQAiYEiFIKIHH15Oh9tsAEj6nIFE5fcYVIRgzU6NDwVEIBP8xh6Z8Vh84oZamFn QozzpaVDnRnt6leCvjqUEueOoTzf2sxPMMYpsmP/LdkZPEOyPh52cdXWnkO2YNtX7IxS mOgoo65MHsbFmzl5zH/bUtWMQORfEE7O4C/Vu89D8lWc/HM4RiNcIx4hkXKh2DztFrvR GbxIIUXazFuDxxjL7K/eQMYKonx1ls5edrrtkZbCF7uv1gnB3qFOaSr+J6vF5Lh/UfDZ a+qA== 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=HG9ZKAE8Yu52ExRQDDjN81ZIm6yQmKnq3Y0AJ5grKyA=; b=FY4SP3TlRjYrnUBxVuQrFFaInn+cah+faB/wJH6MSKXwx3X9jDvj3tz+RJ4E4/6Haj JI3d9T8Om/HzeHaR2r94H7eFGWBqVVzF/OocSqpDq0kZzwGuVj50W8XxDOnncF50sf0x Dbt4hAs6+qagjNVG6GQTkvKfgz5yY1N8PWco+KSyJX5jcfL1EkotOf9zgd5K6aLxmmvu 8latqlgsR97v7HzsS0jwASgHdrkzpqYKqOt9KYWcG/LutAVPQmlBcHrGKNYXr92QyndA zNhZzvvCJmQIq5Cho99i9+1yqY/hZiOSb9N+yFpDklDafNmUG9uHD4lvYnj1T5fX0GCH ZhJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZE35pdO7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v25si1248293ejf.560.2020.10.05.22.55.18; Mon, 05 Oct 2020 22:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20161025 header.b=ZE35pdO7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgJFFvz (ORCPT + 99 others); Tue, 6 Oct 2020 01:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbgJFFvy (ORCPT ); Tue, 6 Oct 2020 01:51:54 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D95EC0613A7; Mon, 5 Oct 2020 22:51:54 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id ds1so1017884pjb.5; Mon, 05 Oct 2020 22:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HG9ZKAE8Yu52ExRQDDjN81ZIm6yQmKnq3Y0AJ5grKyA=; b=ZE35pdO771g061VVZvdcfjKDlEaKTtMv2VvZruNsfJfCANlH+YDd8wjr6DGkxecbAz JdT1LLSkyMjrGxzQR4toNXBIWe9B0gGCi56oWxmAby8URbCd6s/YLS6Lmggcev774XpA XO+q8IzPHmuKCLov/Rc1y4Lf5zURJzUnoS/0ZH/q5GptNSNToZzAS8PltwTycZ6ip7MT 6/xusvttVjGrhXt6OVfP5A0idA/mFhTu2HiFR/pQAc2dHalPl/ZyqVtT1XF/xDeNftY5 Z0hkBvBed0MLnmOkmV/t640uRLLiUvtD3L5CxVWRJ1SFb84AzBXFnexpHROWTdxp6pAx rOWA== 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=HG9ZKAE8Yu52ExRQDDjN81ZIm6yQmKnq3Y0AJ5grKyA=; b=ApoqzfKXOSXBHUzdHNdumn+9KkQ3IqlfrJTINazaLgWnBVNwdKGZ6eyf9Ax2QxR89T +J5K1xwYLXE6P7ysvNk3HaLTpcCxWgI6zbmRtVIhsidfSLjGy7RHoIku7m9yvbN7eMB2 rLfWTq8OZz4t7GNq8ZmgFh9WlEMBIsdyB9rFkBttwCZW264LcVNVHeh97x3gkaahdplI 93pddm6Jmw1RQiqcAuKP8NzQgwwiSDSie6du1gPJcaML88DonTmVb3TFN2OjIrrc/nKn EjsH1EbetFmNJPhSmvR6C2MDcSb/yuDq+1maAg8/9srq7qfRlwTdA5L7iuIGmadO+Pf4 Kw+Q== X-Gm-Message-State: AOAM533UP+uLXoNI1IHfVi4d7/hRl+3Sp9kVzdnZaN9FGohEdn/Xy7fh 5i6GbTX0oujg7qHAoazPwlc= X-Received: by 2002:a17:90a:7f8c:: with SMTP id m12mr2966652pjl.22.1601963514072; Mon, 05 Oct 2020 22:51:54 -0700 (PDT) Received: from localhost.localdomain ([49.207.203.202]) by smtp.gmail.com with ESMTPSA id x6sm1413685pjp.25.2020.10.05.22.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 22:51:53 -0700 (PDT) From: Allen Pais To: kvalo@codeaurora.org Cc: davem@davemloft.net, nbd@nbd.name, lorenzo.bianconi83@gmail.com, ryder.lee@mediatek.com, kuba@kernel.org, matthias.bgg@gmail.com, ath11k@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH 1/2] ath11k: convert tasklets to use new tasklet_setup() API Date: Tue, 6 Oct 2020 11:21:34 +0530 Message-Id: <20201006055135.291411-2-allen.lkml@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201006055135.291411-1-allen.lkml@gmail.com> References: <20201006055135.291411-1-allen.lkml@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Allen Pais In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/net/wireless/ath/ath11k/pci.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/pci.c b/drivers/net/wireless/ath/ath11k/pci.c index d7eb6b716..b75f47dc3 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -380,9 +380,9 @@ static void ath11k_pci_sync_ce_irqs(struct ath11k_base *ab) } } -static void ath11k_pci_ce_tasklet(unsigned long data) +static void ath11k_pci_ce_tasklet(struct tasklet_struct *t) { - struct ath11k_ce_pipe *ce_pipe = (struct ath11k_ce_pipe *)data; + struct ath11k_ce_pipe *ce_pipe = from_tasklet(ce_pipe, t, intr_tq); ath11k_ce_per_engine_service(ce_pipe->ab, ce_pipe->pipe_num); @@ -581,8 +581,7 @@ static int ath11k_pci_config_irq(struct ath11k_base *ab) irq_idx = ATH11K_PCI_IRQ_CE0_OFFSET + i; - tasklet_init(&ce_pipe->intr_tq, ath11k_pci_ce_tasklet, - (unsigned long)ce_pipe); + tasklet_setup(&ce_pipe->intr_tq, ath11k_pci_ce_tasklet); ret = request_irq(irq, ath11k_pci_ce_interrupt_handler, IRQF_SHARED, irq_name[irq_idx], -- 2.25.1