Skip to content

Add parameters for sysfs added I2C devices

[email protected] linux-i2c 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: Add parameters to sysfs-added i2c devicesdrivers/i2c/i2c-core.c include/linux/i2c.h+34 -122 replies
2/3i2c-smbus: Allow parms to be passed in from sysfs new_devicedrivers/i2c/i2c-smbus.c+72 -01 reply
3/3ipmi: Handle I2C parms in the SSIF driver.drivers/char/ipmi/ipmi_ssif.c+61 -11 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchNaveen Kaje
1/3T-b
2/3T-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Add parameters for sysfs added I2C devices

This is a set of patches I posted earlier, it allows you to pass in parameters when adding I2C devices through sysfs.

I really need this for the IPMI over I2C driver (The SSIF driver) for a couple of reasons.

The SSIF driver itself needs to take a parameter to tell it's address on the IPMI bus in case it's not the default. It's also nice to be able to pass in debug parameters this way.

Second, the IPMI driver can use SMBus alerts, but if the SMBus alert device is added via sysfs, there is no way to specify the interrupt information, thus it's fairly useless.

The first patch adds the ability to have parameters for sysfs added I2C devices. The second patch adds interrupt parameters for the SMBus alert device. The last is the IPMI SSIF changes, just for example, I can add those in the IPMI tree.

-corey