Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B76C8C77B60 for ; Fri, 31 Mar 2023 09:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231887AbjCaJHK (ORCPT ); Fri, 31 Mar 2023 05:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbjCaJGu (ORCPT ); Fri, 31 Mar 2023 05:06:50 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359404C13; Fri, 31 Mar 2023 02:06:31 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1piAhz-00AjtP-B7; Fri, 31 Mar 2023 17:06:08 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 31 Mar 2023 17:06:07 +0800 Date: Fri, 31 Mar 2023 17:06:07 +0800 From: Herbert Xu To: David Yang Cc: Weili Qian , Zhou Wang , "David S. Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH v2] crypto: hisilicon/trng - add support for HiSTB TRNG Message-ID: References: <20230321223328.1908817-1-mmyangfl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230321223328.1908817-1-mmyangfl@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Mar 22, 2023 at 06:33:26AM +0800, David Yang wrote: > > +static int histb_trng_wait(struct hwrng *rng) > +{ > + void __iomem *base = (void __iomem *) rng->priv; You should never need to cast something to __iomem. Please copy what the meson driver does, that is the right way. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt