Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp830643imm; Wed, 4 Jul 2018 06:46:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpedf0qy6V5uWp1fxely93/Z3qe8B1TH1RgVuSQRYIoBvrWyd1KGzYUY71iqgW9rhUKvftsh X-Received: by 2002:a17:902:7b94:: with SMTP id w20-v6mr2209328pll.280.1530711996388; Wed, 04 Jul 2018 06:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530711996; cv=none; d=google.com; s=arc-20160816; b=Cn91xk8jrW3uCtfuC8GqzuLTmCZy6xb4FOsMCzWjn8eGQAxoi4YB1s9+/DqWUoj+aI g78Hy5vtdbW9VWtU80m+6/zfPjTROD+TAR4pGb2GBoYmwGP0GDvLWrf/WMQ/11YPU3OY Al4NzHHQnfTJaJLIGdAHzgm5Lc8duHb0iTXiV5JB9PyaAtExLTGpFD2/Oyj2RQw96b9n jOYOP6ru1BoIHR58JCokq9etD6MQtyeTD9RZq8gHSzEHH6ntLQs0876kd1CU3vMVM1rQ 3GF5VcanOECxfbCNdDCchhUjIo/8TJJ6eVitmVWOR1NG3iyRXQ7YUVClLVJTO2nsfJew 9mmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=KfE2zVwOpFjjkQKAz7NcuHtpihZDwfbq9zOAnJUTR8g=; b=jnveipnSn1I2MBpp8RH2XC/jvA5w9otq5gXqyr0Q5mVynGMSodNk1foQPXqULiOVcz UCRDMvTKsAnKBX2zbxzVCDf8eXwjVjDvEZN2FcDYLlwe+me57NjzvhPd5oS4FNk/NIGF pQj0RhonG+kuzfRvKm2w8HKQAXcYVdzS2+6rHfryihHQyJTuWEiKsqUo/EBXQ1cJvZ6+ imbfPVIvE1VgGfcPrQL0cWp75pPHRfWm+tmWe/bqC7LKPSg4mOv5p4kVxdvyLriaOmIl VtgsC//6eVY3KMKnZ+CkmNKq8zh4vkR+wBV5kpcegysw+/e/K4S2KM/dq/LXQ9skLGIH CSIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IrACM8z2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si3110590pgp.551.2018.07.04.06.46.22; Wed, 04 Jul 2018 06:46:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IrACM8z2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753718AbeGDNpG (ORCPT + 99 others); Wed, 4 Jul 2018 09:45:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:44272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932569AbeGDNnA (ORCPT ); Wed, 4 Jul 2018 09:43:00 -0400 Received: from [192.168.1.125] (cpe-24-28-70-126.austin.res.rr.com [24.28.70.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7EE6A23CAF; Wed, 4 Jul 2018 13:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530711780; bh=UAtA9yPyi/IQz7bevMS3rMvN9DDMQVW0CLJdHh5bcak=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=IrACM8z2n5MOI5EyEJ5poy/8llOoTIOqFmhU6kvcGnh5acfgNw0mkpzsfVOeM7n7Y GGFKt2A7x2swo4Ah/hHnANQT0lu3haRlxVI5GK2L5Gyl+UeXtXYupVuVu6AMrekL6Y xbiA3COjrdV+yr+staVf7DY83zr0Q45b1Db/NUnA= Subject: Re: [PATCH v3 3/6] crypto: Add Qcom prng driver To: Vinod , Stephan Mueller Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Stephen Boyd , Timur Tabi References: <20180703060434.19293-1-vkoul@kernel.org> <20180703060434.19293-4-vkoul@kernel.org> <2990655.vKmMgW600W@tauon.chronox.de> <20180704041059.GT22377@vkoul-mobl> <20180704061035.GY22377@vkoul-mobl> From: Timur Tabi Message-ID: <181d27ff-e935-ce50-fce2-b114d2d99bc0@kernel.org> Date: Wed, 4 Jul 2018 08:42:53 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180704061035.GY22377@vkoul-mobl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/4/18 1:10 AM, Vinod wrote: > Okay so I rechecked this, the hardware gives 32 bits of random data. I > am thinking of splitting the word and updating by each byte. That way > trailing zero can also be avoided which is the case now The current driver only returns data in multiples of 4 bytes. Why can't you keep that?