Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13471475ybl; Sun, 29 Dec 2019 12:42:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzmQoczX6LNsi0DuJZGIJpZglz8E2DgA+BDL4Sy9rSYh76hbCMkQY8KYsVHM++tAN8iiQmC X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr70492269otr.320.1577652136980; Sun, 29 Dec 2019 12:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652136; cv=none; d=google.com; s=arc-20160816; b=nOIQEC/Sb04N0k2xL2cpJ2pYz5nObK8LUjXoNNscsH1LraI4ndf30n64qba74bDnOS 9F6wwrvbE6j0DIKvW1EetJ0JrAsGf/6Y5wokoKFa0ailxAcy+48YwEp12UpXILYnqIbO AOhir64zW4qUhgjoWq0t6m7NshMK0u5kKxtk6N8XiusMCd45HGoFG4GRGHU2b3d36X58 VOHEGLm14gBFQB/pNyNdGN5zhA9ZVImSVXBiN/6HwyS1e7drlPZAOf+oOxILwfQm0Djw +h1cGFW0lSCoZ1VD+CZzTWo1omq05SpytINJzBEFQmkwpAHiA4YPayS82qKkcT5ZAYX5 3RpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Vx/3BuUy8J/nnOmDqxRohB9Q0D4HLKNqMDjxl8gR50Y=; b=yl1srXonBp8lyyDHx+sUbA4odmC9QzCrSqRkeQnbJyNRanMUtGW2Lmol6KNNsV641a D3Co7IABW06Wlp1qANyKReaSSVoIDkZ+GmGpwsf4CWaO2jk3o+4bFX6hgUAbJ/3Kz7BL krHmnne0MNSWZyIOakCtEp9+TPnu2d5rtwjktTeizCKuyq97N9XH3YHqWleDLpAT0+jb hV5plNfqxyRaNp39SpeSwgglX2MuOeBo6u1EYsvUKb/OD11VLFgj8sH+7DJ5HMaAyqbr fqNpKvQIWfU+d8xK0JggffRgS363H8Yp0mczFAzFRKgUqYAzkn/sFJG4yHOyFGhzLez8 G4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=avqHkO0M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y14si21605009otk.237.2019.12.29.12.42.05; Sun, 29 Dec 2019 12:42:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=avqHkO0M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730323AbfL2Rme (ORCPT + 99 others); Sun, 29 Dec 2019 12:42:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:48598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730285AbfL2RmY (ORCPT ); Sun, 29 Dec 2019 12:42:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1824A20718; Sun, 29 Dec 2019 17:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641343; bh=SO80qTfhuuZnOKrR0zqMqmPghi9X1Dt0wB0Ee1DHsyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=avqHkO0MKaEBJlkD339mMtDajMW/k15GqcDepOjKZzviJke1TywoNDSiYCeO9gpQm Tmm2zWZTIjz7LWdzVa4QnA4HT3wHxf9EpJ4Aoq3ZaevjZWZw3whyniFUf7HRjdPzqC IeCRejNEdgjpeuhmXGJPf4hTHgda2hKBkYn6PYI0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Stephan Gerhold , Andy Shevchenko , "David S. Miller" Subject: [PATCH 5.4 027/434] NFC: nxp-nci: Fix probing without ACPI Date: Sun, 29 Dec 2019 18:21:20 +0100 Message-Id: <20191229172703.876687020@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephan Gerhold [ Upstream commit 868afbaca1e2a7923e48b5e8c07be34660525db5 ] devm_acpi_dev_add_driver_gpios() returns -ENXIO if CONFIG_ACPI is disabled (e.g. on device tree platforms). In this case, nxp-nci will silently fail to probe. The other NFC drivers only log a debug message if devm_acpi_dev_add_driver_gpios() fails. Do the same in nxp-nci to fix this problem. Fixes: ad0acfd69add ("NFC: nxp-nci: Get rid of code duplication in ->probe()") Cc: Andy Shevchenko Signed-off-by: Stephan Gerhold Acked-by: Andy Shevchenko Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/nfc/nxp-nci/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -278,7 +278,7 @@ static int nxp_nci_i2c_probe(struct i2c_ r = devm_acpi_dev_add_driver_gpios(dev, acpi_nxp_nci_gpios); if (r) - return r; + dev_dbg(dev, "Unable to add GPIO mapping table\n"); phy->gpiod_en = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); if (IS_ERR(phy->gpiod_en)) {