From: Vladimir Zapolskiy <vz-ChpfBGZJDbMAvxtiuMwx3w@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: Vladimir Zapolskiy
<vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>,
Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 0/4] i2c: fix i2c adapter device driver user counter
Date: Sun, 02 Aug 2015 02:37:06 +0300 [thread overview]
Message-ID: <55BD5822.6000806@mleia.com> (raw)
In-Reply-To: <20150801100929.GA4379@katana>
Hi Wolfram,
On 01.08.2015 13:09, Wolfram Sang wrote:
> On Mon, Jul 27, 2015 at 05:30:47PM +0300, Vladimir Zapolskiy wrote:
>> The series fixes i2c bus device refcounting for clients of i2c_get_adapter(),
>> of_find_i2c_adapter_by_node() and of_find_i2c_device_by_node() interfaces.
>
> Yay, thanks for working on that!
>
>> The v2 3/4 change adds and exports new of_get_i2c_adapter_by_node()
>> interface of i2c core, v2 4/4 is an unchanged version of v1 10/10, which
>> utilizes this new interface in order to fix the refcounting bug described
>> below in detail.
>
> And thanks for the good descriptions, too.
>
>> To fix existing users of these interfaces and to avoid any further
>> confusion and misusage in future, add one more interface
>> of_get_i2c_adapter_by_node(), it is similar to i2c_get_adapter() in
>> sense that an I2C bus device driver found and locked by user can be
>> correctly unlocked by i2c_put_adapter().
>
> I tend to agree to the idea of the new function, should be less error
> prone to users. Need to think about it a day more, though.
>
>> Changes from v1 to v2:
>> * added two more patches 1/4 and 2/4 fixing i2c bus device refcounting,
>> thanks to Thierry for the idea of 2/4 change,
>
> I'll apply 1/4 to for-current, since this is a clear bugfix. 2/4 seems
> very worthwhile, too, but seems like less a bugfix to me; while it
> changes things to be more correct, it also is a preparation for the
> following patches.
>
>> * defer changes in 8 broken DRM and fbdev clients until i2c-core changes
>> are added to linux-next (or preferably 4.2.0-rc Linus' branch, if possible)
>> to improve signal/noise ratio on mailing lists.
>
> That was a clever thing to do. However, my gut feeling is that these
> changes to refcounting behaviour should go via the next merge window to
> get proper testing. If you guys want that in 4.2, then I would need a
> lot of Tested, Acked, and Reviewed-by tags very soon.
>
thank you for review, I'm fine if the rest of the changes enters
linux-next, after that, when drm-next picks them up, I'll send fixes to
the clients.
--
With best wishes,
Vladimir
prev parent reply other threads:[~2015-08-01 23:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-27 14:30 [PATCH v2 0/4] i2c: fix i2c adapter device driver user counter Vladimir Zapolskiy
[not found] ` <1438007451-8553-1-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2015-07-27 14:30 ` [PATCH v2 1/4] i2c: core: fix leaked device refcount on of_find_i2c_* error path Vladimir Zapolskiy
[not found] ` <1438007451-8553-2-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2015-08-01 10:09 ` Wolfram Sang
2015-07-27 14:30 ` [PATCH v2 2/4] i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter Vladimir Zapolskiy
[not found] ` <1438007451-8553-3-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2015-08-06 0:50 ` Wolfram Sang
2015-07-27 14:30 ` [PATCH v2 3/4] i2c: core: add and export of_get_i2c_adapter_by_node() interface Vladimir Zapolskiy
[not found] ` <1438007451-8553-4-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2015-08-06 0:50 ` Wolfram Sang
2015-07-27 14:30 ` [PATCH v2 4/4] i2c: arb-gpio-challenge: use of_get_i2c_adapter_by_node interface Vladimir Zapolskiy
[not found] ` <1438007451-8553-5-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2015-08-06 0:51 ` Wolfram Sang
2015-08-06 10:18 ` Vladimir Zapolskiy
2015-08-01 10:09 ` [PATCH v2 0/4] i2c: fix i2c adapter device driver user counter Wolfram Sang
2015-08-01 23:37 ` Vladimir Zapolskiy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55BD5822.6000806@mleia.com \
--to=vz-chpfbgzjdbmavxtiumwx3w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.