Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6357415pxb; Thu, 27 Jan 2022 12:02:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtRPgZoT46TCT7DPCcCsIN38WKtNL2zui28+GHSP8W5+8nr4V0u56y2bnhi77MiMiN6BiJ X-Received: by 2002:a05:6a00:98e:: with SMTP id u14mr4719690pfg.12.1643313732669; Thu, 27 Jan 2022 12:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643313732; cv=none; d=google.com; s=arc-20160816; b=ZzARBT3B9ir1vMgc6N8o6VgHxcVGP9dbI9jFbMyMdaWrDHBBNOTyFNWtnrKj6XyoQR JWJjomUVW5lmS1WeBw4zOGIiREADPRqg1mlqosdUzC6tit5XwoIQ5HlTBT0dwUieR07w qxviKQL1ctPJ6RtcvP0kXHduPNzVMLQfi0FEynvFtErDI23WLO4RBskNizE+QHwhFymk Xeip7IGIFCR+lNeYYKEmuQhuH6M1nPlZH2IbyvANqnbV67TU1t/Dibw+jlQrPZS8ii90 v5RMFzsDYg9SyKnEbkekjEYpj21/HKJAQk3fg4KmVUMp2dFew4yMaO7qE9sSI+fH39BL ttaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A2GVMk6IOKv22ShqPZfwAwtXjwYzTjmd6+fAMnupJNE=; b=W4zld5RMHsa5zzpt8gZvPvvX0g8nnqegDJkMtdojwkao2ehTXVM/KZuWDBKh31Lqjj /fDTfJv+qRDLgNPbeR4CCN1IqKg+4aHsp+2na+uMJCfLkbx9qViz/5bAC11sdpBWjBhb 16OhbIYcpRRSofdqaJi69wB9xhm6bB/XwkyttQLduDCRii+FivPUHkXXwVLOsGgFUiRd yEAj7mPHeWlVXlEcDabEABcgE9gyyStpEIKlWNSRarGjAXzz+vchy18A3ppfQXg9/Sga zgOiqC97w6jK8HCD8HiOcGKzpYtBKYht9iqjQiRS/ZB3I439IeS73QSSfsHPbX51nVmd 3gEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f+DDiLwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si3073894plh.227.2022.01.27.12.01.58; Thu, 27 Jan 2022 12:02:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f+DDiLwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240266AbiA0L0v (ORCPT + 99 others); Thu, 27 Jan 2022 06:26:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240251AbiA0L0t (ORCPT ); Thu, 27 Jan 2022 06:26:49 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40C33C061714; Thu, 27 Jan 2022 03:26:49 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id p5so7537979ybd.13; Thu, 27 Jan 2022 03:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A2GVMk6IOKv22ShqPZfwAwtXjwYzTjmd6+fAMnupJNE=; b=f+DDiLwJrZU1tIqQqYN00OmZD7EmoQbiazgdQbkLp4kYDZ3U13I4sDAp2MZTzLRb/F FNrvHiubhLI1CVfNbvaA//A31kDjl0/es/K3AukdkWLDGPvhboMCnVHAYlW6goIGhl1n QJLzV3+noEyIuQnGAgbRsJkYYeOmA8tIQfRTGVpQ0VubMONEIgkj7GVbSJYRS2M+FNAV gKlRxxRMo2hkqz89TjmbTOGEMQuBXEcRcz/rNNTac2Qe4Ya8qojH9a+Q2TnJxhed/0ke ZtcxptpoBLVJqEENTNvFt5dURkRlIc0lkwwNhwdxJVLHZOIXWEIszVmoyJCuJxqOrnt7 R2rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A2GVMk6IOKv22ShqPZfwAwtXjwYzTjmd6+fAMnupJNE=; b=xYgkE5Y8UAA/HOIcaBVo4KBp5xhuushI7cnOJJzIsMm2UQa1cVgqSBYKCqMB7bZslf 7L7Rk7D2F377pcAK4sUvQL6jh6CY+pdgI+hTStjMUQ8+hC9QH4VUlQeEgxgefcH8o4vI qTP4EOhkYaqqSRLn26dHoz3u0IM2ejioC53PfJ0rv2GStHxYfE8B2AUDjy/eLr3OGEE9 vjugGpoCA9whgM8CTxAhqfw2nyXmZ9TDfQFm8ooxEgIi1t5+r/8bsfKRj/hvEexeJeL6 3OHew4AQmeTULkzuSDLKYzucj/87jYEyeZiCCnfMpwGW6U4+PLfmX7iKNXeQTxayWCt9 MxRQ== X-Gm-Message-State: AOAM532YqHvgjJTuXQ5S6Jzal7R3glUx645SuEksGA/u14CgEUo61M2w ywUD/xGelp0FSNUC0/s+TZnG0P4qKJiamsr2OI4= X-Received: by 2002:a25:6d08:: with SMTP id i8mr4987330ybc.422.1643282808477; Thu, 27 Jan 2022 03:26:48 -0800 (PST) MIME-Version: 1.0 References: <20220121014117.21248-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Thu, 27 Jan 2022 11:26:22 +0000 Message-ID: Subject: Re: [PATCH v2] soc: renesas: Add support for reading product revision for RZ/G2L family To: Geert Uytterhoeven Cc: Lad Prabhakar , Magnus Damm , Linux-Renesas , Linux Kernel Mailing List , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, Thank you for the review. On Thu, Jan 27, 2022 at 10:12 AM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Fri, Jan 21, 2022 at 2:41 AM Lad Prabhakar > wrote: > > From: Biju Das > > > > As per RZ/G2L HW manual (Rev.1.00 Sep, 2021) DEV_ID [31:28] indicates > > product revision. Use this information to populate the revision info > > for RZ/G2L family. > > > > Signed-off-by: Biju Das > > Signed-off-by: Lad Prabhakar > > --- > > v1->v2 > > * Fixed freeing up soc_dev_attr in error path. > > Thanks for the update! > > Reviewed-by: Geert Uytterhoeven > i.e. will queue in renesas-devel for v5.18. > > > --- a/drivers/soc/renesas/renesas-soc.c > > +++ b/drivers/soc/renesas/renesas-soc.c > > @@ -405,41 +417,38 @@ static int __init renesas_soc_init(void) > > > > eshi = ((product >> 4) & 0x0f) + 1; > > eslo = product & 0xf; > > + soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", > > + eshi, eslo); > > + } else if (id == &id_rzg2l) { > > + eshi = ((product >> 28) & 0x0f); > > + soc_dev_attr->revision = kasprintf(GFP_KERNEL, "Rev %u", > > + eshi); > > Would you mind if I would drop the "Rev " while applying? > Fine by me as it's already assigned to revision so there isn't any point having "Rev" prepended to it. Cheers, Prabhakar