Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3725308ybv; Sun, 16 Feb 2020 04:20:51 -0800 (PST) X-Google-Smtp-Source: APXvYqz35rvbpwnxPbx8aV58S2sDSG9wJHN8fw5R8P07/kbj7IzA1FXMclmBH+jM2iRlIHO5dJSk X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr9312584otq.79.1581855651655; Sun, 16 Feb 2020 04:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581855651; cv=none; d=google.com; s=arc-20160816; b=pUajiBOQppVOjm07NqWs0fyhyC5xYEhNu+TOst4z9FtweOcBnvPr8kIetZ8Mt69bhh lzGG7j95YQ1szNO1Em+reTnZWjkqw+uuWMxCBynh63nmtQOMJXm91wGAjGg4+AGZ1xd5 Y/PHfjIKrtIvUegl2OPo7+n3TUdCa1z8czlFaNm3vAa5DdmNHDy2Ayqy57diKX/BXKvu 78klBGbew2uq8f4pw/idlYfW9DqnyPCUud3bKj91eTA3KGYWQG+M42BVOdMOQBrEMuwg Gwt6/IX4vnvsyBiO63aCG69gU1WMRzTYKxN0fD1fZSJvPHZFL6lceN7g4sQ7Jz3rUcwV cLnQ== 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=QvQw+YAD3edLUi3vpER4bBYG92ThxAyPwECTWNoEkc8=; b=AuWCbxI5WOoh17YfrjDz/Taium1ds4/RfiL8TBuDcfNdPqe1porB5JOakjv7vsc48Z upikA7IWkXSGM8dGgYT5asqvQ52MSfLP6osMArY8iz8MNkie7Dkp4Oe62lAvbxWgsLM/ xObvtRq1MjcTePSdA3PY0fBA1WZw90t0sWtMKu5xdd2LfijGfZt8U7CZ181T7uHI0jLQ bgOk/eYEdCnmUPs0+0IzECrfo2bDFpfbN7DTqDWYhI9PhbajQNru9GWpVJhcp7gAzscn sq/cIQg+irr/59vO0kmvGpAfjTD+maF0y0LnqivDfDpb786FOL+zs8ob5bfFxchJwVM5 /www== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rLB4k6d5; 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 13si5216281oiy.28.2020.02.16.04.20.38; Sun, 16 Feb 2020 04:20:51 -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=rLB4k6d5; 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 S1728130AbgBPMUT (ORCPT + 99 others); Sun, 16 Feb 2020 07:20:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:54612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgBPMUT (ORCPT ); Sun, 16 Feb 2020 07:20:19 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C246E2084E; Sun, 16 Feb 2020 12:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581855618; bh=PHE098dmEFXu6oYKRN+BUb6ZDWnNqCSxtkdjvGF2pTo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rLB4k6d5m716NQ/OnptZFHwuDttAwPI5QM5iXZt/PFVxpU9IuVtZr1BpdVnH+/2S/ fCGJbSX4O4LkA5jjwca8DDCoj4/edZOOOW9vL2KcChpkh/W9ahYgUb8Pf7bhDifY3l GzmT3SHkFhHgNH3Q7kf3XpjCLyXkZjJ1LKc+bHhw= Date: Sun, 16 Feb 2020 08:21:11 +0100 From: Greg KH To: Benjamin GAIGNARD Cc: Linus Walleij , Stephen Rothwell , Grant Likely , "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: <20200216072111.GA14598@kroah.com> References: <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> <20200214214051.GA4192967@kroah.com> <409eb745-aab2-86a7-bd3a-9e8e05bed057@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <409eb745-aab2-86a7-bd3a-9e8e05bed057@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 15, 2020 at 12:41:07PM +0000, Benjamin GAIGNARD wrote: > > On 2/14/20 10:40 PM, Greg KH wrote: > > 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. > > Ok but how put in place a new bus while keeping the devices on platform > bus to avoid changing all the drivers ? You don't, you put them all on your real bus, as that is what you now have. > > Or just filter away the DT stuff so that the kernel never even sees > > those devices, which might just be simplest :) > > yes but we lost the possibility to change the firewall configuration at > run time. I do expect to be able to describe in the DT firewall configuration > and to use them at run time. That could allow, for example, to handover > a HW block to the coprocessor when the main core is going to be suspended > to save power. Then use a real bus :) thanks, greg k-h