Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbcD2LR5 (ORCPT ); Fri, 29 Apr 2016 07:17:57 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:58356 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081AbcD2LRz (ORCPT ); Fri, 29 Apr 2016 07:17:55 -0400 Date: Fri, 29 Apr 2016 12:17:10 +0100 From: Mark Brown To: Arnd Bergmann Cc: Sagar Dharia , gregkh@linuxfoundation.org, bp@suse.de, poeschel@lemonage.de, treding@nvidia.com, gong.chen@linux.intel.com, andreas.noever@gmail.com, alan@linux.intel.com, mathieu.poirier@linaro.org, daniel@ffwll.ch, jkosina@suse.cz, sharon.dvir1@mail.huji.ac.il, joe@perches.com, davem@davemloft.net, james.hogan@imgtec.com, michael.opdenacker@free-electrons.com, daniel.thompson@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kheitke@audience.com, mlocke@codeaurora.org, agross@codeaurora.org, sheetal.tigadoli@gmail.com, linux-arm-msm@vger.kernel.org Message-ID: <20160429111710.GW3217@sirena.org.uk> References: <2745420.JjpjMPLp2B@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="c2nJM3NjGGrqEmAW" Content-Disposition: inline In-Reply-To: <2745420.JjpjMPLp2B@wuerfel> X-Cookie: Tomorrow, you can be anywhere. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH V5 1/6] SLIMbus: Device management on SLIMbus X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2638 Lines: 60 --c2nJM3NjGGrqEmAW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 28, 2016 at 06:49:23PM +0200, Arnd Bergmann wrote: > On Thursday 28 April 2016 17:39:20 Mark Brown wrote: > > It's not just platforms that use these things though - there's things > > like the SolarFlare NICs where the firmware update mechanism essentially > > involves exposing a SPI flash as part of a PCI device and we just merged > > an ASoC driver for a video card which was reusing some existing IPs and > > chips. > That's of course fine: you essentially have a discoverable bus there, > and if we need something like that, we can always add it later to > any subsystem. No, the issue with those cases is that there are devices on discoverable buses that instantiate non-discoverable buses as part of the discoverable device so the implementation of the discoverable device is in part essentially a board file. > In contrast, the interface in the proposed slimbus subsystem seems > designed for board files, and is in the best case just dead code > that can be removed, or has a risk of being misused e.g. if some > device manufacturer decides to use a board file for this instead > of describing the slimbus slaves in DT. Which can be more of a pain than it should be if the code has been written to assume that all the world is DT. That's the most problematic bit of this meme - I've seen people doing things like duplicating IP drivers inside larger devices because they don't think they're allowed to reuse the IP driver. We can fix this sort of thing up when we notice it but we should also try to avoid people making the mistakes in the first place since it saves everyone a lot of effort. With subsystems and to a lesser extent off SoC drivers we need to be careful about just blindly removing non-DT code and writing things so they're hard to use without DT. Like I say in this case I think the board file stuff is probably never going to get used so it's probably sensible to remove that code but it does need to be thought about. --c2nJM3NjGGrqEmAW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXI0K1AAoJECTWi3JdVIfQ8DkH/0O+Djp+wuhmrpuJPBoJrqK9 G2bIcbLKEdi/nxg3svVdnbbBrPXCAgxGwXm7Rn9DId40Gy4QMRS7GNdDVrNz76Xk UlVHpumphfPBfl2nBTDZXkOtMnIm6QgaD7R8lIiynTfUjtPWL4sYkcf7pPu9BCbG ApvAZMJUWzxGkYksgxfuiq0vHFbU2xzuOi5RMOoCmqkszCGPhofDU0HL0DCoQdvg psUNa43Uql+sCUZ8IEkGyJbkWAeBC3D9+QTDzahG9TGhklfo4+PcEjmuwpRGTj0L WslYplNHeHyZBEW4VsXgxwFy93AYBcBf9vfJHxg0gFAG9tPh43EC8RObqQH6IVA= =PKOC -----END PGP SIGNATURE----- --c2nJM3NjGGrqEmAW--