Return-path: Received: from lists.s-osg.org ([54.187.51.154]:59483 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758268AbcFANvk (ORCPT ); Wed, 1 Jun 2016 09:51:40 -0400 Subject: Re: [PATCH 7/8] mwifiex: don't print an error if an optional DT property is missing To: Julian Calaby References: <1464358702-19083-1-git-send-email-javier@osg.samsung.com> <1464358702-19083-8-git-send-email-javier@osg.samsung.com> Cc: "linux-kernel@vger.kernel.org" , Xinming Hu , Amitkumar Karwar , Kalle Valo , netdev , linux-wireless , Nishant Sarmukadam From: Javier Martinez Canillas Message-ID: (sfid-20160601_155207_558294_FEDA21A0) Date: Wed, 1 Jun 2016 09:51:30 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hello Julian, Thanks a lot for your feedback and reviews. On 06/01/2016 12:20 AM, Julian Calaby wrote: > Hi All, > > On Sat, May 28, 2016 at 12:18 AM, Javier Martinez Canillas > wrote: >> The Documentation/devicetree/bindings/net/wireless/marvell-sd8xxx.txt DT >> binding document say that the "interrupts" property in the child node is >> optional. So the property being missed shouldn't be treated as an error. > > Have you checked whether it is truly optional? I.e. nothing else > breaks if this property isn't set? > That's what the DT binding says and the IRQ is only used as a wakeup source during system suspend, it is not used during runtime. And that is why the mwifiex_sdio_probe_of() function does not fail if the IRQ is missing. Now, I just got to that conclusion by reading the binding docs, the message in the commits that introduced this and the driver code. Xinming Hu should comment on how critical this feature is for systems that needs to be wakeup. In any case I think that the code should be consistent with what the binding doc says and also the function does (i.e: dev_err only if returns an error). >> Signed-off-by: Javier Martinez Canillas > > Other than that, this looks sensible to me. > > Reviewed-by: Julian Calaby > Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America