lkml.org 
[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 07/11] i2c: designware: Discard Cherry Trail model flag
On Wed, May 27, 2020 at 05:29:02PM +0300, Serge Semin wrote:
> On Wed, May 27, 2020 at 04:43:39PM +0300, Andy Shevchenko wrote:
> > On Wed, May 27, 2020 at 03:01:07PM +0300, Serge Semin wrote:
> > > A PM workaround activated by the flag MODEL_CHERRYTRAIL has been removed
> > > since commit 9cbeeca05049 ("i2c: designware: Remove Cherry Trail PMIC I2C
> > > bus pm_disabled workaround"), but the flag most likely by mistake has been
> > > left in the Dw I2C drivers. Let's remove it.
> >
> > ...
> >
> > > -#define MODEL_MSCC_OCELOT 0x00000200
> > > +#define MODEL_MSCC_OCELOT 0x00000100
> >
> > But why?
> >
> > Does 0x200 work or not? I didn't see this in commit message.
>
> I removed the MODEL_CHERRYTRAIL flag and redefined the only left
> MODEL_MSCC_OCELOT flag to set the very first bit allocated for the model
> flags. Isn't that obvious?

Yes, but how it's related to the MSCC_OCELOT?

Can't you simple put your define later to that number if absence of 0x100
provokes an exception when reading this code.

Again, unneeded churn.

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2020-05-27 17:49    [W:0.070 / U:35.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site