[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFy1USTQLpnV4ZtOf0dC+hk5j4M7WbU7Cis=PxLWuu8sqO4FEA@mail.gmail.com>
Date: Thu, 14 Jan 2016 15:09:23 +0800
From: Bamvor Zhang Jian <bamvor.zhangjian@...aro.org>
To: Linus Walleij <linus.walleij@...aro.org>,
Julien Grossholtz <julien.grossholtz@...oirfairelinux.com>
Cc: Alexandre Courbot <gnurou@...il.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
kernel <kernel@...oirfairelinux.com>,
Bamvor Zhang Jian <bamvor.zhangjian@...aro.org>
Subject: Re: [PATCH] gpiolib: fix chip order in gpio list
On 01/13/2016 06:11 PM, Linus Walleij wrote:
> On Thu, Jan 7, 2016 at 10:46 PM, Julien Grossholtz
> <julien.grossholtz@...oirfairelinux.com> wrote:
>
>> In some situations the gpio_list order is not correct.
>> As a consequence gpiochip_find_base returns the same
>> base number twice. This happens when a first ship is added
>> with manual base number, then other ships are added using
>> automatic base number.
>>
>> To prevent this behaviour, this patch add the new ship after
s/ship/chip
>> the last element of the gpio list.
>>
>> Signed-off-by: Julien Grossholtz <julien.grossholtz@...oirfairelinux.com>
>
> Patch looks correct to me so applied.
>
> Bamvor: please comment if you see some problems.
Nope, it could pass all the testcases I wrote.
Regards
Bamvor
>
> Yours,
> Linus Walleij
>
Powered by blists - more mailing lists