Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp558097ybl; Tue, 28 Jan 2020 07:53:54 -0800 (PST) X-Google-Smtp-Source: APXvYqw8fm74SsPCSD0KFnL6YNN4KlQy1o1vdBkgdFsLdLu9ZQvt/d5grDFaM1/lTcZL5DIZD2FA X-Received: by 2002:a05:6830:184:: with SMTP id q4mr17265836ota.232.1580226834280; Tue, 28 Jan 2020 07:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580226834; cv=none; d=google.com; s=arc-20160816; b=htHYFWMvELmUOXmbn3URtMewVqEUYh+v3bUmafPw4k/g56FM+suV8MZL5UiEcO39TQ ipcRl77UF5uaPXW5v9yqTgG2OnxcyY9Jf13cN7ngk6uP1Vfrd3po/r/kzjFYQYDk5VCG FcUf5GeUqqHKj8f+b/nDI9NrxH+8hZFO9aPQ3wD1GvvMa6d77NcZhx4dWKqMh7ZXXgnO tCpZTEVpz6zmZjHLZhFOg/w/RAmVCJGuads0HK4HXvaNq2veW/l6F90uGHmB8VdkUg7m DhPnrbiYdmGSTTUNu1+AIn/986Z9Yvh3LTJiP9s57vdK/P+ZCWdAXV7zF//ubIcvy5qT O5+A== 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=Hcmg4eBsjRDCXhOOcNwcVLSR9Yp2/AE22amUnxY3QAk=; b=VZnPieGRXPWaGmTSu8Ut/g1kgRkkWLCzc2TZ4u/1sO8LLtoUdrI5Ayd7k+CXXeZPvN HKCxkduJqr6Ab+Zx8zQyKU4vx7WU7Oqzi1gInqMgFmHbxxMIy7IPvXy1ZQvkM95X8DCP siS1kF4BwjL6jgJdIJqaBLfN/odEaK/PNxbiP/EDzlAhYqV1ZfWlQkM8AMyUTsrmGACe +am7TpNkuV0VnE4geT6Nyz45LrKrZAd+CpvIX1i8RCE93DBKzwBO+wNgj1LJ2Q5EeIqk 28ktdKBStojt7pXGlURGB3iuZO6YTVMU7Q71+p1KPJ5kXP+RFzY59WpxTZauIC+4Shrd 4GIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="D4zqX/9t"; 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 i78si5456687oib.1.2020.01.28.07.53.41; Tue, 28 Jan 2020 07:53:54 -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="D4zqX/9t"; 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 S1726829AbgA1Pwr (ORCPT + 99 others); Tue, 28 Jan 2020 10:52:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:41908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbgA1Pwq (ORCPT ); Tue, 28 Jan 2020 10:52:46 -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 51C9C21739; Tue, 28 Jan 2020 15:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580226765; bh=RRwCxgpLdHkrA1x1Cq1vksuhcqtVADvwrAno3KEpW8s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D4zqX/9twXacyeGJunZmmr41v53JOZvXG0C8CuKm1TOkkPn5q4goYdWIusJrk6JoE eVpbyyjBJErpsGSbVYJ1E8dG5A37CLUHF1TGV1mHu9upJjkwLuOVwagOKh+P+SrMwG BAudZwrf6V2YFadLZFwf+DD/9NUHpd04cUU+cypI= Date: Tue, 28 Jan 2020 16:52:43 +0100 From: Greg KH To: Benjamin Gaignard Cc: broonie@kernel.org, robh@kernel.org, arnd@arndb.de, shawnguo@kernel.org, s.hauer@pengutronix.de, fabio.estevam@nxp.com, sudeep.holla@arm.com, lkml@metux.net, loic.pallardy@st.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, system-dt@lists.openampproject.org, stefano.stabellini@xilinx.com Subject: Re: [PATCH v2 2/7] bus: Introduce firewall controller framework Message-ID: <20200128155243.GC3438643@kroah.com> References: <20200128153806.7780-1-benjamin.gaignard@st.com> <20200128153806.7780-3-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200128153806.7780-3-benjamin.gaignard@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 04:38:01PM +0100, Benjamin Gaignard wrote: > The goal of this framework is to offer an interface for the > hardware blocks controlling bus accesses rights. > > Bus firewall controllers are typically used to control if a > hardware block can perform read or write operations on bus. So put this in the bus-specific code that controls the bus that these devices live on. Why put it in the driver core when this is only on one "bus" (i.e. the catch-all-and-a-bag-of-chips platform bus)? And really, this should just be a totally new bus type, right? And any devices on this bus should be changed to be on this new bus, and the drivers changed to support them, instead of trying to overload the platform bus with more stuff. thanks, greg k-h