Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp293831lqp; Tue, 11 Jun 2024 05:04:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXp8cLFXdf7B6hsL0ihpWTsn8nDYax0taWiERrqEiuc74Heg/7J1l+DYwLtRdaSuXaJUu7QDrcc87w2biI56rm6TWQuLMzUuOnYAJHqUg== X-Google-Smtp-Source: AGHT+IEmpiGF6vfFENvOcxG0/cSCIeUVz+miYCgulICRbiAS31Mj0Eg2JW2CBcrz5QezVQUFApUI X-Received: by 2002:a05:6870:6587:b0:254:9eea:4996 with SMTP id 586e51a60fabf-2549eea506amr9791548fac.46.1718107460607; Tue, 11 Jun 2024 05:04:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718107460; cv=pass; d=google.com; s=arc-20160816; b=f5zkqC9sRz8WujcwM/JWRyI2PdYiL3QF2yk141+7EUQ1To0vy8O/UHuDNDHTyp4X3r wcgp9tGGAkEgc4do8Qw+Izise4DL6o1+sCJafN+NROyEse6VHrSvr4R3Iut29UQ8yzKt I3Kxt8URMCJlo3vAc5oA83CAHD5BXOQOPsHwfjHpoPjRMYp9qzonynYonTfIPNE5yEjq 224WjT8bBMXOr4qXFzH9kRh4qXBTlgjreUo14NaoRgLeoF9cG6+/RSa07ZbJGHul1KQq VhPXTx4P/H9gGxbq/Bgc3Gr7KYn7HTSDeymG8GEEX2aCUen3llBZR8tDI9BJuArWMi/b mj6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=v4MG0q9MnuPY4++cJH4EjME8ABWNsolzfGyYD+ZIsYU=; fh=SXA5f3spmEfRW2WD8rEeBKXOpMhXrvxGy6qamnNOjho=; b=zR6ujyDvP3CtpDIBBO1E8KINaka8GASaTGqz3lvrT0Mmlhwyamq6Nnc8QMUuOlosIj Wj3nrGgZZPe+8gWRZDYB6hrCbHE064KEh2A3RvGB/xmqiqZTEFvmExWoWhPh1aKRg3uK kYzduHUUNx6SbTG8kA0a76YoqaSQw19jDJn+z3jKKv0Mt7c/Y8z4Se7Lg2KOWH6azCw+ o+esmHuJDlI2O5p8+LEVPwDfLHUsIjf1KIQ1K33WFBgWxMyzbTkfy0xiSSLJRWDdFoAn UDKeeiGCQV5BhSUqmWuVApqNRA2/dXLA5YjHCo7Exv0gfN2vDNL9WHHUpIIHQjIsiD37 ybGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=v4UzXkw7; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-crypto+bounces-4893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 71dfb90a1353d-4ecfab9a077si61480e0c.73.2024.06.11.05.04.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=v4UzXkw7; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-crypto+bounces-4893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EB4CD1C20F39 for ; Tue, 11 Jun 2024 12:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74CC317838A; Tue, 11 Jun 2024 12:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="v4UzXkw7" X-Original-To: linux-crypto@vger.kernel.org Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23234171E60; Tue, 11 Jun 2024 12:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107429; cv=none; b=JzSwVYetZYhZdQVoEKoB55570RtMIKx1ECeFOr0lkeToq9siLIjoF4RymkLsoLc7gEh3Ihy3RgbKzHFLBXRHU7K9asCzm4e4GI0pbq7cKvbOmND4nwGsvCGdgtgKacx57LsISgKpJM7VF+4cq5eWDasg+8bn+bvX7rPU2BLnM7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107429; c=relaxed/simple; bh=6iL5d5+TpVoppRR7mPjEQaHzLpdbiQSHhhT9BJKLh3I=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=NvvxSbtX9/7l6oyWZko3P0joa/f+1FXFszmF5krQRnj43rjXqMdnxOx0TxbXQMS7H6G+yYqWyoMyPoTfO05WGd45cDId0u4zwZUyxSq59r1CONz4BDHX9SGNdGFzoNx304OQ49Xljqfj9ot8qoWT8V8Zuq3UVo03iSCfT5x0u8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=v4UzXkw7; arc=none smtp.client-ip=212.227.15.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1718107378; x=1718712178; i=markus.elfring@web.de; bh=v4MG0q9MnuPY4++cJH4EjME8ABWNsolzfGyYD+ZIsYU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject:From:In-Reply-To:Content-Type:Content-Transfer-Encoding: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=v4UzXkw7bizGPdAA35we5ZahpMfu+ZtwZNGftCytLLW7WsytaCSWwTVnydrGfkf1 oK/ZgNXHm3vpMwOwPNJaTR1ozrYCotWRwmkEjkvwqSxaKtXnFCdvWl7BWkUzIqFCS gIZagFE4szymyPe2/f4PTzw8l/ZSBWTr6Javsc6tAMAUPJBNgae9OxCZAV80jPYbh NaigegF64eXlcvvhNoh0riYBNQAcs9DfWfqcn5GNVlVHnCuc6XKWXtoPFQveEsvl2 ywNmQI4Yqagr0EUDQODHk9pq5lLKLP27RCYJ1ytTAQJG7IzSDUY5u0ZSF4xH3Od3g ph0NW7vK707lcLT9gQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.83.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mc1ZT-1sq3Jt0QsJ-00jIxb; Tue, 11 Jun 2024 14:02:58 +0200 Message-ID: <32303d99-c5ba-4fec-8981-9b9966dc3291@web.de> Date: Tue, 11 Jun 2024 14:02:52 +0200 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Kamlesh Gurudasani , devicetree@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Herbert Xu , Tero Kristo , Will Deacon Cc: LKML , Andrew Morton , Alexandre Torgue , Catalin Marinas , Conor Dooley , "David S. Miller" , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , Vignesh Raghavendra References: <20240524-mcrc64-upstream-v3-4-24b94d8e8578@ti.com> Subject: Re: [PATCH v3 4/6] crypto: ti - add driver for MCRC64 engine Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240524-mcrc64-upstream-v3-4-24b94d8e8578@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:TJ+M3A+ZwHBv8zbRqkd8DEM7qjVhITuWZRUhZtq7FNJIWGkAGBW 3CoM26cD78kPrZKl9pVWI0m31RFhWOtge/YrCgXqxxV5jOYOmntQo7ZymX+uPbr1E54hC4g 2xYdC00lN417YXdoybmTuYwz5Fszf18GbPLT86PKnchC2KQ7FeKSSpyNPzVqFKprfp7WCKK iS3XbhLEABKTBCzWlaBZw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:YogUS1Yz1Ys=;phEEUBQ3iH6xYdFv8skbZzBR14h X+6Sz3DaRZye53CTBaNq5iAc3w2zfBrL0OMLLDI7LbCNNbCdBr/D4WTeCEoTtVjJ6Xg3Cz636 yXCpyBv1pv97bbuTZMENguGkw8NMIl0r1j3svqVgPM9Ga5wOd+gLLqhscwaPD0vi2gyTrWBqj w2ONOFtEUdjQx7Vj3gpWrxfNDbqVklHCu5zaZX5b9OKbpKyRI5JIx0rJ5JNGRYqhC4qidhpTb zQj2fIl/nIJd7l9KmtF4gvONU3TndNcRrwkGf0Vof27i6MienOPKxS4ds+a7nZ73MBIyXb/R2 1w391fKmFkSuaRPjaYn8Lt1xC0NRVXS8w7j3nYT2DvEf8Yp+7i7PcE3/zYwBXBfQOo2RvKFyT 3s7OHuqCJygN0ECVZ57Aiat6FL2evaSmaAvpl46VGhruRblcmRIvwNMdmo3hCz3SRlQf3VDnP aO59pXvfXJvR2DbVUWPtCaCKbyww/Fi/lRfMS/J0rKEOxOz8qJ6gzaErPnBn1VZHDJUdi2KVG wDHqn9Y8MKbM3GHjUv289hSAXlWFLdkND2BnKcFdoMYLAo7T2L2vVeSOgK0SYgh+cPtTrCL9u Pg/A2En23qftgKq6bluP9KC1QKm3Zbj4g3azip3R2avn8d51eaMrR3S/9jhOiDvhPFctnQAD3 Yy3WkRkUk6KgmJAIMH+PDeZpLRObzXy+N5DUqgnXbaZwNVRh30u+GjhvAODjj10La3DRLkxOq 6qN1/0vPgbsSgGmnPVzYQtiL1+WEjnexyZ+u6mBa5/KDVF9MA+AzYPfIbS7+erBP0mYnvA4zG Eez1Dz4hRxH5b4QSa6kObgEBkhBJI0lV9uv4wEB1k1EmY= =E2=80=A6 > +++ b/drivers/crypto/ti/mcrc64.c =E2=80=A6 > +static int mcrc64_probe(struct platform_device *pdev) > +{ =E2=80=A6 > + platform_set_drvdata(pdev, dev_data); > + > + spin_lock(&mcrc64_dev_list.lock); > + list_add(&dev_data->list, &mcrc64_dev_list.dev_list); > + spin_unlock(&mcrc64_dev_list.lock); > + > + mutex_lock(&refcnt_lock); > + if (!refcnt) { > + ret =3D crypto_register_shashes(algs, ARRAY_SIZE(algs)); =E2=80=A6 > + } > + refcnt++; > + mutex_unlock(&refcnt_lock); =E2=80=A6 Would you become interested to apply lock guards? https://elixir.bootlin.com/linux/v6.10-rc2/source/include/linux/cleanup.h#= L124 Regards, Markus