Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4395544ybc; Fri, 15 Nov 2019 04:05:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxSA2eT6ZUhyvKy8L+a/oBdeDeEB93tosF2qr10R+sQBCg7ELzoaaaN9UxdQN8PKfkHbnlT X-Received: by 2002:a2e:9905:: with SMTP id v5mr11049598lji.213.1573819508622; Fri, 15 Nov 2019 04:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573819508; cv=none; d=google.com; s=arc-20160816; b=ZsCP3ydtfoXMvwqmdhYmTaW272i7AvNof0WiGttOZd4GAKVvKsKrke0RyVQD7lT7rG ijDYEAcQHYuHoNdPwRsqezG8REmjUdsGPX1kQIcci1GD4/KyQJO4+zbqKlO/Pmf39GgI M2ZbA8A8E/SIGbLpHjT7Cded4goDWkSLZAosWPGpsTEf5IVR3rnc7AZ2814a8H8vR1WE sLwJ1UZ2y7IZFTGMSdxtdYRIe1Gnm5rU+h4O4tTZnvERMTHAlDfra6zsA7Nqpk75u6cj /ZobLkS5EtTHiODU3zZuNETpDQR/YVK1lCCO+ck8f6qqCKeTwCfcA5AM4rW7Wh1ZLbs8 ozpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=uo6ljAkJdRKklRwYaazIFl87p//QtuCP8yiF7c4uU04=; b=bTuBd3ZNCOfD6EOnoHN1iB+89VxHMcoIKrUxrGlBpEbQ3mDA+LJcfVYTnMAsbjgCUN EEJDoYy0gspHQuneVRrOOmkKA8u+82rACRCPtAC4JLGC3MCKE7MgWT5Ift85kZp4spKh PU/spYxCMKJlAcGfKiDAEIqw63RKPBKDjGsZUPYHvOKS/3cf2riMyfkGrX86S2RuALYD ZESY3jUGugYidDsIpQQptF49NHHZVs2+TakEdms0sINH04BwfjMc+TsRph6mELRwcElQ 9gjR1DF2wvaZftcErV5pReANY35RsBIy8iDc2GG5CBRluNFWWcBwEnfkii0jE4sdfSX4 iI3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si5416690ejb.341.2019.11.15.04.04.42; Fri, 15 Nov 2019 04:05:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbfKOMBE (ORCPT + 99 others); Fri, 15 Nov 2019 07:01:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:34764 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726983AbfKOMBE (ORCPT ); Fri, 15 Nov 2019 07:01:04 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 17814ACB4; Fri, 15 Nov 2019 12:01:02 +0000 (UTC) Subject: Re: Sense of soc bus? (was: [PATCH] base: soc: Export soc_device_to_device() helper) To: Geert Uytterhoeven Cc: Neil Armstrong , Greg Kroah-Hartman , Geert Uytterhoeven , linux-realtek-soc@lists.infradead.org, Tony Lindgren , Linus Walleij , Bjorn Andersson , Thierry Reding , Lee Jones , Rob Herring , Kevin Hilman , "Rafael J. Wysocki" , Michal Simek , Jonathan Hunter , NXP Linux Team , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , boot-architecture@lists.linaro.org, Sascha Hauer , Fabio Estevam , "linux-tegra@vger.kernel.org" , linux-amlogic@lists.infradead.org, linux-omap@vger.kernel.org, Alexander Sverdlin , Linux ARM , Linux Kernel Mailing List , Hartley Sweeten , Pengutronix Kernel Team , Shawn Guo References: <20191103013645.9856-3-afaerber@suse.de> <20191111045609.7026-1-afaerber@suse.de> <20191111052741.GB3176397@kroah.com> <586fa37c-6292-aca4-fa7c-73064858afaf@suse.de> <20191111064040.GA3502217@kroah.com> <20191112052347.GA1197504@kroah.com> <20191112072926.isjxfa4ci6akhx56@pengutronix.de> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: Date: Fri, 15 Nov 2019 13:00:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, Am 15.11.19 um 09:58 schrieb Geert Uytterhoeven: > On Fri, Nov 15, 2019 at 9:52 AM Neil Armstrong wrote: >> On 12/11/2019 11:47, Andreas Färber wrote: >>> For example, RTD1295 will support LSADC only from revision B00 >>> on (and it's not the first time I'm seeing such things in the industry). >>> So if a user complains, it will be helpful to see that information. >>> >>> Referencing your Amlogic review, with all due respect for its authors, >>> the common framework here just lets that information evaporate into the >>> deeps of sysfs. >> >> Hopefully we never had the case where needed to use the soc info in drivers, >> but now we have one and having such infrastructure already in-place will help. >> >> Renesas platforms makes a extensive usage of the soc info infrastructure to >> figure out plenty of HW parameters at runtime and lower their DT changes. > > We do our best to use it solely for detecting quirks in early SoC revisions. Got a pointer? I fail to immediately understand how sysfs would help drivers (as opposed to userspace) detect quirks: Parsing strings back doesn't sound efficient, and I don't see you exporting any custom APIs in drivers/soc/renesas/renesas-soc.c? Regards, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)