LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh+dt@kernel.org>,
	Frank Rowand <frowand.list@gmail.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH 0/2] add kobject/of_node read() function
Date: Tue, 10 Apr 2018 06:53:10 +0000	[thread overview]
Message-ID: <87bmerv9ll.wl%kuninori.morimoto.gx@renesas.com> (raw)


Hi Greg, Rob, Frank

We are using {kobject_/of_node_}get/put() for increment/decrement
counter. But, because we don't have counter read() function,
confirming it (mainly for debug purpose) is a little bit difficult.
These patches add read() function for it.

Kuninori Morimoto (2):
  kobject: add kobject_read()
  of: add of_node_read()

 drivers/of/dynamic.c    | 14 ++++++++++++++
 include/linux/kobject.h |  1 +
 include/linux/of.h      |  5 +++++
 lib/kobject.c           | 18 ++++++++++++++++++
 4 files changed, 38 insertions(+)

-- 
1.9.1

             reply	other threads:[~2018-04-10  6:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  6:53 Kuninori Morimoto [this message]
2018-04-10  6:53 ` [PATCH 1/2] kobject: add kobject_read() Kuninori Morimoto
2018-04-10  7:10   ` Greg Kroah-Hartman
2018-04-10  6:54 ` [PATCH 2/2] of: add of_node_read() Kuninori Morimoto
2018-04-10  7:11   ` Greg Kroah-Hartman

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=87bmerv9ll.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.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).