Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2131575pxa; Mon, 17 Aug 2020 01:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaikmyx51sR2+6sQQLbG+kYKiQFecsoOQeholTiw7SRZ4JHZ/x9f07Z4/UYwJkluNEdw5y X-Received: by 2002:a17:906:1392:: with SMTP id f18mr13693038ejc.521.1597652668125; Mon, 17 Aug 2020 01:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652668; cv=none; d=google.com; s=arc-20160816; b=CbkJDT36Q0BvQICb1pP0r0Od47vxUtXMFjbi896ZoWHRep3OJDk2PDrJrHkvgnTUAF efIPmmSXals1Ydx8jJ0xW3lMi/nbFv/ljrGzd8YI3VD5ZkVivF3sUJ8bdqMMnhYbR6pk cvuu6GyFYnWhRshS49hDKc9W14ZTGQ01ZEpO0d64DH3OtyWR4zYdRtwhe6cL0QT8Dncp cuGjJUTxFtatWMmMTHmhKDfcdVOEo8Q8C5/S+vXz0fsIeq4xlRiyBqsahQembt6uHNZr crpUVusxLEfO0bWAXqo2tSr4nQxayNRkwq9IH4AkSgDR7PiywmFNtrn+rd6onuMvvsGg b2/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8m7i7NFD9jtK5LLWJqp7H8mCeAZp9HPWo5wwi/RHp1g=; b=tTMb12Py75MOPzLmR9a1hsxkskYBbSvsi+H61iVa+xEWPjEIEBifWtTBrp039yTQWN /3MmD0dHrpLYU8r9LcagOS5PTh7I0zMeR7eE1YmM/l0/0gAEEu/4zns0LXkIU9Yq1m/4 NB0C1ioqthTrV4qaE6wPH3DLRCwALGVzpQ2Z8CtGhhx33YMUhDRIjjLK4KDE1qF+v1z3 uMyV+ZdFuAm0dMzM/I0eMAizl3HbnhKyONiwYPhaTSZoe5G2sRDszUW/XNSsRvE+fAGp skAzNjMubX8gSCxYVmKzGIXVzrLx183jmkyp0XwPqVR3TMkHoZ+68+XEE7DvAFzrv3Kl nuNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=shhgpJ08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 w1si10193355ejc.440.2020.08.17.01.24.05; Mon, 17 Aug 2020 01:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=shhgpJ08; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728174AbgHQIXi (ORCPT + 99 others); Mon, 17 Aug 2020 04:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727112AbgHQIXd (ORCPT ); Mon, 17 Aug 2020 04:23:33 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF21C061388; Mon, 17 Aug 2020 01:23:32 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id t6so7345693pjr.0; Mon, 17 Aug 2020 01:23:32 -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; bh=8m7i7NFD9jtK5LLWJqp7H8mCeAZp9HPWo5wwi/RHp1g=; b=shhgpJ08JxORr1lpKJUfn3rchd09xpy5GGqJOy+g9NZHI2yF93ITXi9gFGnHqql9PN IIqTRGM+YqPsbWPrgC9E5xcKRbIjXdKqoLaeQRRLy+BgZ0VlNpUtYLYotj9zO/XVLva2 +Tllzxp32+qQBUXckBM4g+opSCRbBgFt5ss7ET0g7omdzkYjanAgDryppqe6/vD/LI6c 6wkO4DAHsGqPFCf/eJ8A+MkhjsJ3eYHTsE7LczIFRuKKANtSFih6SHGz/cqeYpOIT9Jl HxCJg00kHcNEYxKHr7oEq3LU6Jw+8qU4B+UYcCRUEaTTnfKB2ZJEdkXfVIujaTMUF+yw YWqw== 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; bh=8m7i7NFD9jtK5LLWJqp7H8mCeAZp9HPWo5wwi/RHp1g=; b=exEjeocWw7iRLAma61FpooRQ9KNDQYKjya0Yq5kKYeFCXLM3neP0W6MgXoaDOrPCGx X04TDGBmmCZY3jTpU4iw8+08O1TS7Rg+/SvhGClXDHpQefS+BMSaNiP1HjCi9n6lwlRA cJMwOTKTQsmr8dgAcS5jmRqnWqNlZW1pzgSGtZCPK+eSIZNfJNCNkUQ3gd4c3ArqEY52 jB5PBxsNSROGo6uijfWgAIqCYCyXWTf9pzoQ63ZCkGnkQvodz+jdkN3a0UDcQ5jaW2J+ JnEigUphB3tcXwHd7KwtOaQ+AwgELc929xeAQ1mqRyNVCyOKx0n10/ASxpigMLM3roFV l8TQ== X-Gm-Message-State: AOAM533Pquo9Q+MkL3fh+rTxNkEADHwH46DiYSnXTilCuXwysn6vBIae MSYCgCzMJduTg53PMF5cKZY= X-Received: by 2002:a17:902:5991:: with SMTP id p17mr10568056pli.78.1597652612472; Mon, 17 Aug 2020 01:23:32 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:23:32 -0700 (PDT) From: Allen Pais To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, baohua@kernel.org, mripard@kernel.org, wens@csie.org, thierry.reding@gmail.com, jonathanh@nvidia.com, michal.simek@xilinx.com, matthias.bgg@gmail.com Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, Allen Pais Subject: [PATCH 35/35] dma: k3-udma: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:26 +0530 Message-Id: <20200817081726.20213-36-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817081726.20213-1-allen.lkml@gmail.com> References: <20200817081726.20213-1-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Allen Pais --- drivers/dma/ti/k3-udma.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index c14e6cb105cd..59cd8770334c 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -2914,9 +2914,9 @@ static void udma_desc_pre_callback(struct virt_dma_chan *vc, * This tasklet handles the completion of a DMA descriptor by * calling its callback and freeing it. */ -static void udma_vchan_complete(unsigned long arg) +static void udma_vchan_complete(struct tasklet_struct *t) { - struct virt_dma_chan *vc = (struct virt_dma_chan *)arg; + struct virt_dma_chan *vc = from_tasklet(vc, t, task); struct virt_dma_desc *vd, *_vd; struct dmaengine_desc_callback cb; LIST_HEAD(head); @@ -3649,8 +3649,7 @@ static int udma_probe(struct platform_device *pdev) vchan_init(&uc->vc, &ud->ddev); /* Use custom vchan completion handling */ - tasklet_init(&uc->vc.task, udma_vchan_complete, - (unsigned long)&uc->vc); + tasklet_setup(&uc->vc.task, udma_vchan_complete); init_completion(&uc->teardown_completed); INIT_DELAYED_WORK(&uc->tx_drain.work, udma_check_tx_completion); } -- 2.17.1