Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2216795ybv; Fri, 14 Feb 2020 13:54:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxPiUuqI4xOjILwAxOopxdWo0A4YdawVwYUzGxT3tnx/8ZSZkpQ9i6VLssU9KvZ7I1EY0k/ X-Received: by 2002:aca:cf12:: with SMTP id f18mr3331285oig.81.1581717290532; Fri, 14 Feb 2020 13:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581717290; cv=none; d=google.com; s=arc-20160816; b=SdtWNLBveoWjhXqnRsFjTivfB0exI9GZaXdzkPdmsyOKLkeECwAamHQQyFINeGzwNw 2Tg1Y9wsj3Ph+j4I9hlLLpZJw9EDU6Br0E2EgMyiANdveLauXJNU2HZCMsTLWm2Y+RJc wE9w3CMplHIpNRhNejmWwq4fmEb2c0XkDoXIiCwSciyovYD9mvSvGgPFTyf4psHGui8K TmG6sFohvQU/ooZGQJUvGE+MZyET7SkskX9tIyZ+VxVfGqYBlzOG8QhqK38llYUowiDy cprLoGsGxD8uplSGFTYD3V7Z2kBQw2sPs/qkSWT3ch8ndT2ItTSiq0VxAdy+Ex7V5dTi GYIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PgU8ZFwUSsEf5IXFXUZSmsm5SGb4jl1IfWM4oKMzlY8=; b=k2sTCxz/a9q3lpPGaiHOI8EPBQBfgB2Xa1EFvaEuueEWdMzDEyFEpVuPXzXAaixfnc YzV4IrPxaIunGn6NMz2QTNG8wW4Fkds/PJ+YIm3x0BGJplHS+hfD0NM4xzLF4AElP/C/ MEZODATkS5rmpfM9W0L7df0W2ncLDnsN2Bv9skC6RE15vbFZtdSVmVjuSxKZjHGIr6c0 9/ie4pho+SthhMZIa6Z7TBRFfVPLhQjbn1LSMzloKr5g/HJ0D8MABMgAaVSRn+ubN15U Cu1ObCwYDEfUIc1/TLxJDWFgNc0nlilSWViV8Ti1gvxCGPWHJjPSMzhIfpzpltGA6vI9 61+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K9uY5UhJ; 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 a8si3399776otp.258.2020.02.14.13.54.37; Fri, 14 Feb 2020 13:54:50 -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; dkim=pass header.i=@kernel.org header.s=default header.b=K9uY5UhJ; 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 S1730556AbgBNVy2 (ORCPT + 99 others); Fri, 14 Feb 2020 16:54:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:59314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728911AbgBNVy2 (ORCPT ); Fri, 14 Feb 2020 16:54:28 -0500 Received: from localhost (unknown [65.119.211.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD9152082F; Fri, 14 Feb 2020 21:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581717268; bh=kPEmoqK5kkolXd/XtmxwGBw/rwiGBYbwTOnvH4ZJM78=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K9uY5UhJq9FPMU/mfklwfFYxjFgMVB8LfJWzsjZEa7jR7fr2KONnwjlEf0RA6/iN/ hyy0YWWftJ+6JERE6Sh2iYv5hXT01V62fcOFoznONFgeN8vuquNvlDrTva+TNtpx6C B7GBiR4PSLpHfT0+v5NNkLB1bTkBiZsTW94GoJx0= Date: Fri, 14 Feb 2020 16:40:51 -0500 From: Greg KH To: Linus Walleij Cc: Stephen Rothwell , Grant Likely , Benjamin GAIGNARD , "robh@kernel.org" , Loic PALLARDY , "arnd@arndb.de" , "devicetree@vger.kernel.org" , "system-dt@lists.openampproject.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , "lkml@metux.net" , "linux-imx@nxp.com" , "kernel@pengutronix.de" , "sudeep.holla@arm.com" , "fabio.estevam@nxp.com" , "stefano.stabellini@xilinx.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 2/7] bus: Introduce firewall controller framework Message-ID: <20200214214051.GA4192967@kroah.com> References: <20200128155243.GC3438643@kroah.com> <0dd9dc95-1329-0ad4-d03d-99899ea4f574@st.com> <20200128165712.GA3667596@kroah.com> <62b38576-0e1a-e30e-a954-a8b6a7d8d897@st.com> <20200129095240.GA3852081@kroah.com> <20200129111717.GA3928@sirena.org.uk> <0b109c05-24cf-a1c4-6072-9af8a61f45b2@st.com> <20200131090650.GA2267325@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 14, 2020 at 05:05:07PM +0100, Linus Walleij wrote: > On Fri, Jan 31, 2020 at 10:06 AM Greg KH wrote: > > > Why do people want to abuse the platform bus so much? If a device is on > > a bus that can have such a controller, then it is on a real bus, use it! > > I'm not saying it is a good thing, but the reason why it is (ab)used so > much can be found in: > drivers/of/platform.c > > TL;DR: struct platform_device is the Device McDeviceFace and > platform bus the Bus McBusFace used by the device tree parser since > it is slightly to completely unaware of what devices it is actually > spawning. Yeah, great explaination, and I understand. DT stuff really is ok to be on a platform bus, as that's what almost all of them are. But, when you try to start messing around with things like this "firewall" says it is doing, it's then obvious that this really isn't a DT like thing, but rather you do have a bus involved with a controller so that should be used instead. Or just filter away the DT stuff so that the kernel never even sees those devices, which might just be simplest :) thanks, greg k-h