Skip to contentSkip to conversation

I2C: Add I2C support for the MPC8260

PATCH In review jimmy liu 2 participants 2 messages Jan 25, 2007

lore
Share & tools
lore

jimmy liu

author
#0 lore raw

PATCH 1/1 I2C: Add I2C support for the MPC8260

When I add mpc8260 I2C driver to Linux Kernel 2.6.19, the init function looks like that
static int __init fsl_i2c_init(void)
{
return driver_register(&fsl_i2c_driver);
}

I set the debug on, and found that the fsl_i2c_probe() function is never
called, so there is not I2C device enabled, and the user space function
open("/dev/i2c-0",O_RDWR) always return error. I set something wrong?

____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.

#1 lore raw
Quoted 7 lines · jimmy liu

When I add mpc8260 I2C driver to Linux Kernel 2.6.19, the init function looks like that
static int __init fsl_i2c_init(void)
{
return driver_register(&fsl_i2c_driver);
}

Quoted 6 lines

I set the debug on, and found that the fsl_i2c_probe() function is never
called, so there is not I2C device enabled, and the user space function
open("/dev/i2c-0",O_RDWR) always return error. I set something wrong?

You need something to create a device to match the driver you've just registered. This has usually been done with the platform bus and using platform_devices in the past.

- k