From mboxrd@z Thu Jan 1 00:00:00 1970 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 F0440C433F5 for ; Tue, 22 Feb 2022 10:01:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230352AbiBVKCS (ORCPT ); Tue, 22 Feb 2022 05:02:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230320AbiBVKCP (ORCPT ); Tue, 22 Feb 2022 05:02:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31CEC4D9E1; Tue, 22 Feb 2022 02:01:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CB4E3B81979; Tue, 22 Feb 2022 10:01:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 748F6C340F1; Tue, 22 Feb 2022 10:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645524106; bh=WlKysR3fh9cyTsBx7g4oItMVVN2tFxPCnNUbkhVb5nw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NF0HYkUOI0T/c3YEkbbhITM2wsz8a1nY+2BBS7Ae1Qq3VQlDKXDwweAiLgzY07a0D CkamuFzar7TxDgxm+QX7I/1Fq1DUFGwnXlPyDla0GiaEX32655LtgKJLcX4zJTFjls 61Il/UAGUO7DOVokjixgZgiqpmyhPo1jYvg7/pAGch63DfOdl2iFR/rng+VPpn2ELs xtC7Z1kwFlCUqvcnqxPJ9osES2woTYbxMPm+oOe4oBRJa2GDNGjQmvr70CX22+ay6d vDTZuWldYKrdJnsT7LE8zzB82pPUU2Dr/XdVS2sUIOGL4KiX3Iste78hkfDogmOIH0 zRPc6i0BqFc6A== Received: by mail-yb1-f178.google.com with SMTP id v186so39969219ybg.1; Tue, 22 Feb 2022 02:01:46 -0800 (PST) X-Gm-Message-State: AOAM533Zan2M52b4S0gar/jlnhE6g/l27hzEhWn7rRiAdM2DOCpyI3FT lPxte3sYTSsuCD51QJNxGp1zSUR9DasvpfhiaZ8= X-Google-Smtp-Source: ABdhPJzlvtAFNBuRnF7Dm7wHjcBG42cmva1ven6sDLXUphEjMJfNZZBaJeENh17z+ZNcYmS98StpGZzI20vsmBNiZmw= X-Received: by 2002:a25:4214:0:b0:624:6215:4823 with SMTP id p20-20020a254214000000b0062462154823mr13087478yba.432.1645524105607; Tue, 22 Feb 2022 02:01:45 -0800 (PST) MIME-Version: 1.0 References: <20220216113323.53332-1-Jason@zx2c4.com> <164543897830.26423.13654986323403498456.kvalo@kernel.org> In-Reply-To: <164543897830.26423.13654986323403498456.kvalo@kernel.org> From: Ard Biesheuvel Date: Tue, 22 Feb 2022 11:01:34 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] ath9k: use hw_random API instead of directly dumping into random.c To: Kalle Valo Cc: "Jason A. Donenfeld" , miaoqing@codeaurora.org, Rui Salvaterra , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , "Sepehrdad, Pouyan" , ath9k-devel , "linux-wireless@vger.kernel.org" , Dominik Brodowski , Linux Crypto Mailing List , Herbert Xu , LKML , Netdev , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Florian Fainelli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 21 Feb 2022 at 11:57, Kalle Valo wrote: > > "Jason A. Donenfeld" wrote: > > > Hardware random number generators are supposed to use the hw_random > > framework. This commit turns ath9k's kthread-based design into a proper > > hw_random driver. > > > > Cc: Toke H=C3=B8iland-J=C3=B8rgensen > > Cc: Kalle Valo > > Cc: Rui Salvaterra > > Cc: Dominik Brodowski > > Cc: Herbert Xu > > Signed-off-by: Jason A. Donenfeld > > Tested-by: Rui Salvaterra > > Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen > > Signed-off-by: Kalle Valo > > Patch applied to ath-next branch of ath.git, thanks. > > fcd09c90c3c5 ath9k: use hw_random API instead of directly dumping into ra= ndom.c > With this patch, it seems we end up registering the hw_rng every time the link goes up, and unregister it again when the link goes down, right? Wouldn't it be better to split off this driver from the 802.11 link state handling?