Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6268012pxb; Thu, 27 Jan 2022 09:56:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKf1xJ0cDR+R5kzZyVK5ZTWqk1l6H+85ueBGwZ66Du/nq234eJp8ANBjaTVlR1RTz3khE8 X-Received: by 2002:a17:907:7b85:: with SMTP id ne5mr3742620ejc.572.1643306181863; Thu, 27 Jan 2022 09:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643306181; cv=none; d=google.com; s=arc-20160816; b=v/9DTsyv01KfUDNFclc6oD8ZdqfMYlqSx1CdvBWIUIUc1H7Zsx8T0wPMVaf+BLJobg rUgDfdFGjaGvLl61efQ6FE5DMLISeObGMe2c5BfLtomH01KlZTHOMSSWeHrSlBcA9BRQ uvd35HEMnXvhsv6svAxUfE3ANfMhUAPBnDqPR3dBn0o0V78QdjmW0i4o70PyBQre7Ks/ tc8IyhbshwOIA+BBW7dDbHJBRd1YyLMIW2dWXfNjfMsTjZq7Ufx62tVZMCjU3Ulal6wK tJ2mqJVc+5NuSF/B8hprT6Wo7h+UUsJxJzQdoiTX+Rww8/NeCFZ0nRUeYQTVXSGBBOkC sNkg== 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; bh=y8tFLfG3AkbX5FC2LkFwx+nrAMcVQcoVBJvwDmbMZbE=; b=kfJQ/cpa0UPdjwlMEiIoUsN6SYJgJXoDpCZQDlD8fwJKG7+53zewez8NAjz8tjDgBo VGIVoqt5FflBZ57g4BO+mTEt0opEhoC8EQs1YptEHUIVGYxNylBg7mCuvjzIvkTEsmUs 21M9iWHjTuiVYuI2EaBhbfiaP6/xCp/JJZRJar7h5u34iTcIh/0E4rGRJZNJ8CJG7EqT xXFNKf2kNBm92Woc7LXgM55GY8ytW/nXGJUr9PKETI5eLBuTB8UbmOmrsZgQpj0LJc2v b0rkRIGkcLcSjis25MnXVZ67kyVcIbNQOo7Pve/H1d4sxqYwBBLyWdu/G4LbkaNRzPAo W69w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho30si1718495ejc.687.2022.01.27.09.55.54; Thu, 27 Jan 2022 09:56:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232383AbiA0KMq (ORCPT + 99 others); Thu, 27 Jan 2022 05:12:46 -0500 Received: from mail-ua1-f49.google.com ([209.85.222.49]:36775 "EHLO mail-ua1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiA0KMp (ORCPT ); Thu, 27 Jan 2022 05:12:45 -0500 Received: by mail-ua1-f49.google.com with SMTP id u76so3808915uau.3; Thu, 27 Jan 2022 02:12:45 -0800 (PST) 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=y8tFLfG3AkbX5FC2LkFwx+nrAMcVQcoVBJvwDmbMZbE=; b=ghD6eUP5+9xYrVMzM4SXkCmEgS8ZwIVwvqpd0PwSB9TGpw4BHRw/Jve3AYZi02vDXP 1jVif9W4JdGBcJrQ/TaIpQcuyx4zFPFiJEEL8dgPxSpu/fMR/KL6EdOBuNgO5iDN0cir zkXbfjsgAnTFBqHMo3hB2T5Hem76Mm8/nxSlknwtOVDcncYH6iQ0F3zbZ6BbK2RjLHhq Zdw/PHSFNC9uJj+2y765ba13C/CDKgBLOqyNPTXyb6zelrNczKUCGbbF04QMoZPyuwz9 syNs97JXqd00tKqWp5RTice7AimkGSyimiOlRJ5stECQorkpatm+ps3puic0/LWRFC8G WXIw== X-Gm-Message-State: AOAM530hPE4PpTYhPUTZQPC864PFvtuGxg4HhdXOLT/e5gaSCjWLYoKG F7nIMyJUPbF58rUI+dfoIrDZhMqLA74Jkw== X-Received: by 2002:a67:b003:: with SMTP id z3mr1292949vse.64.1643278365124; Thu, 27 Jan 2022 02:12:45 -0800 (PST) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com. [209.85.222.48]) by smtp.gmail.com with ESMTPSA id z27sm489554vsf.24.2022.01.27.02.12.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 02:12:44 -0800 (PST) Received: by mail-ua1-f48.google.com with SMTP id y4so3825165uad.1; Thu, 27 Jan 2022 02:12:44 -0800 (PST) X-Received: by 2002:ab0:6cf9:: with SMTP id l25mr1377097uai.122.1643278364573; Thu, 27 Jan 2022 02:12:44 -0800 (PST) MIME-Version: 1.0 References: <20220121014117.21248-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220121014117.21248-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 27 Jan 2022 11:12:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] soc: renesas: Add support for reading product revision for RZ/G2L family To: Lad Prabhakar Cc: Magnus Damm , Linux-Renesas , Linux Kernel Mailing List , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds