Messages in this thread |  | | From | Raul Rangel <> | Date | Thu, 21 Nov 2019 14:49:51 -0700 | Subject | Re: [PATCH 4/4] platform/chrome: i2c: i2c-cros-ec-tunnel: Convert i2c tunnel to MFD Cell |
| |
On Thu, Nov 21, 2019 at 2:40 PM Guenter Roeck <groeck@google.com> wrote: > > On Thu, Nov 21, 2019 at 1:11 PM Raul E Rangel <rrangel@chromium.org> wrote: > > > > If the i2c-cros-ec-tunnel driver is compiled into the kernel, it is > > possible that i2c-cros-ec-tunnel could be probed before cros_ec_XXX > > has finished initializing and setting the drvdata. This would cause a > > NULL pointer panic. > > > > Converting this driver over to an MFD solves the problem and aligns with > > where the cros_ec is going. > > > > I thought the mfd maintainer objects to the use of the mfd API outside > drivers/mfd. Did that change recently ?
The MFD apis are only used in drivers/mfd/cros_ec_dev.c. drivers/i2c/busses/i2c-cros-ec-tunnel.c just registers as a simple driver.
Raul
|  |