Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1549650rdh; Mon, 25 Sep 2023 17:02:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGEbukMxmbOGdxNDIjvqVzx1PiwtacKK/eRg9FtUf/zSJsJZFcvOxYTjCPshYZ7G22EjCt X-Received: by 2002:a05:6358:24a7:b0:133:291:f9ac with SMTP id m39-20020a05635824a700b001330291f9acmr10393432rwc.25.1695686522525; Mon, 25 Sep 2023 17:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695686522; cv=none; d=google.com; s=arc-20160816; b=fujuC/xCmdyJn3YYwtgkMNpoU1OcD6YSw5tZPypqad8gfd3PqLBdU/+nWWxXaJphTI aRVFG/EIAlOsdlVNjj6x1wzCQ4JG51L6K644J55sCnPiu97LBhas2eQ+PcdHRkRH9SEg n1B7otIuVyHIh6LqWn8j6TIXbccFM5GXoXBe+/iaXM1u5wsOAodtAgNYnT2/7a4smf0M PpxFb6kWB6kIDjKgDcUdXNc9hGsQwrro+Vn14sMh/opXF7wXPVgmhJQMzjfuG4/C1HGf I7yX7rNaE1uiYs5YZ8N5m1IA3S+hSU+SxtsvlB94B6D7gFJLw6pdRoDuuVPjedlQg/ZA PAVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DSjRjYkmB7BUFVNAKJ4xYkcEzmZhEXiK8XKFZovjGcU=; fh=wOqgqQOhzJwm+LYXT+wWZ2jNQ3aJhws5FssNEldANOo=; b=mxNCxRqbmVhy8eq6K47GV8UfTygF1yBTh3M2bYu9FXO7owCe5sDYke54M7jgxI6EI0 IHq6fTeNy8Zjya2Oo9kOyvlK16j1SiBmg8JIxVyBKXC3ZFNYLIhLC4vUoEh0FGq4F9wg dZHKRPH16Ho9UUdBzzp5vVE3cXL2xDgrW9A5i96jiiZC0HOzs1aS4GGV1h2Aw9ITDxYq VotwfUTlfIYWKmdfM3yaWqtCesVcBI6LPdDgh2zHRZTeoG43k/20PSIndVtGx+wntrVH VGSuXYUuLo6vhiY9r2Ik8kvECJomRunNKWHRYPt+CFIdW6rxhU6h4j1RBgpymSWkc46Y Rw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=H8NTLX4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bx37-20020a056a02052500b005656cec81f5si12944876pgb.268.2023.09.25.17.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 17:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=H8NTLX4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 69B0D80C113A; Mon, 25 Sep 2023 15:57:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233409AbjIYW5Z (ORCPT + 99 others); Mon, 25 Sep 2023 18:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjIYW5X (ORCPT ); Mon, 25 Sep 2023 18:57:23 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CC810C; Mon, 25 Sep 2023 15:57:15 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38PMjvcC001796; Mon, 25 Sep 2023 22:57:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=DSjRjYkmB7BUFVNAKJ4xYkcEzmZhEXiK8XKFZovjGcU=; b=H8NTLX4+J0Nvfambodg6NzHsKmqLb6SVSMnzWbnukSQyPGxZSJtchJ/bO1Ee/QzDBvMi LhtPQNhLKozmaK0QRRtuDhLSe6VJGz7/BjiEQ0p/IjxwTB3mWo5CtQVpGC4P0Ui9/w9+ 1XxaxeDRhqt6w2kxgTJIGbypLp29Jpwz3uZY0gnP4FnjXpBzhEZ2haJLeggOKd+B8s7J qpaNBpdL2SAQ30l3twHfcmc2YWHYf3EyAIS4Pz/OLLWW7XDVh1Ult3KIkn0XIb/8fyOJ zyDRhi4zr8VtXLSbQoEuGaDAFdF1ewZp2o0OCuhS9OAPYO2N5bZD5h6yQB06w4HrRQow 9A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tb5n8a2kp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 22:57:02 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38PMv14c010258 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 22:57:01 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 25 Sep 2023 15:57:01 -0700 Date: Mon, 25 Sep 2023 15:57:00 -0700 From: Bjorn Andersson To: Om Prakash Singh CC: , , , , , , , , , , , , , , Subject: Re: [PATCH V3] crypto: qcom-rng - Add hw_random interface support Message-ID: <20230925225700.GC437346@hu-bjorande-lv.qualcomm.com> References: <20230925172312.2843262-1-quic_omprsing@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230925172312.2843262-1-quic_omprsing@quicinc.com> X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ZuTC_JaemTshKClJTMs3DsKAeZpgi9uV X-Proofpoint-GUID: ZuTC_JaemTshKClJTMs3DsKAeZpgi9uV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_18,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 adultscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 clxscore=1015 malwarescore=0 mlxlogscore=998 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309250177 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 15:57:23 -0700 (PDT) On Mon, Sep 25, 2023 at 10:53:12PM +0530, Om Prakash Singh wrote: > From: Om Prakash Singh That is not a valid email address here, please correct this. > > Add hw_random interface support in qcom-rng driver as new IP block > in Qualcomm SoC has inbuilt NIST SP800 90B compliant entropic source > to generate true random number. > > Keeping current rng_alg interface as well for random number generation > using Kernel Crypto API. > > Signed-off-by: Om Prakash Singh [..] > diff --git a/drivers/crypto/qcom-rng.c b/drivers/crypto/qcom-rng.c [..] > +static int qcom_hwrng_read(struct hwrng *hwrng, void *data, size_t max, bool wait) > +{ > + struct qcom_rng *qrng = container_of(hwrng, struct qcom_rng, hwrng); Please also remove one of the spaces after '='. Other than that, this looks good to me. Regards, Bjorn