Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp41892rdb; Mon, 4 Dec 2023 19:42:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8LUt97g7DOLTljw+ZUH0XBED8tH12rXQnF8XwRFp6BLdDI7uXv9puWyyjHjKW7qnIOpuy X-Received: by 2002:a05:6e02:1a22:b0:35d:6f24:c04a with SMTP id g2-20020a056e021a2200b0035d6f24c04amr2961889ile.46.1701747732814; Mon, 04 Dec 2023 19:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701747732; cv=none; d=google.com; s=arc-20160816; b=Pb4IsJQZCCHzMJeSvwKBnR+IVISvO16Khs25M56GDaY1fK/hWGUVFeD/qfhcOHs5Sv Al44lgAyLakg3FfrRQ9TrgOFm4fdJ5yBdYREZPQPa6f6Q8aTZx9MeihPKxYUeVDYhgF/ /RdWN8ie31uAlBowA+w/vTTa68QiVrkY7DbT+agFsMuZoruwqwhBn9Tif7vznIqkDsxM IIzIyNRjULucJ0Fm2vJ/zvebf5tnnOlibij4jctv2zEpIi4xj74gm4CVKHdfp5mcuL1p lVeJi7iuJdpqYyHs2P1FCKty2hu2a0SHdrl25hxA9qLFsE9/jjhAfuw+UIZ3Y4w8CMDe F2vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=4f2uc09cvlx2ZhO97afEOr6MU71NUA2vcj/kxjSlrEY=; fh=PQ1xlXwj5aQxB7aqIRO9L7JbXbgodP3e+51aVsyLUjw=; b=k3lXBOjaEXnTlkGa4Ab5ozOZvWuXVnmFVjMAwKjoPtUFXkijWpZYU//XVa3uZzS0FF Lf0+AWuWRVy0wizYmiB+gvhdXV9dRG5xjeSyrmSQbIqHtn+zjZGQAQbNfQRZDOxdjcFJ x6RdEVDx74nS5ydv6trEvGoQmpZhUCaZpcVZVhDbvCiFmtydyZfuMnsgyVdKU77zXo4W KlIxBda+WKQFJ70UEUP8bRTTDxn3LoGQ09fDLiv3iLpUN93qfbLgpGQ4HuKJM9iLIZ+A MaAFpWqo4661JVVoufREhLKQzQalhjGNmHTiC+4Kb/IoCmScSk2+S7mWjlVKB/XuSaug qAgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bq10-20020a056a02044a00b005bdfd3a26a0si3422104pgb.584.2023.12.04.19.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:42:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6F0768042C11; Mon, 4 Dec 2023 19:42:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjLEDl6 (ORCPT + 99 others); Mon, 4 Dec 2023 22:41:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbjLEDl5 (ORCPT ); Mon, 4 Dec 2023 22:41:57 -0500 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321EEFF for ; Mon, 4 Dec 2023 19:42:01 -0800 (PST) X-ASG-Debug-ID: 1701747716-086e236fef30af0001-xx1T2L Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx1.zhaoxin.com with ESMTP id ymHGzjALhRkJ3HKG (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 05 Dec 2023 11:41:56 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 5 Dec 2023 11:41:56 +0800 Received: from [192.168.1.204] (125.76.214.122) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 5 Dec 2023 11:41:54 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Message-ID: X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.204 Date: Tue, 5 Dec 2023 11:41:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction To: Herbert Xu X-ASG-Orig-Subj: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction CC: , , , , , , , , , , , , References: <20231107070900.496827-1-LeoLiu-oc@zhaoxin.com> <20231121032939.610048-1-LeoLiu-oc@zhaoxin.com> From: LeoLiu-oc In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [125.76.214.122] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1701747716 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 1441 X-Barracuda-BRTS-Status: 0 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.117665 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 19:42:10 -0800 (PST) 在 2023/12/1 17:31, Herbert Xu 写道: > On Tue, Nov 21, 2023 at 11:29:39AM +0800, LeoLiu-oc wrote: >> >> +config HW_RANDOM_ZHAOXIN >> + tristate "Zhaoxin HW Random Number Generator support" >> + depends on X86 >> + default HW_RANDOM > > Please remove this default. > Okay, it will be deleted in the next version. >> diff --git a/drivers/char/hw_random/via-rng.c b/drivers/char/hw_random/via-rng.c >> index a9a0a3b09c8b..6d1312845802 100644 >> --- a/drivers/char/hw_random/via-rng.c >> +++ b/drivers/char/hw_random/via-rng.c >> @@ -35,9 +35,6 @@ >> #include >> #include >> >> - >> - >> - > > Please don't make unrelated changes in a patch. > >> pr_info("VIA RNG detected\n"); >> err = hwrng_register(&via_rng); >> if (err) { >> - pr_err(PFX "RNG registering failed (%d)\n", >> - err); >> + pr_err(PFX "RNG registering failed (%d)\n", err); > > Ditto. > Okay, these modifications will be restored in the next version. >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > > Please sort this alphabetically. > > Thanks, Okay, it will be modified in the next version. Sincerely, Leoliu-oc