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 X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE454C433ED for ; Thu, 1 Apr 2021 10:29:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8854610EA for ; Thu, 1 Apr 2021 10:29:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234417AbhDAK2g (ORCPT ); Thu, 1 Apr 2021 06:28:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234239AbhDAK1w (ORCPT ); Thu, 1 Apr 2021 06:27:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E779610EA; Thu, 1 Apr 2021 10:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617272843; bh=HQG16RWBrcoedAiIdR5UENpMwcX+yPeQNqIyyoyNUuY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BTInuR9nePUquz2VTIc45uqzI1An1RggwZuVpd3dYxSCD9TpLH5E2yoCwFICX2go5 jsIcScts5zJHO+8RXJbStT3BN60p2r8QyhdefkqYYfmzXYd9QBHzp8tZZfH7Fq04PU YMHbEm4NLTQvHaB5Fnfr+qOQG+n5Q5g322jl4JrVJFyjzRlKBZwcyt1euNA6Waf+Df MBUSS6JdXAyQZuGbCVEkHwAII0UgbbYyMUZbdtW9hG2WulSdgsM/fpbvH+JWJQ6K4I n2OWSVzL1mGaeWxSCJ7AlHxoc4aXXXfwHDjB4DyM0L+2XfgOLeQFFlxT8tNktjdj0T IlLZRR1SDi94A== Date: Thu, 1 Apr 2021 15:57:17 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] Add support for Actions Semi Owl socinfo Message-ID: <20210401102717.GF14052@work> References: <20210401052438.GB14052@work> <20210401094041.GA1993499@BV030612LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210401094041.GA1993499@BV030612LT> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, Apr 01, 2021 at 12:40:41PM +0300, Cristian Ciocaltea wrote: > Hi Mani, > > On Thu, Apr 01, 2021 at 10:54:38AM +0530, Manivannan Sadhasivam wrote: > > On Tue, Mar 30, 2021 at 04:48:15PM +0300, Cristian Ciocaltea wrote: > > > This patchset adds a socinfo driver which provides information about > > > Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, > > > serial_number. > > > > > > Please note the serial number is currently available only for the S500 > > > SoC variant. > > > > > > This has been tested on the S500 SoC based RoseapplePi SBC. > > > > > > > Is this the soc_id provided by the vendor bootloader (uboot)? If so, under > > what basis it provides? I don't think the SoC has the provision for > > soc_id based on HW parameters. > > No, the soc_id is not provided by the bootloader, or at least I couldn't > identify any related implementation. Instead, I provided this via the > driver itself, since I've encountered this approach in some other soc > drivers as well (e.g. imx/soc-imx.c, versatile/soc-integrator.c). > Sorry, I was referring to serial_number. Since your comment says so, can you point to the corresponding code? Thanks, Mani > Thanks, > Cristi > > > Thanks, > > Mani > > [...]