* [PATCH] platform/chrome: Fix i2c-designware adapter name
@ 2015-11-03 11:09 Jarkko Nikula
2015-11-03 18:49 ` Jeremiah Mahler
0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Nikula @ 2015-11-03 11:09 UTC (permalink / raw)
To: Jeremiah Mahler
Cc: Olof Johansson, linux-kernel, Wolfram Sang, Mika Westerberg,
Dudley Du, linux-i2c, Jarkko Nikula
Commit d80d134182ba ("i2c: designware: Move common probe code into
i2c_dw_probe()") caused the I2C adapter lookup code here to fail for PCI
enumerated i2c-designware because commit changed the adapter name but
didn't update it here.
Fix the I2C adapter lookup by using the "Synopsys DesignWare I2C adapter"
name.
Reported-by: Jeremiah Mahler <jmmahler@gmail.com>
Fixes: d80d134182ba ("i2c: designware: Move common probe code into i2c_dw_probe()")
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
Hi Jeremiah. This is the same diff I had in a reply to your bug report.
Can you test does this fix work for you as I don't have the HW.
---
drivers/platform/chrome/chromeos_laptop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
index 02072749fff3..2b441e9ae593 100644
--- a/drivers/platform/chrome/chromeos_laptop.c
+++ b/drivers/platform/chrome/chromeos_laptop.c
@@ -47,8 +47,8 @@ static const char *i2c_adapter_names[] = {
"SMBus I801 adapter",
"i915 gmbus vga",
"i915 gmbus panel",
- "i2c-designware-pci",
- "i2c-designware-pci",
+ "Synopsys DesignWare I2C adapter",
+ "Synopsys DesignWare I2C adapter",
};
/* Keep this enum consistent with i2c_adapter_names */
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] platform/chrome: Fix i2c-designware adapter name
2015-11-03 11:09 [PATCH] platform/chrome: Fix i2c-designware adapter name Jarkko Nikula
@ 2015-11-03 18:49 ` Jeremiah Mahler
2015-11-10 3:43 ` Olof Johansson
0 siblings, 1 reply; 3+ messages in thread
From: Jeremiah Mahler @ 2015-11-03 18:49 UTC (permalink / raw)
To: Jarkko Nikula
Cc: Olof Johansson, linux-kernel, Wolfram Sang, Mika Westerberg,
Dudley Du, linux-i2c
Jarkko,
On Tue, Nov 03, 2015 at 01:09:00PM +0200, Jarkko Nikula wrote:
> Commit d80d134182ba ("i2c: designware: Move common probe code into
> i2c_dw_probe()") caused the I2C adapter lookup code here to fail for PCI
> enumerated i2c-designware because commit changed the adapter name but
> didn't update it here.
>
> Fix the I2C adapter lookup by using the "Synopsys DesignWare I2C adapter"
> name.
>
> Reported-by: Jeremiah Mahler <jmmahler@gmail.com>
> Fixes: d80d134182ba ("i2c: designware: Move common probe code into i2c_dw_probe()")
> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> ---
> Hi Jeremiah. This is the same diff I had in a reply to your bug report.
> Can you test does this fix work for you as I don't have the HW.
> ---
> drivers/platform/chrome/chromeos_laptop.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
> index 02072749fff3..2b441e9ae593 100644
> --- a/drivers/platform/chrome/chromeos_laptop.c
> +++ b/drivers/platform/chrome/chromeos_laptop.c
> @@ -47,8 +47,8 @@ static const char *i2c_adapter_names[] = {
> "SMBus I801 adapter",
> "i915 gmbus vga",
> "i915 gmbus panel",
> - "i2c-designware-pci",
> - "i2c-designware-pci",
> + "Synopsys DesignWare I2C adapter",
> + "Synopsys DesignWare I2C adapter",
> };
>
> /* Keep this enum consistent with i2c_adapter_names */
> --
> 2.6.2
>
Yes, this patch fixes the problem.
Tested-by: Jeremiah Mahler <jmmahler@gmail.com>
--
- Jeremiah Mahler
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] platform/chrome: Fix i2c-designware adapter name
2015-11-03 18:49 ` Jeremiah Mahler
@ 2015-11-10 3:43 ` Olof Johansson
0 siblings, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2015-11-10 3:43 UTC (permalink / raw)
To: Jeremiah Mahler, Jarkko Nikula, linux-kernel, Wolfram Sang,
Mika Westerberg, Dudley Du, linux-i2c
On Tue, Nov 03, 2015 at 10:49:59AM -0800, Jeremiah Mahler wrote:
> Jarkko,
>
> On Tue, Nov 03, 2015 at 01:09:00PM +0200, Jarkko Nikula wrote:
> > Commit d80d134182ba ("i2c: designware: Move common probe code into
> > i2c_dw_probe()") caused the I2C adapter lookup code here to fail for PCI
> > enumerated i2c-designware because commit changed the adapter name but
> > didn't update it here.
> >
> > Fix the I2C adapter lookup by using the "Synopsys DesignWare I2C adapter"
> > name.
> >
> > Reported-by: Jeremiah Mahler <jmmahler@gmail.com>
> > Fixes: d80d134182ba ("i2c: designware: Move common probe code into i2c_dw_probe()")
> > Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> > ---
> > Hi Jeremiah. This is the same diff I had in a reply to your bug report.
> > Can you test does this fix work for you as I don't have the HW.
> > ---
> > drivers/platform/chrome/chromeos_laptop.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
> > index 02072749fff3..2b441e9ae593 100644
> > --- a/drivers/platform/chrome/chromeos_laptop.c
> > +++ b/drivers/platform/chrome/chromeos_laptop.c
> > @@ -47,8 +47,8 @@ static const char *i2c_adapter_names[] = {
> > "SMBus I801 adapter",
> > "i915 gmbus vga",
> > "i915 gmbus panel",
> > - "i2c-designware-pci",
> > - "i2c-designware-pci",
> > + "Synopsys DesignWare I2C adapter",
> > + "Synopsys DesignWare I2C adapter",
> > };
> >
> > /* Keep this enum consistent with i2c_adapter_names */
> > --
> > 2.6.2
> >
>
> Yes, this patch fixes the problem.
>
> Tested-by: Jeremiah Mahler <jmmahler@gmail.com>
Thanks, applied!
-Olof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-14 5:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03 11:09 [PATCH] platform/chrome: Fix i2c-designware adapter name Jarkko Nikula
2015-11-03 18:49 ` Jeremiah Mahler
2015-11-10 3:43 ` Olof Johansson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.