Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp370113yba; Wed, 8 May 2019 22:28:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxaISVI/ekFkjj8X4IcWxfkD55K+ReC5RgEAjdcG0gKV5hWyty5tYaiT7jRjrZM3jjBRDZ X-Received: by 2002:a62:4690:: with SMTP id o16mr2447576pfi.166.1557379737634; Wed, 08 May 2019 22:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557379737; cv=none; d=google.com; s=arc-20160816; b=EeG0s7dOESPfWxd6GVJ4Udvs6Zy3EYPsNJxcPf0wmxkzuWKniUnUKfJTHa37MpsmNe cI0Ny1j/pa05lOP53obcnVNgKf8vtEIQvZCDNHS4oGyPcSctIJ2YyU8saEKp3X3NJQp9 dIyIaq2DBUEXPUElexbbx4vWX5ndO4B29SWqn7/utgx3a6V/RXBKE0KuynymjgGOf12C 2jV8zMml6WsoXPcj8ykH0DMCAG1ATKq7S49CQK8zDcQ+IpdvL1tBdR0fTXHfGrKxzqag 6y7tuvG5j+axSdYS+0gfIeRn5ib+1I2GomgJBO57GUelGDPkxoLxT0Vco3TVg81hthse oGDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IT8F0vznxCfX3njnuUCK9UkSOvG3xfS3wPQSbEdtcnI=; b=Q7UIRoHrFaWp5LSXL4+LVNyjyzRxuaRIP4ADidLdB4LAO4JILGa8A/gAzsuRL3UrT1 gQ3ycpNQMvHF/68DtVqmlxNFI6MhboIca4dwrzyeeWh19e5wxMZePvq9eH6JpiFgqdZZ 0sLSdXoDDyMC2c7rLbOUqeYSuMlH3O8oEyDGlNG2ZeC8Kcpr9T6nh93GIxJ31wqfFjP3 ftW7XZhXM6prXXolTR6HPoZPPQmGvMG3z92aLLbcp4CiDr9XmrRMj+Fvr6e3JYKrV+uH aV9aUdFimwICKm6RBKB+Cjwq2fk5gwCkr4tHBxPX7cfqJWsekY+P1NZzYC/c+5pPjZWR kIsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q90si1459401pfa.245.2019.05.08.22.28.43; Wed, 08 May 2019 22:28:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbfEIF1f (ORCPT + 99 others); Thu, 9 May 2019 01:27:35 -0400 Received: from [5.180.42.13] ([5.180.42.13]:53964 "EHLO deadmen.hmeau.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfEIF1f (ORCPT ); Thu, 9 May 2019 01:27:35 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hOba7-0001EH-AS; Thu, 09 May 2019 13:26:59 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hObZx-0001bA-St; Thu, 09 May 2019 13:26:49 +0800 Date: Thu, 9 May 2019 13:26:49 +0800 From: Herbert Xu To: Neal Liu Cc: Stephan Mueller , mpm@selenic.com, robh+dt@kernel.org, mark.rutland@arm.com, matthias.bgg@gmail.com, wsd_upstream@mediatek.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Crystal.Guo@mediatek.com Subject: Re: [PATCH 3/3] hwrng: add mt67xx-rng driver Message-ID: <20190509052649.xfkgb3qd7rhcgktj@gondor.apana.org.au> References: <1557287937-2410-1-git-send-email-neal.liu@mediatek.com> <1557287937-2410-4-git-send-email-neal.liu@mediatek.com> <12193108.aNnqf5ydOJ@tauon.chronox.de> <1557311737.11818.11.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1557311737.11818.11.camel@mtkswgap22> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 08, 2019 at 06:35:37PM +0800, Neal Liu wrote: > Hi Stephan, > We think the cast is fine, and it cannot guarantee the buf is > word-align. > I reference multiple rng driver's implementation and found it's common > usage for this. So it might be general usage for community. Is there any > suggestion that is more appropriate? If you don't know whether it's unaligned or not then you should do an unaligned operation. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt