Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3860848pxb; Mon, 8 Feb 2021 01:51:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwS4HTX2B3MIOv1lHDTHjrPvzLk0NDuNtr65162uA8G6aV/ssyJIh65B1BP6NGgrGF55gWl X-Received: by 2002:a17:906:259a:: with SMTP id m26mr16319728ejb.399.1612777881880; Mon, 08 Feb 2021 01:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612777881; cv=none; d=google.com; s=arc-20160816; b=aKaXTJDoDwgu7dI9z4gFeySP3lMFggHjuewMF3ETdjtl0jwqvYNUZbr0ob4IMTWGVb KEzcp+1LW8UETy+e5l5kDAg7SS32EPcd6KkR86Ag7GL5lvOC5J31GgavXZ8NtJ3aPsbU +nrqtwEKEgWrTaFYjcSGXzKqdHZg0V0cjT7kzzTv1znjPyhMUwHFssdWo7gyhYNNV4x3 l7VPvcNYnUE5E5TnGm7D83OitGah1FVU54BTWYln4X9FNE3BzxzZpDo0FXYEnvFyPJV3 UgXEAd3993Ef/pnl0mxDw+pS05RYlCrxXh0W/Q8qkX6t92E7IIT0tg4umkoztCyGQ6hL HYCQ== 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=gQh2IwNxftbR34HfI9l3nT7vPGQ8lmvW4dX0b9EAc7Y=; b=i+nloVwrdRKaP5KCaR1PEEEtIqhn+qsobiw8V7tTQJLNyEggXyh8ifaLSZwZk8pgPa xAfd9cq/66/YsnyWOsrY5Xl1K+liFYHP9+LkAYspG4LDHMwe9mqfZDy1vEwusA/y0tLM gyfrq8eZFCkmM0tbYCHYd9rghvYtG8jbrkETJbYLo1UHpqC0Ra0xds9Ggq2bAZ2JNwnX yNw/7JPBj/XIfoZ85/P7qqQKL5nTL/Za8uf7suEciQh0Aw5FdAAgtEoGUUU+kBEbQSc8 IylKgS2AlsUf6TWshW6oOWMVmjvBtcQyzvGk8M6AWyw1AleYHeWlt/Ir2S0pOP22LTAN 6Nzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A3hAC2WJ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 ji20si11459349ejc.719.2021.02.08.01.50.59; Mon, 08 Feb 2021 01:51:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=A3hAC2WJ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S231807AbhBHJuk (ORCPT + 99 others); Mon, 8 Feb 2021 04:50:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbhBHJrc (ORCPT ); Mon, 8 Feb 2021 04:47:32 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB944C061225; Mon, 8 Feb 2021 01:45:23 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id b145so9366342pfb.4; Mon, 08 Feb 2021 01:45:23 -0800 (PST) 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=gQh2IwNxftbR34HfI9l3nT7vPGQ8lmvW4dX0b9EAc7Y=; b=A3hAC2WJnvj0JnPzIYg6XVR2RbTYemoPhFpYlGmhRML8kEWdc6O34ZSjTz6JSs/CVo mreIe41ptn9ay3o326XfjefAqEsYrOaNbaR2NzsPvdJH3a/qhAHw9+E9tjw90t/L3GXk UJYpHTznGEd19p88KJKmn2Nq8b9Rqrt+HTbp/QTv5iHOMp6MToUKoxR5zFxjlq1b5iQL 57EpCMHT/b6gNZhLD24D6NXBGWf1SWxxG/7b0g2d4XFe/79M8L2sJmkj/CbpBJTtRafI j2Scl7RFlh2iqk4aPSrd20AK6G/SOw2NCgC/z7CSxGJK50RMYNb45FpsIf/viXb83a8f rgrw== 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=gQh2IwNxftbR34HfI9l3nT7vPGQ8lmvW4dX0b9EAc7Y=; b=BdYF+e2GNgG9ew8oNOIcCBfGVq4mjYcMfXCcFq1XYGj08kdROsQZ+ecGURahkfaVB5 Sa5XllctECZcAlnzkbbYW5bbKROIMrHEfhAVCf0MxTTwV9Vk63bI1xihfCHgYbxxVELj gbAc1FFVl3p4SLOHG/ayKp4w6+BhrSTG/KW/4LlybuS5O3VznMVJRfR8AyBswMnQq69E MBQKvEVWORxpKEPS7cXfK1OG3F0jenYkmZKXlkU6WyfRPaS3GURYATfWmYJhWns4H1mB deAzxf/K5Xkt4+du495/6P5Cxo3SQZol2736FyDLdqgOUZvhuENqphvbSuaGWyTPUvv1 WB8Q== X-Gm-Message-State: AOAM530LfvkYR/YypHPOmxxsmNb38YE+65DI1/deTQJE+WWUFVpqOAXI 7XKVa2zvWOXTrvmY3/r1jk8= X-Received: by 2002:aa7:8c12:0:b029:1b6:e47f:7458 with SMTP id c18-20020aa78c120000b02901b6e47f7458mr17015052pfd.67.1612777523449; Mon, 08 Feb 2021 01:45:23 -0800 (PST) Received: from localhost.localdomain ([49.207.205.214]) by smtp.gmail.com with ESMTPSA id k69sm12208958pfd.4.2021.02.08.01.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 01:45:22 -0800 (PST) From: Allen Pais To: herbert@gondor.apana.org.au Cc: davem@davemloft.net, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, jesper.nilsson@axis.com, lars.persson@axis.com, horia.geanta@nxp.com, aymen.sghaier@nxp.com, gcherian@marvell.com, thomas.lendacky@amd.com, john.allen@amd.com, gilad@benyossef.com, bbrezillon@kernel.org, arno@natisbad.org, schalla@marvell.com, matthias.bgg@gmail.com, jamie@jamieiles.com, giovanni.cabiddu@intel.com, heiko@sntech.de, krzk@kernel.org, vz@mleia.com, k.konieczny@samsung.com, linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, qat-linux@intel.com, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH v5 15/19] crypto: qce: convert tasklets to use new tasklet_setup() API Date: Mon, 8 Feb 2021 15:12:34 +0530 Message-Id: <20210208094238.571015-16-allen.lkml@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208094238.571015-1-allen.lkml@gmail.com> References: <20210208094238.571015-1-allen.lkml@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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/crypto/qce/core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 80b75085c265..374281e9d6b9 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -116,9 +116,9 @@ static int qce_handle_queue(struct qce_device *qce, return ret; } -static void qce_tasklet_req_done(unsigned long data) +static void qce_tasklet_req_done(struct tasklet_struct *t) { - struct qce_device *qce = (struct qce_device *)data; + struct qce_device *qce = from_tasklet(qce, t, done_tasklet); struct crypto_async_request *req; unsigned long flags; @@ -235,8 +235,7 @@ static int qce_crypto_probe(struct platform_device *pdev) goto err_clks; spin_lock_init(&qce->lock); - tasklet_init(&qce->done_tasklet, qce_tasklet_req_done, - (unsigned long)qce); + tasklet_setup(&qce->done_tasklet, qce_tasklet_req_done); crypto_init_queue(&qce->queue, QCE_QUEUE_LENGTH); qce->async_req_enqueue = qce_async_request_enqueue; -- 2.25.1