Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp123693pxm; Tue, 22 Feb 2022 18:30:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzjXgxxyNZNL6NltCqm3BdXYTQ0eoa7l8EJwTB+1gnFvf5aJlwGAZh3ByDmWBc+snO4DjI X-Received: by 2002:a17:906:aed4:b0:6ba:6d27:ac7 with SMTP id me20-20020a170906aed400b006ba6d270ac7mr21729899ejb.33.1645583430735; Tue, 22 Feb 2022 18:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645583430; cv=none; d=google.com; s=arc-20160816; b=CuiQyiRojq6UVwbTW2y5Jvy+e2Up8j3uFD1nRS5tUvE2tpCBGXQ8K1PzWPdq8Al//R JpSWsllfAoJy66FH5xVXAN+G3InYjoOByRYuKJns1m6RSrpLOzZi2efDuVTyTwmctcI3 opvBTRNTkp+WugUVnFwvkvt3IzRUyGwaDz/xf4mFCQEnpKOnTiJia0l8fHX0T6DxhMmt DYY6rcgeUl2OMzOgiqXBobk+GtXlx54qCGuj6PlRjxWPBy+YJIaLlLiJENR0J2zrf9Si sgYVyAcwRqr69EyYqzeW/jLsiEOiel9lnfBez4KdS55/cacTFxU/ICbpx7GPMi4kjhFv xEFg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FtuFfP7bf62RQnyfTs94b0RuonH4es1pIRqKW4UPqno=; b=eZ9UtEFa9M9HDL1nKZ25NarUhil1faCb8hXYPY2lnWy5rcetM3L6LMwslOkiLtCGIQ wV9EOL/3/+MPL+PBptVGX/3a1QKihQGKEGQLyIjOFjEs0tREH36M6nui3iq8QDayMutB uw3tdyU0cvOP2gvH67zpEmlZ9mxT1fPcbxxzerNrpqJ/eSzXd95yg9zBrj8ao6VwG7O3 /1DumrSQFFKV6hw//RUw0XeSu2hKXveFzk2tctjwoYH0vxygca8XpmwUTo3xbnrWV71E GvbdN5jmsxf0V2GpWyPVM7ZzL3JH8+rxortOaZeukTTRyfqq3wSTwtUcRJBmiFCfPpzC J1uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KCS9BQw4; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c69si488149edf.322.2022.02.22.18.30.07; Tue, 22 Feb 2022 18:30:30 -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=@bootlin.com header.s=gm1 header.b=KCS9BQw4; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235470AbiBVUbj (ORCPT + 99 others); Tue, 22 Feb 2022 15:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbiBVUbh (ORCPT ); Tue, 22 Feb 2022 15:31:37 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D1613CEFF for ; Tue, 22 Feb 2022 12:31:10 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 25F99C0006; Tue, 22 Feb 2022 20:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1645561868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FtuFfP7bf62RQnyfTs94b0RuonH4es1pIRqKW4UPqno=; b=KCS9BQw4EXM0r3F6Qy8PQwVvNQ7vVbSfScLUDd5qlj9L6xFHzNeMytBYDdtUjLp+NLf/7D eB8BUUvhuSGyVXvKMYFZ4QS3U3H8wlPwnad/Rdab87Tm7xHx7TpJsbvZsqPsDHwT/txt2Q 8ke/vmD66aEzhetPa3uJ3NfiVR0rzVGNBjb9Vnv2x7dwHTQjMZbe0G7uQevL2YGrwzMl8J K/467CqeyGs/wzEZ0k3pq+5VH7LiKpGrLu9YgDIVwkExgTBBWGbxi6emu/tEfmHRLVobpM ovVFE8ZsZ+mQfrW3VnYXDnwA189qF6QshKy8Ou/MaMCoTs2dxbbwSSPSmWmxcQ== Date: Tue, 22 Feb 2022 21:31:03 +0100 From: Alexandre Belloni To: Andrew Lunn Cc: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Wolfram Sang , Peter Rosin , Russell King , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni Subject: Re: [RFC 09/10] i2c: mux: add support for fwnode Message-ID: References: <20220221162652.103834-1-clement.leger@bootlin.com> <20220221162652.103834-10-clement.leger@bootlin.com> <20220222095325.52419021@fixe.home> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 22/02/2022 11:57:39+0100, Andrew Lunn wrote: > On Tue, Feb 22, 2022 at 09:53:25AM +0100, Cl?ment L?ger wrote: > > Le Mon, 21 Feb 2022 19:55:25 +0200, > > Andy Shevchenko a ?crit : > > > > > On Mon, Feb 21, 2022 at 05:26:51PM +0100, Cl?ment L?ger wrote: > > > > Modify i2c_mux_add_adapter() to use with fwnode API to allow creating > > > > mux adapters with fwnode based devices. This allows to have a node > > > > independent support for i2c muxes. > > > > > > I^2C muxes have their own description for DT and ACPI platforms, I'm not sure > > > swnode should be used here at all. Just upload a corresponding SSDT overlay or > > > DT overlay depending on the platform. Can it be achieved? > > > > > > > Problem is that this PCIe card can be plugged either in a X86 platform > > using ACPI or on a ARM one with device-tree. So it means I should have > > two "identical" descriptions for each platforms. > > ACPI != DT. > > I know people like stuffing DT properties into ACPI tables, when ACPI > does not have a binding. But in this case, there is a well defined > ACPI mechanism for I2C muxes. You cannot ignore it because it is > different to DT. So you need to handle the muxes in both the ACPI way > and the DT way. > > For other parts of what you are doing, you might be able to get away > by just stuffing DT properties into ACPI tables. But that is not for > me to decide, that is up to the ACPI maintainers. > What I'm wondering is why you would have to stuff anything in ACPI when plugging any PCIe card in a PC. Wouldn't that be a first? I don't have to do so when plugging an Intel network card, I don't expect to have to do it when plugging any other network card... -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com