Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2997577ybc; Mon, 18 Nov 2019 07:58:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyaR2P8u4lhqMfO846uWvUAPEP06mZAlu1BGDtzelVyrI3MWXXeWjlBkwik4tiaceFOR5pv X-Received: by 2002:a05:600c:3cc:: with SMTP id z12mr32308588wmd.151.1574092718120; Mon, 18 Nov 2019 07:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574092718; cv=none; d=google.com; s=arc-20160816; b=Pricso9zhz8IfxKVY/ib13hrYE9UgMeZJgH6WuxQ2STYDA5KCLo8f7NNS3B5sMaAUc pYF0fgYBp8t9czhpV3XMazoqsDUU1azkTAgCwcpy2VJRCZJQFAWgyNavmyD3z4VaUOsa tAOT8M2itbDB3xmRIbeWCJROtQGjKI+P+6mll9iYWFTw9g7hj3vj+ieRwd258K6oGOp3 WgIn5lPEL7vFxnJcRrVUCJkCqRJdRB8+a/fbzqISU+joBrUFm0IpseewPskrG6UYDPf+ mNAZ4sD1IEMScugrzjNMbqzO3HuCnm6/9CFmEJgNMngd3qSVIcH1fqrbPOuPZMtO9h9z 2JUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5FqQi+iL/suM5pLcGNK4P0JX4msLJIxKTHkgMLfqR+4=; b=mdryqRk1YaCF0/5WBqzPsTVeFzZUe3eSOJdREQ1+RlgIeg7+HVdF5LePz8eQA8BdCW 8dVEU5p6OzpQoi9Gsbb5AOSblQOcRVMgATZsit4Mq9fVwxRC0C/TNrepsgVBS1yvHwJ3 mjUP9tSPqRM8RqXURqI5vPDqBS9uB1Hul2GQo6H8Oww7HnKcyUTZzatiozGseKeHmq15 avbg739Xp0rJ1YIUsjgyeNKH+lvTRCbZoZ648XUCOlm1t+KBIjfu3HKb97L1utLxXlOI 3XhaMRqUp5pssMpwgLbJTiGMBL8bEcfDQM0+31twAeh8rf3IEqo+leqK5c4/aSU664r5 GgXA== 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 o28si13545199edc.353.2019.11.18.07.58.13; Mon, 18 Nov 2019 07:58:38 -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 S1727422AbfKRPzr (ORCPT + 99 others); Mon, 18 Nov 2019 10:55:47 -0500 Received: from muru.com ([72.249.23.125]:42722 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbfKRPzq (ORCPT ); Mon, 18 Nov 2019 10:55:46 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id AC87E80BF; Mon, 18 Nov 2019 15:56:19 +0000 (UTC) Date: Mon, 18 Nov 2019 07:55:39 -0800 From: Tony Lindgren To: Geert Uytterhoeven Cc: Andreas =?utf-8?Q?F=C3=A4rber?= , Neil Armstrong , Greg Kroah-Hartman , Geert Uytterhoeven , linux-realtek-soc@lists.infradead.org, Linus Walleij , Bjorn Andersson , Thierry Reding , Lee Jones , Rob Herring , Kevin Hilman , "Rafael J. Wysocki" , Michal Simek , Jonathan Hunter , NXP Linux Team , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , boot-architecture@lists.linaro.org, Sascha Hauer , Fabio Estevam , "linux-tegra@vger.kernel.org" , "open list:ARM/Amlogic Meson..." , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , Alexander Sverdlin , Linux ARM , Linux Kernel Mailing List , Hartley Sweeten , Pengutronix Kernel Team , Shawn Guo Subject: Re: Sense of soc bus? (was: [PATCH] base: soc: Export soc_device_to_device() helper) Message-ID: <20191118155539.GB35479@atomide.com> References: <586fa37c-6292-aca4-fa7c-73064858afaf@suse.de> <20191111064040.GA3502217@kroah.com> <20191112052347.GA1197504@kroah.com> <20191112072926.isjxfa4ci6akhx56@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Geert Uytterhoeven [191115 15:51]: > On Fri, Nov 15, 2019 at 1:01 PM Andreas Färber wrote: > > Am 15.11.19 um 09:58 schrieb Geert Uytterhoeven: > > > 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? > > We use soc_device_match(), inside kernel drivers. > Exposure through sysfs is a side-effect of using soc_device_register(), > and welcomed, as it allows the user to find out quickly which SoC and > revision is being used. For the omap variants too, we've so far gotten away with early SoC detection for platform code, and then use soc_device_match() in few cases for drivers at probe time if needed. Regards, Tony