linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH v3 0/1] i2c: acpi: scan ACPI enumerated I2C mux channels
           [not found] <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com>
           [not found] ` <1439510358-16664-1-git-send-email-dustin-qUQiAmfTcIp+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
    @ 2015-10-19 22:28 ` Dustin Byford
      2015-10-19 22:29   ` [PATCH v3 1/1] i2c: add ACPI support for I2C mux ports Dustin Byford
      2015-10-22  9:17 ` [PATCH v4 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
      2015-10-23 19:27 ` [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
      3 siblings, 1 reply; 47+ messages in thread
    From: Dustin Byford @ 2015-10-19 22:28 UTC (permalink / raw)
      To: Wolfram Sang, Mika Westerberg
      Cc: linux-i2c, linux-acpi, linux-kernel, rjw, andriy.shevchenko
    
    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,,)
                    }
                }
            }
        }
    }
    
    v3:
    - Correct to and cc list (sorry git-send-email trouble again)
    
    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           | 15 +++++++++--
     drivers/i2c/i2c-mux.c            |  8 ++++++
     include/linux/acpi.h             |  6 +++++
     4 files changed, 85 insertions(+), 2 deletions(-)
     create mode 100644 Documentation/acpi/i2c-muxes.txt
    
    -- 
    2.1.4
    
    
    ^ permalink raw reply	[flat|nested] 47+ messages in thread
  • * [PATCH v4 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels
           [not found] <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com>
           [not found] ` <1439510358-16664-1-git-send-email-dustin-qUQiAmfTcIp+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
      2015-10-19 22:28 ` [PATCH v3 " Dustin Byford
    @ 2015-10-22  9:17 ` Dustin Byford
      2015-10-22  9:17   ` [PATCH v4 1/2] acpi: add acpi_preset_companion() stub Dustin Byford
      2015-10-22  9:17   ` [PATCH v4 2/2] i2c: add ACPI support for I2C mux ports Dustin Byford
      2015-10-23 19:27 ` [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
      3 siblings, 2 replies; 47+ messages in thread
    From: Dustin Byford @ 2015-10-22  9:17 UTC (permalink / raw)
      To: Wolfram Sang, Mika Westerberg, Jarkko Nikula, Jean Delvare,
    	Andy Shevchenko
      Cc: linux-i2c, linux-acpi, linux-kernel, rjw, Puustinen, Ismo
    
    The following series 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,,)
                    }
                }
            }
        }
    }
    
    v4:
    - Moved the acpi_preset_companion() stub to a separate patch.
    - Moved ACPI companion set from i2c-core to i801, ismt, and designware
      drivers.  With a minor rearrangement it was much easier to verify the
      drivers are all consistent (hopefully a little extra churn is warranted)
    
    I was able to test i801 and ismt myself, but I could use some help making
    sure the designware driver is OK since I don't have the hardware.
    
    v3:
    - Correct to and cc list (sorry git-send-email trouble again)
    
    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.
    
    Thanks,
    
    		--Dustin
    
    Dustin Byford (2):
      acpi: add acpi_preset_companion() stub
      i2c: add ACPI support for I2C mux ports
    
     Documentation/acpi/i2c-muxes.txt            | 58 +++++++++++++++++++++++++++++
     drivers/i2c/busses/i2c-designware-pcidrv.c  |  1 +
     drivers/i2c/busses/i2c-designware-platdrv.c |  6 ++-
     drivers/i2c/busses/i2c-i801.c               |  9 ++---
     drivers/i2c/busses/i2c-ismt.c               |  8 +---
     drivers/i2c/i2c-core.c                      |  4 +-
     drivers/i2c/i2c-mux.c                       |  8 ++++
     include/linux/acpi.h                        |  6 +++
     8 files changed, 84 insertions(+), 16 deletions(-)
     create mode 100644 Documentation/acpi/i2c-muxes.txt
    
    -- 
    2.1.4
    
    ^ permalink raw reply	[flat|nested] 47+ messages in thread
  • * [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels
           [not found] <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com>
                       ` (2 preceding siblings ...)
      2015-10-22  9:17 ` [PATCH v4 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
    @ 2015-10-23 19:27 ` Dustin Byford
      2015-10-23 19:27   ` [PATCH v5 1/2] acpi: add acpi_preset_companion() stub Dustin Byford
                         ` (2 more replies)
      3 siblings, 3 replies; 47+ messages in thread
    From: Dustin Byford @ 2015-10-23 19:27 UTC (permalink / raw)
      To: Wolfram Sang, Mika Westerberg, Jarkko Nikula, Jean Delvare,
    	Andy Shevchenko, rjw
      Cc: linux-i2c, linux-acpi, linux-kernel, Puustinen, Ismo
    
    v5:
    - rebased on i2c/for-next (Jarkko, Wolfram)
    - include acpi.h in designware drivers (Mika)
    - remove return from void stub function (Mika)
    - add acks and tested-by from Mika
    
    v4:
    - Moved the acpi_preset_companion() stub to a separate patch.
    - Moved ACPI companion set from i2c-core to i801, ismt, and designware
      drivers.  With a minor rearrangement it was much easier to verify the
      drivers are all consistent (hopefully a little extra churn is warranted)
    
    v3:
    - Correct to and cc list (sorry git-send-email trouble again)
    
    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.
    
    The following series 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,,)
                    }
                }
            }
        }
    }
    
    Thanks,
    
    		--Dustin
    
    Dustin Byford (2):
      acpi: add acpi_preset_companion() stub
      i2c: add ACPI support for I2C mux ports
    
     Documentation/acpi/i2c-muxes.txt            | 58 +++++++++++++++++++++++++++++
     drivers/i2c/busses/i2c-designware-pcidrv.c  |  2 +
     drivers/i2c/busses/i2c-designware-platdrv.c |  1 +
     drivers/i2c/busses/i2c-i801.c               |  9 ++---
     drivers/i2c/busses/i2c-ismt.c               |  8 +---
     drivers/i2c/i2c-core.c                      |  4 +-
     drivers/i2c/i2c-mux.c                       |  8 ++++
     include/linux/acpi.h                        |  5 +++
     8 files changed, 81 insertions(+), 14 deletions(-)
     create mode 100644 Documentation/acpi/i2c-muxes.txt
    
    -- 
    2.1.4
    
    ^ permalink raw reply	[flat|nested] 47+ messages in thread

  • end of thread, other threads:[~2015-10-25 15:15 UTC | newest]
    
    Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1439510358-16664-1-git-send-email-dustin@cumulusnetworks.com>
         [not found] ` <1439510358-16664-1-git-send-email-dustin-qUQiAmfTcIp+XZJcv9eMoEEOCMrvLtNR@public.gmane.org>
    2015-08-14 19:31   ` [RFC v2 0/1] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
    2015-08-14 19:31     ` [RFC v2 1/1] " Dustin Byford
    2015-10-09 21:42       ` Wolfram Sang
    2015-10-09 21:50         ` Dustin Byford
    2015-10-09 21:51           ` Wolfram Sang
    2015-08-15 20:22     ` [RFC v2 0/1] " Wolfram Sang
    2015-08-17 12:03     ` Mika Westerberg
    2015-08-17 19:00       ` Dustin Byford
    2015-09-29 23:19       ` Dustin Byford
    2015-09-30  9:43         ` Mika Westerberg
    2015-09-30 12:52           ` Rafael J. Wysocki
    2015-09-30 13:57             ` Mika Westerberg
    2015-09-30 17:54               ` Dustin Byford
    2015-10-19 22:28 ` [PATCH v3 " Dustin Byford
    2015-10-19 22:29   ` [PATCH v3 1/1] i2c: add ACPI support for I2C mux ports Dustin Byford
    2015-10-20  9:16     ` Andy Shevchenko
    2015-10-20 12:51     ` Mika Westerberg
    2015-10-20 17:49       ` Dustin Byford
    2015-10-20 23:13         ` Rafael J. Wysocki
    2015-10-21  8:12         ` Mika Westerberg
    2015-10-21  8:21           ` Dustin Byford
    2015-10-21  8:34             ` Mika Westerberg
    2015-10-21  8:52               ` Dustin Byford
    2015-10-21  9:08                 ` Mika Westerberg
    2015-10-21  9:25                   ` Dustin Byford
    2015-10-21 22:39                     ` Rafael J. Wysocki
    2015-10-22  9:27                       ` Dustin Byford
    2015-10-20 23:12       ` Rafael J. Wysocki
    2015-10-21  8:02         ` Mika Westerberg
    2015-10-22  9:17 ` [PATCH v4 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
    2015-10-22  9:17   ` [PATCH v4 1/2] acpi: add acpi_preset_companion() stub Dustin Byford
    2015-10-23  8:33     ` Mika Westerberg
    2015-10-25 13:40     ` Rafael J. Wysocki
    2015-10-25 15:01       ` Rafael J. Wysocki
    2015-10-22  9:17   ` [PATCH v4 2/2] i2c: add ACPI support for I2C mux ports Dustin Byford
    2015-10-23  8:40     ` Mika Westerberg
    2015-10-23 10:16       ` Wolfram Sang
    2015-10-23 13:13         ` Mika Westerberg
    2015-10-23 13:40           ` Mika Westerberg
    2015-10-23 13:55             ` Jarkko Nikula
    2015-10-23 19:27 ` [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Dustin Byford
    2015-10-23 19:27   ` [PATCH v5 1/2] acpi: add acpi_preset_companion() stub Dustin Byford
    2015-10-24 16:41     ` Wolfram Sang
    2015-10-25 15:00       ` Rafael J. Wysocki
    2015-10-23 19:27   ` [PATCH v5 2/2] i2c: add ACPI support for I2C mux ports Dustin Byford
    2015-10-25 14:53   ` [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels Wolfram Sang
    2015-10-25 15:15     ` Dustin Byford
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).