From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7813C433DB for ; Sun, 17 Jan 2021 17:16:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF9492222F for ; Sun, 17 Jan 2021 17:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729852AbhAQRQ2 (ORCPT ); Sun, 17 Jan 2021 12:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728181AbhAQRQ1 (ORCPT ); Sun, 17 Jan 2021 12:16:27 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95218C061573 for ; Sun, 17 Jan 2021 09:15:46 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id e7so15804440ljg.10 for ; Sun, 17 Jan 2021 09:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xRrXXlB0SlhsMGxZpyUDf3iYlu9jA32sbaiCZc/Xe2k=; b=VvSU+ft+YquGegQ3KmUxVPGnYCjDQoGgpcQ3zjjVcUBi1+Z9emAIVks+mqbNME1Rwz 7teHdkeKNxWLCkO4+ilGbZntDAVqHDAMqX/hR6695fXUautQKJa4cPOjjD79gDKFQEpj ft2laAKIQVj3gm4u/o4sET4wywLAsR6Uqkbuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xRrXXlB0SlhsMGxZpyUDf3iYlu9jA32sbaiCZc/Xe2k=; b=UvBx+EycX/rSijQjoG/wbjMxTkujc6psgAwrbixJfQy0WJzYQHBgFJvWToQOHHZ4YP cPekA2GW5wrQcGSt7kqzObMACdgwucGR1iPjJJBf8h+pn0oWzhXQv+15e/z7ZDQnm+3m 3bgzeyHzrkQ977Mr2MzA+sea2V26gbsiSGPjLFRFC2eYmxuSmkePecVvRC42Vqal9sz1 wEvOe/vOUuiz4PaHwwdqsGMHJHQ3X/q3WASyqwSLVYAGnfKbYgpDG5lgLxV2EBGEKs8P a5kQ7vAM6Wk217/UEj06pEvkzpqGGOZwcMt1kK7J8FTxyAz+ut82gWPFh/oBPUcjHsdL V1EQ== X-Gm-Message-State: AOAM531EgF1ifi+ep+YEGeKjxWD5U8zkD6a7rpAajHXYdogg7JAENJ+m c+UuVkfHGSYvtr7WS4eqPjJzcTEfpqNDeQ== X-Google-Smtp-Source: ABdhPJyMh9fxRbGIOu/5ZLu/Ojh0MzG/L37VVM3IPLGJ27A3v8DURbRDr5setOOmjWChJ2t7dGdt5A== X-Received: by 2002:a2e:9153:: with SMTP id q19mr8742791ljg.173.1610903744913; Sun, 17 Jan 2021 09:15:44 -0800 (PST) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id v7sm1621019lfg.9.2021.01.17.09.15.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jan 2021 09:15:43 -0800 (PST) Received: by mail-lj1-f181.google.com with SMTP id f11so15807749ljm.8 for ; Sun, 17 Jan 2021 09:15:43 -0800 (PST) X-Received: by 2002:a2e:a40b:: with SMTP id p11mr8809120ljn.315.1610903742948; Sun, 17 Jan 2021 09:15:42 -0800 (PST) MIME-Version: 1.0 References: <20201118234025.376412-1-evgreen@chromium.org> <20201118153951.RESEND.v3.2.Idef164c23d326f5e5edecfc5d3eb2a68fcf18be1@changeid> <20210117115426.GH1983@ninjato> In-Reply-To: <20210117115426.GH1983@ninjato> From: Evan Green Date: Sun, 17 Jan 2021 09:15:06 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v3 2/2] i2c: i2c-mux-gpio: Enable this driver in ACPI land To: Wolfram Sang Cc: Peter Rosin , Andy Shevchenko , Randy Dunlap , Peter Korsgaard , linux-i2c , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org On Sun, Jan 17, 2021 at 3:54 AM Wolfram Sang wrote: > > On Wed, Nov 18, 2020 at 03:40:25PM -0800, Evan Green wrote: > > Enable i2c-mux-gpio devices to be defined via ACPI. The idle-state > > property translates directly to a fwnode_property_*() call. The child > > reg property translates naturally into _ADR in ACPI. > > > > The i2c-parent binding is a relic from the days when the bindings > > dictated that all direct children of an I2C controller had to be I2C > > devices. These days that's no longer required. The i2c-mux can sit as a > > direct child of its parent controller, which is where it makes the most > > sense from a hardware description perspective. For the ACPI > > implementation we'll assume that's always how the i2c-mux-gpio is > > instantiated. > > > > Signed-off-by: Evan Green > > Applied to for-next, thanks! The code Andy mentioned can still be > refactored later if new ACPI helpers appear in the future. Thanks Wolfram and Peter!