Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp415760ybl; Fri, 31 Jan 2020 01:08:09 -0800 (PST) X-Google-Smtp-Source: APXvYqw5m16ejz2OeinnkP8HTR0K9fJCsHqwDcwwFRbz0gK8Hqg8qMmo4bElLQawxoCnwNpc5xnt X-Received: by 2002:a05:6830:20d3:: with SMTP id z19mr6380706otq.330.1580461689386; Fri, 31 Jan 2020 01:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580461689; cv=none; d=google.com; s=arc-20160816; b=nMpsoqShbgpzBlFOQrMpjeKTgnS1Qs6v5npgQGj1I4tNBd1rap8FHzY27JXVLxhMGU 2Hezmd4X6Pzi93BSU9YiFqtCnYC/R9GrU5Y940o/xfJaxPTqIbCbA/t/i7DdyY1t5z4m WWjv3tY3oSqalA/W2Gq8cAztmJZMioEdz7e//aL8a7Xz6iexoe+TyLHLylzfD0zicSgS BRFLbqeCU/BRDPwCerKo7dCXUR3rjPUPKAfEXXt7aSrlbWgWHHSJLGcTIaO3W0ouu3z/ UdbRyR3D6aeXGvZpe5BAPjwEKXDITs9uBCJHYjir7bEqA339RwkLk04Sc7MvX5MFzLSl c4Lg== 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=3rksOXLYehKuzsEQHf27EAKYHYRcESVUH8EH5E1EQ9k=; b=mBgMwJYsoRnPJiVWRlUomMXOSfNAtOMj4efPmnfRv/TLGDSWIBtNWbdQgioHvtTh7/ 5IW/5MRzG0+xlgl91C2hVGFHYrA3GNtVoXYydp5B1SzaY56WpmmWTk2ZW3TKWntv02ZZ exkXqIwq85veKUMYQBons9cQi+3G8HhLriEy4VQuhJBFJNqr5++kycp1NAOkMMmLrN22 Y6QEmN9MEler6TWkVf0a2YCYXk+XgerfKx4zmJhTIe6oFQSKFntiPLcS53V6guMZcAuC QBP4NpCAuM8JCDBe/rV1Lmoxgs2MshPGCKWlnMILWtRrCUyf862AutpvW0Getaq649hH s9dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y0OJFeMQ; 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 e15si4134648otq.237.2020.01.31.01.07.56; Fri, 31 Jan 2020 01:08:09 -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=y0OJFeMQ; 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 S1728207AbgAaJGx (ORCPT + 99 others); Fri, 31 Jan 2020 04:06:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:44158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728151AbgAaJGx (ORCPT ); Fri, 31 Jan 2020 04:06:53 -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 551E5206F0; Fri, 31 Jan 2020 09:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580461612; bh=V7vDxMmmNX8/A1ufnjJg7tEfNXHbzelUW1ofiI0bxCg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y0OJFeMQhpY0sXS4zKX09ro+1I0G5B1zntn688rrb6fejMrX5MpTjefojd56PxR47 Cw8hOA8PzmnyJwKYIJsmrolmv4wa4yXRi1RiuZB+V1u8IvySYxMHUYNUwqG+E6s6vt txWo1RkgBOlq4TGaf3Vn9xq5d6tPdnJj/B5jv60c= Date: Fri, 31 Jan 2020 10:06:50 +0100 From: Greg KH To: Benjamin GAIGNARD Cc: Linus Walleij , "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: <20200131090650.GA2267325@kroah.com> References: <20200128153806.7780-1-benjamin.gaignard@st.com> <20200128153806.7780-3-benjamin.gaignard@st.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b109c05-24cf-a1c4-6072-9af8a61f45b2@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 08:37:27AM +0000, Benjamin GAIGNARD wrote: > > On 1/29/20 12:17 PM, Mark Brown wrote: > > On Wed, Jan 29, 2020 at 10:52:40AM +0100, Greg KH wrote: > > > >> It just needs to be part of the bus logic for the specific bus that this > >> "firewall" is on. Just like we do the same thing for USB or thunderbolt > >> devices. Put this in the bus-specific code please. > > I'd expect that this is going to affect at least platform and AMBA > > buses. > > Correct me if I'm wrong but creating a new type of bus would mean > that all the drivers living on this bus must be changed to register > themselves on this bus ? Yes. > Or does a solution exist to let them live on the platform bus and call > firewalled bus before been probed ? 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! > All the impacted drivers could work on the existing bus with or without > the firewall so I don't want to break break what? > > that. Odd line-break :) Just register the driver on both busses, no big deal. Stop abusing the platform bus code for things that it is not for. thanks, greg k-h