Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1250482
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Dustin Byford <dustin@cumulusnetworks.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 0/1] i2c: acpi: scan ACPI enumerated I2C mux channels |
| Date | Mon, 19 Oct 2015 11:10:01 +0200 |
| Message-ID | <qleC5-8fX-5@gated-at.bofh.it> (permalink) |
| References | <pXazE-1La-5@gated-at.bofh.it> |
| X-Original-To | Wolfram Sang <wsa@the-dreams.de>, Mika Westerberg <mika.westerberg@linux.intel.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cVTDuYpR6VmUH/37JqWlftCjlJdzg6OmfIFcKXbxhv8=; b=YElpBZpItfBnzMIADrLiY7jMdjvKIM4ecwuKazV9Tgg1J8aveMqdS4Sffdg1Jaz4cX 9DG7832ZOrK2UhfkFkGTa5DLtgvKDZCM4uAxgvhIO8xrWn3ZIabziJuylYoHttonzL5H piTj7c10hRQTrc3Q32bbMMFQY9ZyEVQv7M7PQ= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cVTDuYpR6VmUH/37JqWlftCjlJdzg6OmfIFcKXbxhv8=; b=a/AX+EeTANP8eZwuqZRfxp5kTsNDwLhRzcc2HdJWx8yspUm685rYhGtc5aTBjNbiwM X6TEU9J4VXSd1YoQxdBTantQdqz4s9c04WCkNoW/gQGJp/HwWEAnSqMvcysfTd+jETwy DE+XSYZg9pPg88WcXVZ8GjYYJzMKBok0ZOeJ5EyEdd26cRfR7Er7Y3k257uNhKZf021f zlROyuKam1TjLlmhCaCxQJmH4+dO80EJoIa+ZYsT9RKCEiRU07oVD2XWHO1iK89o0a/C UB+f/fUqlYN0ejKXg8lmJSVHNHJi9yKZ3/ZHXE4+BD/NIU74xVtX6FfsJtgaKVIGiJ4c TtRg== |
| X-Gm-Message-State | ALoCoQlJ2mH2+8lhziE+16ecX4PQrilyrsc4tH6VuWSHwACgVihXFe0md6mLdWEtVdzMk/pJu6hS |
| X-Received | by 10.66.252.35 with SMTP id zp3mr33074946pac.43.1445245332815; Mon, 19 Oct 2015 02:02:12 -0700 (PDT) |
| X-Mailer | git-send-email 2.1.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 83 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, andriy.shevchenko@linux.intel.com |
| X-Original-Date | Mon, 19 Oct 2015 02:01:51 -0700 |
| X-Original-Message-ID | <1445245312-6816-1-git-send-email-dustin@cumulusnetworks.com> |
| X-Original-References | <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1250482 |
Show key headers only | View raw
The following patch adds support for describing ACPI enumerated I2C mux ports
like this (added as Documentation/acpi/i2c-muxes.txt):
+------+ +------+
| SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50)
| | | 0x70 |--CH01--> i2c client B (0x50)
+------+ +------+
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,,)
}
}
}
}
}
v2:
- Drop duplicate patch already submitted by Andy Shevchenko (i2c / ACPI:
Rework I2C device scanning)
- Whitespace cleanup suggested by Mika
- Implement a acpi_preset_companion() stub for when CONFIG_ACPI is not set.
- Instead of special casing I2C muxes with regards to enumerating client
devices, make sure adap->dev always has an ACPI companion.
I based this on linux-pm/bleeding-edge, but now it depends on Andy's change
(i2c / ACPI: Rework I2C device scanning) and I don't know where the rest of
his patch set is going. Let me know if there's a more appropriate branch
and I'll be happy to rebase.
Dustin Byford (1):
i2c: add ACPI support for I2C mux ports
Documentation/acpi/i2c-muxes.txt | 58 ++++++++++++++++++++++++++++++++++++++++
drivers/i2c/i2c-core.c | 14 ++++++++--
drivers/i2c/i2c-mux.c | 8 ++++++
include/linux/acpi.h | 6 +++++
4 files changed, 84 insertions(+), 2 deletions(-)
create mode 100644 Documentation/acpi/i2c-muxes.txt
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 0/1] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford <dustin@cumulusnetworks.com> - 2015-10-19 11:10 +0200
csiph-web