From: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
To: Vladimir Zapolskiy
<vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
Cc: 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: Sat, 1 Aug 2015 12:09:29 +0200 [thread overview]
Message-ID: <20150801100929.GA4379@katana> (raw)
In-Reply-To: <1438007451-8553-1-git-send-email-vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1864 bytes --]
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.
Thanks again,
Wolfram
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-08-01 10:09 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 ` Wolfram Sang [this message]
2015-08-01 23:37 ` [PATCH v2 0/4] i2c: fix i2c adapter device driver user counter Vladimir Zapolskiy
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=20150801100929.GA4379@katana \
--to=wsa-z923lk4zbo2bacvfa/9k2g@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 \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).