Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp418387rwj; Thu, 22 Dec 2022 09:18:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXu84H0Q7ZWiNGjSPE2nLL5qyHxlyE3iS6BPP1vN9AYr7pYrWKd2tDyqKaVuCG+IKsyT7Rlz X-Received: by 2002:a05:6a20:1e4b:b0:af:8ff3:fc7b with SMTP id cy11-20020a056a201e4b00b000af8ff3fc7bmr7462768pzb.25.1671729512094; Thu, 22 Dec 2022 09:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671729512; cv=none; d=google.com; s=arc-20160816; b=uaizwtGPd/pJfxQqBiJUgnSaWVoxTYiT1rKoAsgj1+5I/jhBxBzPgbVO6TXEt5lBB5 KiNiOjmkfKtqPvME7RnvxoXGMyv/Fe97mIjZK/MGrha11kW8Jwx3Afy032FF3O/vnYIH 8ubSwg08P5UTQM+WsoK5HL8iUEIH1HJGKpf8POweWZ0mBX4+5MTTSCyHyjOe8K3AMexx h59/D/Zz8xEmdmSobHs0MoVZOa3Sxrtn6qbZuq1lFfBntPx+qQERTJOxFxwrlcGof1Yx Cw1lXSEXuAFzb50FI94Ns1G3LMeoh5iHtmWYGfW5F+BxUBLQ7c8ME3LKcnqjK5gU7IiS RJ1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=d99wBLUq4yQ4eQDQtyjO01+kHuKyie+U+1uevyf9EBU=; b=ihrlxA8xnxKuLXj8QI5JZcR3j7YpvvDH18G4qz2N6Ik/wY4R7tabtSbuYcERqxOqwt 335c5e4XLAv9yh5Py1KoI4b5AuOBmzmiRz7eZfaek1YalqUHv6jQLlwXoo/H37yQ9GFm 8fsD+ew+tJO7tnQOSy9Fp7sbNUNAETc4vkB8Y9/FBHGxVsginwanUd/TvfVpSIl3XKNU SKHzKbNtfWukVO1L41W2e45OnERcc1jE3/jOhK3M0qw3magBhYKm3gKVaykofVOjKyfw hn7jl0ar4PUUJ6XPF8SkgxV0xI15UM1le4YTdCbBLtD9FDW+96kn04EihamI1Q1jYk/L LmjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=53zDqYwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a637a19000000b0047813915b38si1282981pgc.767.2022.12.22.09.18.22; Thu, 22 Dec 2022 09:18:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=53zDqYwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbiLVQge (ORCPT + 68 others); Thu, 22 Dec 2022 11:36:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiLVQgc (ORCPT ); Thu, 22 Dec 2022 11:36:32 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D7827DFC; Thu, 22 Dec 2022 08:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=d99wBLUq4yQ4eQDQtyjO01+kHuKyie+U+1uevyf9EBU=; b=53zDqYwiG4C835IlzVAdpx44nM OfEUQO8pz2dGRMnDvhFA7jIZopgYFjq4LjtPfXL0lkqj4l+T9Cf90HZ+DoMpV6ptk8nihRbGIkrR9 +jeagLNU39thNGwsqHqf158MMvg1Igd8lN+wnMfMRBwdYMT2gIEOpzAH9gNuVrduMZ18=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p8OYQ-000GtY-Ew; Thu, 22 Dec 2022 17:36:22 +0100 Date: Thu, 22 Dec 2022 17:36:22 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Lee Jones , Colin Foster , Alexandre Belloni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: Advice on MFD-style probing of DSA switch SoCs Message-ID: References: <20221222134844.lbzyx5hz7z5n763n@skbuf> <20221222161806.mhqsr2ot64v34al2@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221222161806.mhqsr2ot64v34al2@skbuf> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Maybe the media subsystem has some pointers how to do this. It also > > has complex devices made up from lots of sub devices. > > You mean something like struct v4l2_subdev_ops? This seems like the > precise definition of what I'd like to avoid: a predefined set of > subfunctions decided by the DSA core. > > Or maybe something else? To be honest, I don't know much about the media > subsystem. This is what I saw. Russell King put in some infrastructure where a media 'glue' driver has a list of other drivers which need to probe and register there resources with the kernel before it then becomes active and glues all the parts together. I just know it exists, i've never used it, so i've no idea if it could be useful or not. What i'm really trying to say is that we should look outside of netdev and see if similar problems have been solved somewhere else and all that is needed is some code copying. Andrew