Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2138750pxa; Mon, 17 Aug 2020 01:39:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwltngrChRspwtCUvvODV7VNZqigeDJ2qzpZ9qjimwhHCIxwhU9GTWZx75Cy/Zhi9IZHtHB X-Received: by 2002:a17:906:ce59:: with SMTP id se25mr14818514ejb.359.1597653586641; Mon, 17 Aug 2020 01:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653586; cv=none; d=google.com; s=arc-20160816; b=zRjopBgEIkL4LNpzzevDP+uYn6iDzt638kqjsrefglD95M98KsKrhE96wlf6gnUoAC nL73FU+muwONZqYqw+SAcMgenyT0wIJtW8UjuljqF+eQ9sV6frpTeiK5llxEi5/sMTR6 fPzUfKtXyTTPW73khYK5bFrdOmozFH9rrXqbT77GshcyaTpQ2QgMX4l9PEytrkW8p1b3 prHKdhOGIIaaOxc3yWU5mmMWaSBNa27sNDvM/sLyqiBuFmiWiRPHzkXKu1qTykhnAazM n4tzNNjhuoTd2vbuVXQYkN6AQomL4IDfIKnXHRBR+ViEM1ILAvagUNF4wjpUk2ZT3EEj m6LA== 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=USxZmhIvAjMlSK/u/36V0VU77WjN451bESJJHVsL8wA=; b=oAyR6aUOoOqEs4QpOgDouq4uLDYN9EQHgir5dym3TEIV0luOe350ndTL3YNi+kGKY1 p5s84fQADeebOYeB/JPSpVXWMGKsXY81doNPan4EoREe4MkhK6If8AsKB3g9F6cWciDg tTnbzZscE2t0Z1l2TTJImg0s8eCcjoZZ9T2AswPgE3i2hFeaDf1tEFHJwqsxtNPw8Ao/ cpkFYa+aiPT8BXvuVLxsta57SjR3UPpfH9h7bRqQPXaTroES3/ELETF41FGZPGuiuLkN VE/5IZd09HGw580gkhQwuRKsBClKv/AVhfVcuX/o/SNC/91cohtSD4GlqF9adc3MNqzx PFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qv7mQq3H; 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 f6si10643303edu.604.2020.08.17.01.39.24; Mon, 17 Aug 2020 01:39:46 -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=qv7mQq3H; 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 S1728114AbgHQIgN (ORCPT + 99 others); Mon, 17 Aug 2020 04:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbgHQIgG (ORCPT ); Mon, 17 Aug 2020 04:36:06 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F482C061388; Mon, 17 Aug 2020 01:36:06 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id r11so7861482pfl.11; Mon, 17 Aug 2020 01:36:06 -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=USxZmhIvAjMlSK/u/36V0VU77WjN451bESJJHVsL8wA=; b=qv7mQq3HvH/j9rO0ouzEgyfVi87JqUW2V4QAEydvCAbx2LQUKNcMXXgzySavPZqUj1 Ins64ROl4iTDAUvGdBA8KNLD+qJ/t3xoKL2bXmmDz5j5zNWkxsTNK2mzPi4cq8w4HysR qB91AJnJHOV6Dde1l3Zb4nVFb6yI5mMdYAxNbA6LQHMd/EO4U9zXKzCy7hR1yeo82Iqd /DBuYxjqUcNRlAfliC/SW47TbY/h4Ti/9Wzv2s7Zhfx+kFOkNFOjjKq6qZneTjwh/B/+ f1SWPbJG/98XE5yYyQRkSbXpN+KiMeDSwutkcFl9MLsZkE2xUQIj+HBAOxNRzYkv3mKd rdbA== 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=USxZmhIvAjMlSK/u/36V0VU77WjN451bESJJHVsL8wA=; b=Ejstgtz9CPBhnoiNZI4Ik3/UghXlNudedLnfgxc9eYd7WcGaYT86h21uEA6o3waA5h J5RCWyV9OkU9oxv/Y+JveXsE2XtEOld7M2Hx8H5LzNNlc1V0pqXcbHOrh/21iaJGn9my lTU5ESfqqiQbA3NnUgRXicMbIgt+XnqcFy7hh3ziWcAfrKBBCu2eZXxrG9pF7MmMzj+Q 1S8EmifpbstpUZ3cIQrl/AFqXw2Ivnkd3l3zGc3PJ5cUGvc3+GTNDg52ZLI49NGnIxLi ySaNpmuIzPoqqfPOlp9wKzlSx3F8yfzv48jV1g1Inv7fj1azrzA9UG/50ywtbLxyGwj1 Lbmg== X-Gm-Message-State: AOAM530yJhpTV/6wUtb9Rx20e0tXtv20ey1doOms7+8KnUWphHyIou2f d39ldV5zoOCAuQAEU3uH8Qw= X-Received: by 2002:a63:6e4f:: with SMTP id j76mr8967691pgc.449.1597653365932; Mon, 17 Aug 2020 01:36:05 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id h5sm18434068pfq.146.2020.08.17.01.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:36:05 -0700 (PDT) From: Allen Pais To: ludovic.desroches@microchip.com, ulf.hansson@linaro.org, manuel.lauss@gmail.com, mirq-linux@rere.qmqm.pl, jh80.chung@samsung.com, oakad@yahoo.com, yamada.masahiro@socionext.com, brucechang@via.com.tw, HaraldWelte@viatech.com Cc: keescook@chromium.org, inux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH 09/10] mmc: uniphier: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:05:07 +0530 Message-Id: <20200817083508.22657-10-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817083508.22657-1-allen.lkml@gmail.com> References: <20200817083508.22657-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: Romain Perier Signed-off-by: Allen Pais --- drivers/mmc/host/uniphier-sd.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/uniphier-sd.c b/drivers/mmc/host/uniphier-sd.c index f82baf99fd69..c822bb7beaca 100644 --- a/drivers/mmc/host/uniphier-sd.c +++ b/drivers/mmc/host/uniphier-sd.c @@ -81,9 +81,9 @@ static void uniphier_sd_dma_endisable(struct tmio_mmc_host *host, int enable) } /* external DMA engine */ -static void uniphier_sd_external_dma_issue(unsigned long arg) +static void uniphier_sd_external_dma_issue(struct tasklet_struct *t) { - struct tmio_mmc_host *host = (void *)arg; + struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue); struct uniphier_sd_priv *priv = uniphier_sd_priv(host); uniphier_sd_dma_endisable(host, 1); @@ -190,8 +190,7 @@ static void uniphier_sd_external_dma_request(struct tmio_mmc_host *host, host->chan_rx = chan; host->chan_tx = chan; - tasklet_init(&host->dma_issue, uniphier_sd_external_dma_issue, - (unsigned long)host); + tasklet_setup(&host->dma_issue, uniphier_sd_external_dma_issue); } static void uniphier_sd_external_dma_release(struct tmio_mmc_host *host) @@ -228,9 +227,9 @@ static const struct tmio_mmc_dma_ops uniphier_sd_external_dma_ops = { .dataend = uniphier_sd_external_dma_dataend, }; -static void uniphier_sd_internal_dma_issue(unsigned long arg) +static void uniphier_sd_internal_dma_issue(struct tasklet_struct *t) { - struct tmio_mmc_host *host = (void *)arg; + struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue); unsigned long flags; spin_lock_irqsave(&host->lock, flags); @@ -309,8 +308,7 @@ static void uniphier_sd_internal_dma_request(struct tmio_mmc_host *host, host->chan_tx = (void *)0xdeadbeaf; - tasklet_init(&host->dma_issue, uniphier_sd_internal_dma_issue, - (unsigned long)host); + tasklet_setup(&host->dma_issue, uniphier_sd_internal_dma_issue); } static void uniphier_sd_internal_dma_release(struct tmio_mmc_host *host) -- 2.17.1