mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
b5527a7766
SMBus alert support. The SMBus alert protocol allows several SMBus slave devices to share a single interrupt pin on the SMBus master, while still allowing the master to know which slave triggered the interrupt. This is based on preliminary work by David Brownell. The key difference between David's implementation and mine is that his was part of i2c-core, while mine is split into a separate, standalone module named i2c-smbus. The i2c-smbus module is meant to include support for all SMBus extensions to the I2C protocol in the future. The benefit of this approach is a zero cost for I2C bus segments which do not need SMBus alert support. Where David's implementation increased the size of struct i2c_adapter by 7% (40 bytes on i386), mine doesn't touch it. Where David's implementation added over 150 lines of code to i2c-core (+10%), mine doesn't touch it. The only change that touches all the users of the i2c subsystem is a new callback in struct i2c_driver (common to both implementations.) I seem to remember Trent was worried about the footprint of David'd implementation, hopefully mine addresses the issue. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: Trent Piepho <tpiepho@freescale.com>
13 lines
264 B
Makefile
13 lines
264 B
Makefile
#
|
|
# Makefile for the i2c core.
|
|
#
|
|
|
|
obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
|
|
obj-$(CONFIG_I2C) += i2c-core.o i2c-smbus.o
|
|
obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
|
|
obj-y += busses/ chips/ algos/
|
|
|
|
ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
endif
|