Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbdGZBmp (ORCPT ); Tue, 25 Jul 2017 21:42:45 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:65140 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751673AbdGZBmn (ORCPT ); Tue, 25 Jul 2017 21:42:43 -0400 X-IronPort-AV: E=Sophos;i="5.40,413,1496070000"; d="scan'208";a="251317514" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87y3rcm12o.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Antonio Borneo Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, John Stultz , linux-kernel@vger.kernel.org, Wei Xu , linux-arm-kernel@lists.infradead.org Subject: Re: [alsa-devel] [PATCH] ASoC: fix balance of of_node_get()/of_node_put() In-Reply-To: <20170725214952.6491-1-borneo.antonio@gmail.com> References: <20170725214952.6491-1-borneo.antonio@gmail.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Date: Wed, 26 Jul 2017 01:42:35 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: PS1PR0601CA0085.apcprd06.prod.outlook.com (2603:1096:803:1::11) To PS1PR0601MB1882.apcprd06.prod.outlook.com (2603:1096:803:8::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1827d559-dba4-4bef-54f2-08d4d3c797ec X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:PS1PR0601MB1882; X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1882;3:xBI3Z7ll1sRFzK5wjFkmSFkmr+ScGBYhDOWDy5wqd8dwv2VBYpis1FljbZn5Z+A3k0aoQUWBscIli3OTcidtPEdAAeX/T7rodo/fjY3ObbxhY7220VEKmBmpjDRBVwF3FEZS80bqIR4bOuxesPtR5uX3OkY8TM486mG3OQh0voU2N56cPcjeterVRkcF2kRxcEX8YPFLyzYfGlz9hCA6ZiGXwdwl4r7t5tgL7iF069bu8bA+CdsjcltEsQCssmq5yPJ/He/9OfnA+hUC7Z/D4HmJkuxR0h/TO/3VdvdSYJcCrNjwZ8h8X8IJCx81wfPw3/ODUDe8VA0/+qaLmGMcSl0kbfX2r6fSDelDCIVyfOPd00miS4xZdqTb1ieMt7TM6NFCI9ZoQTLB6zmKsUhgxpdo5k8HAr7nCY1NlQXXBeJxY3NL6SYRapm1PjxA9hLIFvxGQFjMGhBNeR4SAODEp1qKsmLProyZHIm10gGug5vrxR9Kijq3S+dywjpXkJ+Rqqjaji/1D2XbGJ8yuCUQgLZtzZ7vKbmyhI8X/h9Wd+CoSYIHglU5+2yAOYOcw4Xb2Kmeai0CvQnje2gxDBNsFSDGqtHCLROe/m14ju/QrRHWV8tbqlX2RQcYy7JNbMvHEL3PeGyixxJAJ2e2YyDreaJxHsGAD24NgOlH+ukoGZ3ZAY7kc1LhLkegdzcyIUkOxclSPIgQOMDsYGYoRbA+45vPR+bEyPBPByE+zRfFaC/oojqkgZgTKdWAMtMCh1mQc/NP3EswKdJAANs7j5kC6g== X-MS-TrafficTypeDiagnostic: PS1PR0601MB1882: X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1882;25:Yaj6+CbOxe2HnaZfmbXnNUUmM5h30iZeHbJsFzYbPss8zoEs9vUk30kAjlt0Txr7+bgPH8hSktz75Ju26ko7hfQ2HvSCQ9vOj0BivLrYRhZO7jISUaMU1mo9b/rXiQsR/MtUij8v8H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335); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:PS1PR0601MB1882;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:PS1PR0601MB1882; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;PS1PR0601MB1882;4:p4MeSJubOydmwmIdpozIFpNtC964U7rDohc8GDee?= =?us-ascii?Q?15UhoWrt+eoUdmbHFlGvR14OKFcieJJ+XWwX9DAYUiW1TGhM9WOTvG6Rq1UI?= =?us-ascii?Q?UD2KZ6/uZh/8YlcRqBE9VXHpJHtAfLyqJOkjre/6BJqVTDKEe27dC6tqQzwC?= =?us-ascii?Q?Sp2SYgKIlvFVo9a1U+FVpO8KfYscUaZQ9W4Vp6DS4JgA9WSMWd+B5H91nSzB?= =?us-ascii?Q?jzKRiae12jq4FZX9AUSnEbLrBsQ9Yqs6oDUvfVISF9uIfGzEebF+QUJKL824?= =?us-ascii?Q?1ofuoGf5fzxxTP3nrqrHaxr4J+f6xOq+IG4hmEEqfBSaQSXtoWAGqcWaG0RB?= =?us-ascii?Q?QDMNiKj6Q4O2TacfqC2z2ndh3W3CUwi04nRUp2yrNnbDVuH7Dia/wXbY0ZT6?= =?us-ascii?Q?1xPzg1LRBospBLnv1Yyi95yeseZG7I2lx6429Xnv0PvN/Lxzm57MkbKkV7y6?= =?us-ascii?Q?LCfRv42M8CiFChKdBgXVL2M++0RJPTvKAHGl4jk+U8X2k4/A5/snVWtgsHbK?= =?us-ascii?Q?wGg6VAuOJK1R9MEYmw+pCcmvw5gBMhmEGHhQR8YvtwRmrgDyXjONOGuBKvaB?= =?us-ascii?Q?rjGR724D/Bd5qtuIOxf2oohEs5Fwumf49CbYo+KKTos+8TqMjDOV4mFi8/mA?= =?us-ascii?Q?nIbPbfryNDXlmnLqMN7uZJpC8/DfMsD+EQmoi86JJZe7mUHurQNngmDXXEtn?= =?us-ascii?Q?GPzNvRh006Qs4FgIZ6TWjG7h11dgIsX9wd+O9rg9A7Z3OPXipR99wKLH4W8l?= =?us-ascii?Q?Wg9rlsHC5DFbnG9zU2QVx30QCWqAdSbVZfuOOn9PxXl/aXVWiz1sE9320ofo?= =?us-ascii?Q?zT1M0/kX7dZ9ivl6sN34XjI/wovzo4cW2u/lxOaUsQHunoXdBanA2xw5/9Xf?= =?us-ascii?Q?3r9LKAXfFDLuOsDvM5s0OT2FVWzW4TN09ZlTl1f8Rdv4dJzqbjMYty/KUaiA?= =?us-ascii?Q?hYYQdmkLSYCaN9If2do76lJ1fHF6on/tTZHejcFnA0OKC+2Pc1y7q/jZIfbj?= =?us-ascii?Q?OVtKBpTTeXEwrSb4k0Ax1HMp/I62KU49Sif2Odcfy3PNv0dMHnfaq+usw4SR?= =?us-ascii?Q?8UM9ka5wvZaIxDmdbiSJh4+x0nLe3d5VYCoy1WQ44QRO0VuqHjPbpDcGk5v5?= =?us-ascii?Q?ihV2U9wqeUSDjhrb1+34dXj6iJ+XOTqERN9sXvAMfh0HMVghjOjo2jwBVI9U?= =?us-ascii?Q?q8AyEXpsMqLI0QPglMEooWB7D7Q40cVD5w0k44b5RbJOYBDoIlg8QJxQF7nl?= =?us-ascii?Q?QkX5rM1Zdgxyuyhev+Q=3D?= X-Forefront-PRVS: 038002787A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6009001)(39840400002)(39410400002)(39860400002)(39450400003)(39850400002)(39400400002)(189002)(199003)(6306002)(36756003)(47776003)(305945005)(53936002)(110136004)(4326008)(3846002)(6116002)(23726003)(25786009)(83506001)(478600001)(5660300001)(966005)(6246003)(7736002)(76176999)(86362001)(54356999)(50986999)(7350300001)(575784001)(66066001)(38730400002)(50466002)(81166006)(68736007)(105586002)(106356001)(33646002)(69596002)(81156014)(101416001)(6486002)(2950100002)(7416002)(97736004)(42186005)(53416004)(189998001)(1720100001)(229853002)(2906002)(4001350100001)(6916009)(54906002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:PS1PR0601MB1882;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;PS1PR0601MB1882;23:sX/WSbEUwKIlPPwt6qEybgW0JOXzLG+jH5aSE2k?= =?us-ascii?Q?Zf+KKQoGOTfiy3+LDJFrX0NAdtiU4WNAgk3FJX6ax2bhkW+nZ5NxmQosU1LW?= =?us-ascii?Q?LyS2cdF2cW5sdHW4Fx+tsbzpR4UsgSsHdoF+y61RW/s6c0DTamI7C08C/EPZ?= =?us-ascii?Q?YefLxpuiHTrYKjduycTYZQtZw7xZJYFaIiETzo8pWYaByZRlW71tMJq1ZY1T?= =?us-ascii?Q?9UqoqGYOUb9C6zQ5XN0uPHVDiwD7+AcntAuN/VAhys3f6WvKhyomxhZTw/nE?= =?us-ascii?Q?Vv/E3YuHOIFytKr22grwn4q1LRrg5WM5bbM6cdPV4PT+kkdGCNrYmdUI8Saj?= =?us-ascii?Q?p8OrKLAsOGPaaChueVYUViFppv4hI9oLeafiv92PWfAO7XHOFWke//coFHuV?= =?us-ascii?Q?6pDOBljXCRMb6f6OnM+RvfBlUvU1wmV5UHspDG5hY1leMDdaBFDW040nJcxO?= =?us-ascii?Q?GTY6wPbH4olUT76TkHcZcjML/s2JkYqw3qyYmA/9Glqxvpuo6fluEBc1/5Dg?= =?us-ascii?Q?vXxMZoA7ELUoABLDufpjQyK74joTi+SaalrgVWYVBe5RnrmZ02fK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v9I+l2FaX3PEreiay+QZFP+XPKTrUtE3n0OryIkyAkalQiqG5fcbJldMW0nk?= =?us-ascii?Q?TKKgLZsQAhaKaAhe/Co/1R6PJlsSPMp0GbX5rLYeqwjb4C0cfaiSt33YUSGh?= =?us-ascii?Q?RwxxQnAurYRaJgOCOFCw0Xi/3a+S5HjyyFrhJaYmaBpioLozjiPyUyde81S2?= =?us-ascii?Q?Ycesoh9CcY8hVtdEmYkfLgnO?= X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1882;5:yA6T4ktYzomhxOmcxI0MFx0Z2D0uP2fRRFXzM02Bo+9xWi2oNJYz4ZcE2gC9bP1G2l31fjnEItGMmDqFhyBXwaRxvED+9XK5t0XSqwNcMgWLZzO39H5ogEbT+LIG5mT5+OLbVTvEorFZG3x/opTK/gblRePO+VnBHJggfRNIEPEJPhFOtkXxksbGbN8zXEeYFTBlcJQFmls8Rhpq/pWqbueQZjIToBBbV8l9mTZ38n4yN4hfr2BjraWGud7nmLXTOp6EtQkw3p8e5FPlNEfchnCcEZoEj5vEiR7JNaMuCGtbwgPM+k1k0OL0CYZJ15BFtQ9WIAgLsDvRyltDl1sG0eWkx5t/JXfPYl92A0M8ryVhgp3m7lcW34//NkF88TTgV7Addliz1L8ed4HqWdFaZShMLtxk8gd0hxRtNuRehUfNxPm+9El479lK6q+HoI/BmCap+DB27C/GEe3BN14YTEB5AVED2oo5CBHPW48aaUNBgJCKn4/hoWUl1xXIo4pl;24:LYPTArTO2eKNr8NEvmSwZTYRqEj9PLbtiUrwqn9Nks5ARPNbkAqSCsZO0LxjF8w5paZgLJsYMtaB3gnWuEWKZRzcyTBg4bAfVGeMpig7h6Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1882;7:ldbBcyQtu8y5QVKZuuKjlNG8jTOCbMUVZbdxKC2uZvgGJGTpTzVUAbSs/+pPYfNpcHeSxrqcB4SKWijUjHy4PCweI8wTXDk/jwESAOT1KNkmZP9jieYH0K7wHuC2rrqFMmP5fehpTDD3WT/c0nYgAXoPvK3l4Ble7xwNSnO4K8swSK5pP2h0gAqfMRypzB3ZimXXnBu01YfXM66Zr5xG3aG8F0g+CV8NKffXCQRXWA/YDoQX2PSmbeMnDrRROwR8JtgH4hldnKwMUIblwkdGig9qdvM7JUMe0zsRpLDCfR/WRD6lnszb6Wc0xKcAxtOoHAlhUKDyE107raRHu1dav1gYLlFMcLmI+/CxRUTKEt/wk4LpUN478oZp3uwZw9M12G4bmw4j7r07pTQm62JNgdGMPtwc9dv5U/Q9SBkdsIu4gshGzISwlAvYigaQ1/RtKFOVSLFkY2f9hKxVggoh5S/562HiBoROxgNo1kZPs7N3ZrefgZoxWA37X49u8ih5y+CwQ9ou8+ffjPeuG3SNeLYrBlnV90VtjHnZSCB2D42C4IqprPJ1azHnDOsN5Wtk9O+th0jTh0afEO95DW9w8M0Rj1z4t1L4wABNYmVrN3SnT3MVR2D59OeJQNitET905e090p9XKXDFY/6pk5uI0B0nA7ee3WlkI3wsrIm9B9sb3TM1f68AJsactMzQvMZARkQlq1VD7buk0vVUxxEL1kV2ECD76J8qZnmH68UXGi4Ps0XyMXrLj4WiGtYYe2GoP7e4riUEoxVjP+g5TYnt23y6CDJ8NKtAU96qbPnSHe8= X-Microsoft-Exchange-Diagnostics: 1;PS1PR0601MB1882;20:gxXn++HXNmhZOoVPxi6CimRRTuSlIWsbTlyo7akXaZ8I8VPeGzhZC1oJyZpunTVq7GH305PkPTVi+5XQ3vuWNd0eqVk0CT8L/x+XYlV/AvW+mvPcJSl4HrOiO1U+YRGJYcIW9JfNC63yB2O6KQ2ij6GiiIsRcOL/+dL+FdCsdBA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2017 01:42:35.6414 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1882 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3717 Lines: 116 Hi > On Hikey target board, enabling CONFIG_OF_DYNAMIC triggers several > errors at kernel boot, like the following one > OF: ERROR: Bad of_node_put() on /soc/i2s@f7118000/ports/port@0/endpoint > each followed by stack dump. > > Fixed by: > - removing of_node_put() in the body of of_for_each_phandle(){}, > since already provided at each iteration. Add it in case the > loop is break out; > - adding of_node_get() before calling of_graph_get_port_parent() > or asoc_graph_card_dai_link_of(). > > Tested with kernel v4.13-rc1 with hikey_defconfig taken from > https://git.linaro.org/people/john.stultz/android-dev.git > branch dev/hikey-mainline-WIP > > Signed-off-by: Antonio Borneo > --- I got kernel boot error on my board (= Renesas R-Car Salvator-X) + CONFIG_OF_DYNAMIC. This patch solved this issue. Tested-by: Kuninori Morimoto > To: Liam Girdwood > To: Mark Brown > To: Jaroslav Kysela > To: Takashi Iwai > To: alsa-devel@alsa-project.org > Cc: linux-kernel@vger.kernel.org > Cc: Wei Xu > Cc: John Stultz > Cc: linux-arm-kernel@lists.infradead.org > --- > sound/soc/generic/audio-graph-card.c | 14 +++++++++----- > sound/soc/generic/simple-card-utils.c | 5 +++++ > sound/soc/soc-core.c | 5 +++++ > 3 files changed, 19 insertions(+), 5 deletions(-) > > diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c > index c0f08a6..7574c5f 100644 > --- a/sound/soc/generic/audio-graph-card.c > +++ b/sound/soc/generic/audio-graph-card.c > @@ -228,10 +228,16 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv) > */ > > of_for_each_phandle(&it, rc, node, "dais", NULL, 0) { > + /* > + * asoc_graph_card_dai_link_of() will call > + * of_node_put(). So, call of_node_get() here > + */ > + of_node_get(it.node); > ret = asoc_graph_card_dai_link_of(it.node, priv, idx++); > - of_node_put(it.node); > - if (ret < 0) > + if (ret < 0) { > + of_node_put(it.node); > return ret; > + } > } > > return asoc_simple_card_parse_card_name(card, NULL); > @@ -244,10 +250,8 @@ static int asoc_graph_get_dais_count(struct device *dev) > int count = 0; > int rc; > > - of_for_each_phandle(&it, rc, node, "dais", NULL, 0) { > + of_for_each_phandle(&it, rc, node, "dais", NULL, 0) > count++; > - of_node_put(it.node); > - } > > return count; > } > diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c > index 26d64fa..144954b 100644 > --- a/sound/soc/generic/simple-card-utils.c > +++ b/sound/soc/generic/simple-card-utils.c > @@ -250,6 +250,11 @@ static int asoc_simple_card_get_dai_id(struct device_node *ep) > if (ret != -ENOTSUPP) > return ret; > > + /* > + * of_graph_get_port_parent() will call > + * of_node_put(). So, call of_node_get() here > + */ > + of_node_get(ep); > node = of_graph_get_port_parent(ep); > > /* > diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c > index 921622a..a0f39de 100644 > --- a/sound/soc/soc-core.c > +++ b/sound/soc/soc-core.c > @@ -4087,6 +4087,11 @@ int snd_soc_get_dai_id(struct device_node *ep) > struct device_node *node; > int ret; > > + /* > + * of_graph_get_port_parent() will call > + * of_node_put(). So, call of_node_get() here > + */ > + of_node_get(ep); > node = of_graph_get_port_parent(ep); > > /* > -- > 1.9.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel