[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 14/33] serial-mm: add "regshift" property
From: |
Marc-André Lureau |
Subject: |
Re: [PATCH v3 14/33] serial-mm: add "regshift" property |
Date: |
Wed, 20 Nov 2019 11:53:59 +0400 |
Hi
On Mon, Nov 18, 2019 at 6:54 PM Peter Maydell <address@hidden> wrote:
>
> On Wed, 23 Oct 2019 at 18:34, Marc-André Lureau
> <address@hidden> wrote:
> >
> > And a property and rename "it_shift" field to "regshift", as it seems
> > to be more popular (and I don't know what "it" stands for).
> >
> > Signed-off-by: Marc-André Lureau <address@hidden>
>
> I have no idea what it_shift means either (I had a look in the
> git history but it seems to have been added with that name
> very early on when the commit logs were generally not very
> informative); 'regshift' sounds good to me too.
>
> > +static Property serial_mm_properties[] = {
> > + DEFINE_PROP_UINT8("regshift", SerialMM, regshift, 0),
>
> This could use a comment describing what the property does.
"Set the register shift value"? Half-kidding, do you have better
comment to make? Otherwise, it's probably not worth.
>From what I understand, it's just applying a shift on the IO addr,
probably for alignment/access arch-specific reasons. You probably know
better than me ;)
>
> > + DEFINE_PROP_END_OF_LIST(),
>
> Otherwise
> Reviewed-by: Peter Maydell <address@hidden>
>
thanks