Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp374800pxf; Thu, 1 Apr 2021 03:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywfpcjEOkOcIhv0JG2Y+jaEt3gnGjcGcIXWRqsvchwodRvqc32r/fLauqC3Wm8vbfhNbGa X-Received: by 2002:aa7:d987:: with SMTP id u7mr8870613eds.326.1617273287739; Thu, 01 Apr 2021 03:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273287; cv=none; d=google.com; s=arc-20160816; b=osvtQfjy1tG9yo8rZ9rrR/wY9xToWBfazmR/T5mG0nsKGrawOFQez1U4pjJdVPrUJv 7x/S42UvE6znSkQZcJp+wVkjFY7doVXBeEpqc3mS8ngflwzQSa2sSDCeQRUtc0AfFMZd U4eCbQkWz77E5xTdbxON4tg5EQrluNX0DucD9I+3F3oK+ZRcmbwen7Hcaqu25k22vxzR g2pQH2lalSJyr5YJvNkHUMHESyUAIQ/V970ZkUOjEdffHKGkqG031Qeqmegm1Ye402fD qyE0/g0mVBeKtV2plIpAps+oI2jUjRwPoVmNIiVJBG4+Skl/aaI5U0CKgcjvtqsNJy6y ktMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ryOnBZG3K1p9WvtrtZ8NfK8Eh9zzzSYqno293JyebwI=; b=uZ7O+VvTCFV7KANtxvzDnbKqVcrx2LZZF1r5sEn9ObHGh/sUA3ZtDeYyjKmIGjqZs8 gDpnd8DQ1CHOPqQ2yVgxy2OI++kYPJFT+UYC3LUIL21n441CSL+cLaLOODlYsnYDOWdu HXmLi9Y6XfreydwM4aQ3YVUd/yld51QG6y3jx8EstvDN8/Q9c4aBfTr2QBU8o7UZF2c4 axLhaAP/7h5gcUZO65ctaUdDcFtJvr2gRTcSrXhF4TnluNXhimNap9CtgUAkxYdVOtHq tY1MtIC2ABSNd6Y0HQMSaM8WjP8KTMV9ezGtX9yJ5cjKCyWLaLQ1f8N7xPaq9he84slQ XggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BTInuR9n; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si3854968edr.228.2021.04.01.03.34.25; Thu, 01 Apr 2021 03:34:47 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=BTInuR9n; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234192AbhDAK2i (ORCPT + 99 others); Thu, 1 Apr 2021 06:28:38 -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: linux-kernel@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 > > [...]