Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp341761lqh; Fri, 31 May 2024 03:04:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqQtj76UfSb5W5ryzlNApJL3G9P69igukguKri04MEmByN57Xgi+OMaUgP+f4IOaL7c54OxLTT2dKsI4tqpkynJWQIvmMY5IHp3ehMQA== X-Google-Smtp-Source: AGHT+IHxymjo9AU1Vs4dfdxwnpuVnV3Dt07faG3ELng1uVYQRNMuwib3alaF5ko6WRvgp8dicICu X-Received: by 2002:a17:906:ca4e:b0:a68:67e4:7f06 with SMTP id a640c23a62f3a-a6867e47fe7mr70556966b.10.1717149857729; Fri, 31 May 2024 03:04:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717149857; cv=pass; d=google.com; s=arc-20160816; b=XF5lkSnc3Tw4OBduUwr77aB6UTQT8WWteEEwGtNP2SxtHjJ+7c7bN8mu/5EhqnhNOj M+lwXBP3hj1I5TamL28uY20WmYSp7WjSfKTqht6i272rkCVQ3dmnYI2eilmgekoa1sgF uNo88iHu4cOcvIN9hzNwajdbGXUMtY3nhmJOXudcKCXOEgwaPv8eYH6zIXff5P92phl7 piyVXfu4bEQXN699cB38wHQMhiMgJdld9ROSDxOR7LdpNhZ/7NqJPKjmtVxmKFim4UT0 Ral9JcxHfG1GaHFMzLxnaUqovuU71ugu7RVHEMPzw1SoJ1Oia7IphAPlsVASBnoqpQdB IV9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9GPw1umK/mB9EDut1kKlrkCFOEdOSCsqYb2hH2z3l2U=; fh=TNOhMiy/Cu4EQN4zd4ZQsQToko8RGsO+F+Mf9v2yyng=; b=fsR75AiRyHXJsDb09i65cp51behWKKnkHP0Azp5BCUeT8gxYXT109DWYoTYaePnchP WuTM1FWJQF/jxCzGlFpQkRtrxNdQcj0sRucTBSQEZ/B3LHADDDgmkaQvNngmh6WOX0G0 uOuVD5Cy6My2mO9OdZrf/z76ixQSqfjbTIAKFdkDymFRtw+bnxJ4ybLmuVeuWIuRKTQ7 BF2Py3Rxv5VZEiF1XRh+4DVyHnQ3wojh5WolzHNGp5HzvrZfLvRcIREKiRr84QLjmL/W P+Y/3adLnvGq+QJPDOdzb5EYtOtWNUyXPXz9hAvHg3rl0YW6DivKmRmLZOKYVQgI5dxp xIDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=oeaE7Yt6; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eb723678si76305066b.997.2024.05.31.03.04.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=oeaE7Yt6; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-crypto+bounces-4601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3477A1F238C2 for ; Fri, 31 May 2024 10:04:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 801FD1422D8; Fri, 31 May 2024 10:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="oeaE7Yt6" X-Original-To: linux-crypto@vger.kernel.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D02B013664C for ; Fri, 31 May 2024 10:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717149853; cv=none; b=J8kNN7JMoGj/IVZvviboLitokE7YkrO5P/ALLeTyS/Up3pHlVcgvEmS5qMx2Q6XkvwXpRhsuA37Z6xHxr5X5appnpU2AB/WpcjhEiYLngMJDfc2aid1EQQbsUacW36BvNKCn0R9av2z6hddD63/RCrwc/rpg7PdZ/lrddOike0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717149853; c=relaxed/simple; bh=6FFVaDj2Wh9HT++ohzHlC98/EJ52YxrG32nQJX66Ubs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QK/eroIw3OkvrnSvpbXK3FFGgZSI9daxZbVIn3U3ZJn3gzYCEAv+4XNhQqlXd4hXf4lnJZ++z7sHGeu4uVg2+SXMT+p6XevWnKEv486oJl5z+DSMqsfkCfujHPO+Cf6bf/c8FCVuvNZdPqS5trYxhjt/1bMASfrfDXDOLDYZ9JE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=oeaE7Yt6; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 786F48869E; Fri, 31 May 2024 12:04:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1717149848; bh=9GPw1umK/mB9EDut1kKlrkCFOEdOSCsqYb2hH2z3l2U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oeaE7Yt672PKDzAwIDlx9j6005P9UKBVIt1SeB/CBXN2mz4BXXSWa21bMQ/+N6Wo7 Jo9JP5poC8xX2A+PS6KKtlNIQJ+vxaswyL/2xkU7qj2TQAjJDAsAcWV8QI+e6KkAxJ mDNxhdBrCrtwbxqWrT7sLW5r2MuSkxbYax1342GvpWNzE4VOLzTRAiU/lReMuRFjOY xgr5yF7ObZxgq/kgOK+iCm+KGZrO5yDZsN/yX26hYWgSmjrJPiftKroXf3BJZ4u2v2 L5PCHc62CD8HWxqj94Me2kna4KPYPtrfg4n9mAVKW+RW4XB9PELffe4TEIIZL0rKsd 502f4eU1vwbDw== Message-ID: <693df34f-c387-48a5-bbb9-1fa2e3077da8@denx.de> Date: Fri, 31 May 2024 12:04:06 +0200 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] hwrng: stm32 - cache device pointer in struct stm32_rng_private To: Herbert Xu Cc: linux-crypto@vger.kernel.org, Gatien Chevallier , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Alexandre Torgue , Maxime Coquelin , Olivia Mackall , Rob Herring , Yang Yingliang , kernel@dh-electronics.com, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com References: <20240516193757.12458-1-marex@denx.de> <20240516193757.12458-2-marex@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 5/31/24 7:06 AM, Herbert Xu wrote: > On Thu, May 16, 2024 at 09:37:41PM +0200, Marek Vasut wrote: >> Place device pointer in struct stm32_rng_private and use it all over the >> place to get rid of the horrible type casts throughout the driver. >> >> No functional change. >> >> Acked-by: Gatien Chevallier >> Signed-off-by: Marek Vasut > > I think you should remove the assignment of rng.priv too as nothing > should use it anymore after your patch. Fixed in V3, thanks.