Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2188563pxb; Fri, 25 Mar 2022 12:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEfd+IvBJpgdCQb/bv56KXp6CN76jUQow7ShI6flU/m8FjweGISYg3cDeGxsS3OEPOPlZ2 X-Received: by 2002:a63:3d0b:0:b0:37f:ef34:1431 with SMTP id k11-20020a633d0b000000b0037fef341431mr868228pga.547.1648237222613; Fri, 25 Mar 2022 12:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237222; cv=none; d=google.com; s=arc-20160816; b=EC6CPCg9dGFVny+e4kaOpNM1D207YAwlDLmJsRAQKaJH+TAKa5qRPxNoH2cBdgrVYW HXzvWorunGEBhm21I3hKeI/rHrwhK9W9MF9+bPl9Phuci3ihtM4Nkmsj1UTpvdsaPFcq VMXJm+I++8bRpF+SomG8rwchWfngu1dJjQHfnTNvqUSBqS2WgYMd83OnN17GFRNrlPKs e2kjF92y68yEDDjodKWbYOQxDHtvehSPawPfC8hYsztb7BLXUMmM5SMRVwIZuUbXTh8U mV+yZMS6NAvrh/mt2BekqH77t3ndsY03X80LILWt9dx1F2xvMTzEehXWuCsotbbHeVFw coyQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dnODPaJY/J+n3BkIXlCmsZJUqQLCC5eiwNXYnqqukBk=; b=RvnxuxsjVuoYL9FHm3SF3ktSg0YWsdGYiU8BrplQjNnlEXTA0+g1XJIVVcHBHLIX3Y ALwAYOjPcOMqEtt1xoROcaUwfWJ3ioCojkkAb4L50CXjcXrNyFbh8JRp6PDej30RBnUi NWFg0zQzYLYgk8KSxuUqjcs9Z4RcgFsMaQCzopXE5D8qjyRf/p8mOMxcxyY7uJSxvj5C xzZuOcmYD0s9pKCLVIIGobzzOnDGtE7tc7dLmeirgtJA9t4QpP+J8onVnkQLF9vTBfrU jqbFufzoLWl5I7GqTLwArta/DAMDHWtExX3890XkfHcsRD/+PkBdD9ES/GedsMOUYwlH acEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bqhz2zWM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t6-20020a170902e84600b00154abdc081csi3375323plg.192.2022.03.25.12.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:40:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bqhz2zWM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53DDD27E87B; Fri, 25 Mar 2022 11:31:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354345AbiCYHmC (ORCPT + 99 others); Fri, 25 Mar 2022 03:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354324AbiCYHmB (ORCPT ); Fri, 25 Mar 2022 03:42:01 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB5C9BAC3 for ; Fri, 25 Mar 2022 00:40:26 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id v2-20020a7bcb42000000b0037b9d960079so8518607wmj.0 for ; Fri, 25 Mar 2022 00:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=dnODPaJY/J+n3BkIXlCmsZJUqQLCC5eiwNXYnqqukBk=; b=bqhz2zWMvRkdTQBDj6ZAZIlYrvJPAcKBIWzKZeB+/CBBucdnqvI52PJthfpFSq+v5U gXqOV2I/8IDY7tAerS3IsF8S1vXomCZ1TkWfwbcmlpEgxTPxHvU+zVX3G2N0DTAcHLMJ xOUOaDwTZW9KOGyD2L0A4rv7QA0/M+fARHBAeMn3SCe/jeZPkLW3Dj3jiq3n+2iluKQE cAhJiVZqDkYed4GWxHxsLQw3DW4OsTsw3ovEleJL41j1eDpnGyH2ilSHffmU2sYL02Gm xR1hyx4LtKVBwt6pwVXtAWjX8dqRx7hdnRbdg5huBC4C2NnohFwIHSQmBkkuIzhrg8hK w5ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=dnODPaJY/J+n3BkIXlCmsZJUqQLCC5eiwNXYnqqukBk=; b=aLXKrEPrqoiiNhpuDMGt3zs1o3cDptp1zQHXEJJlGhwQlejHF9G5TAFbbIsK4ZqeOC iQ67wN9ghxHtIlFl3Or5XtHmAMEO5zWdg3k6LpGnaN5h2vnpc1zcJXFKv2YzkDz0ZC67 h447wHy8f9MKacnHgSUMuuMxfo5WMXIDPNpuOQ1i6+dqWG4qqD8wtXQytyoxKEPE5rj+ Wn5kOtkfmj9jhhzjntymAuZ9fxNJTDTTqSy6TOSSq3RpVvET0S9QcRU9WzoqUBED5B22 AgL9z0xDiKwjLbzGu/9ZdZ3L4MEeVC70No6Wlf4KQ6DZcqfZhYkrQ87ugpUM58xwbCH3 7TlA== X-Gm-Message-State: AOAM532S2DChcGus4ijWiXhCmk4ZgiwzTGYEtqC37lneaxKNcBoHhtAh gZOwdeVQ4YGvVJ9af8IIPkqYYQ== X-Received: by 2002:a05:600c:34c5:b0:38c:30e3:1e6c with SMTP id d5-20020a05600c34c500b0038c30e31e6cmr18251767wmq.144.1648194024977; Fri, 25 Mar 2022 00:40:24 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id q16-20020adfea10000000b00203e0735791sm4407043wrm.39.2022.03.25.00.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 00:40:24 -0700 (PDT) Date: Fri, 25 Mar 2022 08:40:22 +0100 From: LABBE Corentin To: Stephen Boyd Cc: heiko@sntech.de, herbert@gondor.apana.org.au, krzk+dt@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v3 17/26] clk: rk3399: use proper crypto0 name Message-ID: References: <20220321200739.3572792-1-clabbe@baylibre.com> <20220321200739.3572792-18-clabbe@baylibre.com> <20220325004125.C80FDC340EC@smtp.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220325004125.C80FDC340EC@smtp.kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Le Thu, Mar 24, 2022 at 05:41:23PM -0700, Stephen Boyd a ?crit : > Quoting Corentin Labbe (2022-03-21 13:07:30) > > rk3399 has 2 crypto instance, reset for crypto1 is correctly named, but > > crypto0 not. > > Add a 0 to be consistent. > > This is OK because nothing is using the define today? Yes, nothing use this rk3399 define. > > > > > Signed-off-by: Corentin Labbe > > --- > > include/dt-bindings/clock/rk3399-cru.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h > > index 44e0a319f077..39169d94a44e 100644 > > --- a/include/dt-bindings/clock/rk3399-cru.h > > +++ b/include/dt-bindings/clock/rk3399-cru.h > > @@ -547,8 +547,8 @@ > > #define SRST_H_PERILP0 171 > > #define SRST_H_PERILP0_NOC 172 > > #define SRST_ROM 173 > > -#define SRST_CRYPTO_S 174 > > -#define SRST_CRYPTO_M 175 > > +#define SRST_CRYPTO0_S 174 > > +#define SRST_CRYPTO0_M 175 > > > > /* cru_softrst_con11 */ > > #define SRST_P_DCF 176 > > @@ -556,7 +556,7 @@ > > #define SRST_CM0S 178 > > #define SRST_CM0S_DBG 179 > > #define SRST_CM0S_PO 180 > > -#define SRST_CRYPTO 181 > > +#define SRST_CRYPTO0 181 > > $ git grep SRST_CRYPTO > Documentation/devicetree/bindings/crypto/rockchip-crypto.txt: resets = <&cru SRST_CRYPTO>; > arch/arm/boot/dts/rk3288.dtsi: resets = <&cru SRST_CRYPTO>; > > Uh oh. Just don't change it and think about something else when it > starts to feel inconsistent. This is on rk3288, so not related to rk3399. Even on the RK3399 TRM, all crypto clocks are called either crypto0 or crypto1 (neither just crypto) Regards