Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4046299yba; Tue, 23 Apr 2019 14:11:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqweOa9LhPZ8jLcQrnCgiyCK3kLL+v03GF9Ok7b5Dr7WqmxtCqWth/rE+8eex8iyHapci/rl X-Received: by 2002:a17:902:7b8e:: with SMTP id w14mr10219206pll.202.1556053881282; Tue, 23 Apr 2019 14:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556053881; cv=none; d=google.com; s=arc-20160816; b=dBpPPC7p/hoX7/TcV4V4LFxrxHoQGb8tm4WQjIPTnYpaxYEDDbpy3HVoY3oYxM8QGI wZ1NYTPWR4pqbOpuGY/vGqNM0ytXcQ4MZFOttVmend2K4GkkbxYxqG/+Ynqllauh6djO 5tYX3otwjN/t2GVwVZ6Lno8ze8k3OyR/tLsavfCZyN9ML9ZhQcY4nlDMx/8i3Ea/4vqy f9Gqn2HMec/Zfx5ca7Jb0WTiXP3n78ypJem8g+lUxj56pUtmVhmbxSX1KaaL2IfFsA4H IbUQpZ/z8D94dOAAJCfdf9AzpPR7WjIxxkCBy9cLX4qiYThMVioF53QJHo9x8AdlbX+C hvxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2wCa3nFyIHBkX+W7L08Ddl9/YQMFyOa83nnq8nn7FoI=; b=xIXtiry7Lia8AhYSmnITbTiS+IKQOwg/seAATW7Pfsr8UjcycMtLgaCHh4jThwkF5E zfJENF7jT31bPSFN3SfH49nJcRdcr0L535/CPLjIc1fHeE/BBCilVUo8U6Uq0NZchWaG LdUy5Htma86tV8b3T494KMhnOI2D7wD1T8pJ7t0p6Tw01MbuTlclqOKLVSPywV8DrGjx zCzeSlnC3/WH8kuj7qVW6qTesYuF/EDqVHE8/HLoGraIfYjYrR5e69l0M+unHazG0s0E tNQKGLSVwWoWVrnAvRi/fuu5rULP2ckn/+hking1sD1FViqlaek94PbdKiXfCqKMwe5I Ik6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=N2hDZE6q; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si16888218pfr.272.2019.04.23.14.11.06; Tue, 23 Apr 2019 14:11:21 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=N2hDZE6q; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbfDWVJ7 (ORCPT + 99 others); Tue, 23 Apr 2019 17:09:59 -0400 Received: from casper.infradead.org ([85.118.1.10]:38646 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfDWVJ7 (ORCPT ); Tue, 23 Apr 2019 17:09:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2wCa3nFyIHBkX+W7L08Ddl9/YQMFyOa83nnq8nn7FoI=; b=N2hDZE6qZ5seHNnDs2TmZ6DEwF sapUo2Ma+lbARcWApPNvphi0Kp+5CJ4vZ4obzBQhef/uJTpi7YWjwdZDKYPzLCxyF0y7vTZxxlj4T arPi4FZm1vFa39rVgoYEVK3U53KRUGszkCl18oY8DXYQTkHMdZJQ3K9FD393XK1mDuYPv8j8wAH+S OTRIlrp+do3u+T7UlcsCWUgYXea7GoExQ3u+fyGEyHEOJiuVNgKJ/jqh4Ou2ui3hPc4fZE+vZdU6U C06x/wrfk1xsJJD4X5jcUVCBhaHbpyWcGTX5IEhQtinPda1tvY8qZsMkqidbsWMb5xKIz3F/JH+1l PcbaCB0g==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJ2fq-0003nY-Po; Tue, 23 Apr 2019 21:09:55 +0000 Date: Tue, 23 Apr 2019 18:09:48 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , Bjorn Helgaas , rjw@rjwysocki.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 12/63] Documentation: ACPI: move i2c-muxes.txt to firmware-guide/acpi and convert to reST Message-ID: <20190423180948.326fd3d8@coco.lan> In-Reply-To: <20190423162932.21428-13-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-13-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 24 Apr 2019 00:28:41 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du For the conversion itself: Reviewed-by: Mauro Carvalho Chehab > --- > Documentation/acpi/i2c-muxes.txt | 58 ------------------ > .../firmware-guide/acpi/i2c-muxes.rst | 61 +++++++++++++++++++ > Documentation/firmware-guide/acpi/index.rst | 3 +- > 3 files changed, 63 insertions(+), 59 deletions(-) > delete mode 100644 Documentation/acpi/i2c-muxes.txt > create mode 100644 Documentation/firmware-guide/acpi/i2c-muxes.rst > > diff --git a/Documentation/acpi/i2c-muxes.txt b/Documentation/acpi/i2c-muxes.txt > deleted file mode 100644 > index 9fcc4f0b885e..000000000000 > --- a/Documentation/acpi/i2c-muxes.txt > +++ /dev/null > @@ -1,58 +0,0 @@ > -ACPI I2C Muxes > --------------- > - > -Describing an I2C device hierarchy that includes I2C muxes requires an ACPI > -Device () scope per mux channel. > - > -Consider this topology: > - > -+------+ +------+ > -| SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50) > -| | | 0x70 |--CH01--> i2c client B (0x50) > -+------+ +------+ > - > -which corresponds to the following ASL: > - > -Device (SMB1) > -{ > - Name (_HID, ...) > - Device (MUX0) > - { > - Name (_HID, ...) > - Name (_CRS, ResourceTemplate () { > - I2cSerialBus (0x70, ControllerInitiated, I2C_SPEED, > - AddressingMode7Bit, "^SMB1", 0x00, > - ResourceConsumer,,) > - } > - > - Device (CH00) > - { > - Name (_ADR, 0) > - > - Device (CLIA) > - { > - Name (_HID, ...) > - Name (_CRS, ResourceTemplate () { > - I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, > - AddressingMode7Bit, "^CH00", 0x00, > - ResourceConsumer,,) > - } > - } > - } > - > - Device (CH01) > - { > - Name (_ADR, 1) > - > - Device (CLIB) > - { > - Name (_HID, ...) > - Name (_CRS, ResourceTemplate () { > - I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, > - AddressingMode7Bit, "^CH01", 0x00, > - ResourceConsumer,,) > - } > - } > - } > - } > -} > diff --git a/Documentation/firmware-guide/acpi/i2c-muxes.rst b/Documentation/firmware-guide/acpi/i2c-muxes.rst > new file mode 100644 > index 000000000000..3a8997ccd7c4 > --- /dev/null > +++ b/Documentation/firmware-guide/acpi/i2c-muxes.rst > @@ -0,0 +1,61 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +============== > +ACPI I2C Muxes > +============== > + > +Describing an I2C device hierarchy that includes I2C muxes requires an ACPI > +Device () scope per mux channel. > + > +Consider this topology:: > + > + +------+ +------+ > + | SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50) > + | | | 0x70 |--CH01--> i2c client B (0x50) > + +------+ +------+ > + > +which corresponds to the following ASL:: > + > + Device (SMB1) > + { > + Name (_HID, ...) > + Device (MUX0) > + { > + Name (_HID, ...) > + Name (_CRS, ResourceTemplate () { > + I2cSerialBus (0x70, ControllerInitiated, I2C_SPEED, > + AddressingMode7Bit, "^SMB1", 0x00, > + ResourceConsumer,,) > + } > + > + Device (CH00) > + { > + Name (_ADR, 0) > + > + Device (CLIA) > + { > + Name (_HID, ...) > + Name (_CRS, ResourceTemplate () { > + I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, > + AddressingMode7Bit, "^CH00", 0x00, > + ResourceConsumer,,) > + } > + } > + } > + > + Device (CH01) > + { > + Name (_ADR, 1) > + > + Device (CLIB) > + { > + Name (_HID, ...) > + Name (_CRS, ResourceTemplate () { > + I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, > + AddressingMode7Bit, "^CH01", 0x00, > + ResourceConsumer,,) > + } > + } > + } > + } > + } > diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst > index d1d069b26bbc..1c89888f6ee8 100644 > --- a/Documentation/firmware-guide/acpi/index.rst > +++ b/Documentation/firmware-guide/acpi/index.rst > @@ -12,4 +12,5 @@ ACPI Support > osi > method-customizing > DSD-properties-rules > - gpio-properties > \ No newline at end of file > + gpio-properties > + i2c-muxes Thanks, Mauro