Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp29661rdb; Mon, 22 Jan 2024 10:52:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyAdXgx1gI/9DV9T9A7m/l/NmlbYz2XqQtTBfcTfdMv1UJlwdrIHVNCyAlaKEJSy2vPVPp X-Received: by 2002:a17:902:7c0b:b0:1d7:4dfa:cbbc with SMTP id x11-20020a1709027c0b00b001d74dfacbbcmr1443728pll.100.1705949554844; Mon, 22 Jan 2024 10:52:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949554; cv=pass; d=google.com; s=arc-20160816; b=s9emYNd+0+eDK5pDUVYfr0l+2jULdBq6JYA6eOE/lfbAJgbYkr3Xx04yoMHV5iL97r JBggZRnWG1Y8NYHKwPkajYf385+pWF+mVeDZ8ymDL4a0f+iuI7kT1dd41G1MMHIjdxmM UwdUPWASNSbw9/dVu3sTXJ/qXTlQpsXdRmsXXRPG9h0dfBWUGzCW9Z0OdkrxYA3QhwXL HHdHw4kvut1iJSat5HB8vc5nhjCL63q+Zq7FwVDcTMVYDsj/6TH7K6L59OKrVSfcFNOc 1q8Bqu+8Bh17GbWhc/Mc+HkjHqFuoD9YJRsZlXq2vtJO2HDIKT38cjQ2KM872yL9d763 xTag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=IOsGhfE0kXa7dZ2FZzfTsZE+tP7dwuXi8WpYPmsXdbk=; fh=WUQH+ZPc2xpyiUsac8La4avmB+N+/TA4hD2mZdUkcDo=; b=K4MfBM2G7tqDYsPwinjvqXj2EmCNLrMKvNjAuAaJ3eS4bpl6fV5JB3Ddq70zPQexoI o6ZsifHQT5PdgZHjCPhTqwvalNFQziDC0CDlTy+WYnE12qgBkDHT7PJ+Xv25EjDLuq2X xvR0cpxULIxUG2BdPONqYci45rkq7H0Er2qTTssGjWB28wXN9G/Tjf6w4a9+q81rmqOg fTg8h5+uY8De5zMeOZ8II8XTCQzyl9gm7qXiFJEWVYoSpnWCL5pReTqB4sUzLvN9A/r0 9pquoVzRvLXLgw+sii1cyzrALyPRPhdPB4SGaGcDqtMbVCdInyaTkq6hHMoy91YTgqCx +kHQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33930-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z9-20020a170903018900b001d5a008e4efsi8616811plg.157.2024.01.22.10.52.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:52:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33930-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ED58F296F05 for ; Mon, 22 Jan 2024 18:41:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77E5956765; Mon, 22 Jan 2024 18:08:34 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B258604DB for ; Mon, 22 Jan 2024 18:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946912; cv=none; b=P8H0BMvrOCB/KXBlzW9fj4XNFNghDo3U+f5bc4C0aRia2+KrTrM/46Y3fwzVDt8vfX/rsxXJMx7F0SbxaFA1QJYBuyKppHqaA2itKUDqF0izs9JIKp51n31kLCUVunx1X6T5oIx6hQfPowQIfcjXML4JERgQcTJMoUi7EVqPd5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946912; c=relaxed/simple; bh=s+JADGlY1hU/NStvmmbQ8XZ+UID1ILn7ThT9et4DuL4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kynAbVO8Z1zoYc/iKJTllVEPzurmbyihNBy0AGCgrJpDwRtwGfSD2m3/G7xr3z7RThITpu3i4j5RZ0dTGqnaWYLCPJMcBkUPM96ouC2N81ZMcaoY1dgCUfDcQT7QAOmt3lwsQODieV2HGACK664QyoeHwMcc1XuRAUn7IoX6LkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rRyiW-0001rV-Ds; Mon, 22 Jan 2024 19:08:16 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRyiV-001ePz-Cl; Mon, 22 Jan 2024 19:08:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rRyiV-005ZxZ-0z; Mon, 22 Jan 2024 19:08:15 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Mark Brown Cc: kernel@pengutronix.de, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Martin Blumenstingl , Geert Uytterhoeven , Heiko Stuebner , =?utf-8?q?Pali_Roh=C3=A1r?= , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH v2 13/33] mtd: rawnand: fsl_elbc: Let .probe retry if local bus is missing Date: Mon, 22 Jan 2024 19:07:08 +0100 Message-ID: <41a042207ef791c4c5bcb46f09f63c40c6aa321b.1705944943.git.u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=926; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=s+JADGlY1hU/NStvmmbQ8XZ+UID1ILn7ThT9et4DuL4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlrq7SqRa5xnri+sBGWXS2mxTR2+yeexp9NbmI0 L90hkTAH++JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZa6u0gAKCRCPgPtYfRL+ TlAHB/wMg26k1Tpck9mHijZsRHTQvJplBT8Z+vC2kUhBSyWEZB0dKmES+fZW3CeCceTvoNOyFuV 7TDzPHUuzbznk6NIljGX94AwdH91fGCAnFs7MXcPZdppmViEw8kW4jG+dVtd/2vXlq8Fs+JMbBg X3rsJQGwDZjlubTx88jvefyRVTkWUObB/F62pE7+t1zSpAka5vi4w4s9TC437a89kT6z3KJVs/B 5D8PuO2JS7sqyvGPTuWxX7CKUYRb14q6ysKoafrx5mNB0ymUIcbqI4rwPlRVTHgWk6aeRto3npM JsgwpMCWKefupKmykKqsyBIf58VxW9M/7YtKjYKc/tPhJJYR X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org If during probe fsl_lbc_ctrl_dev is NULL that might just be because the fsl_lbc driver didn't bind yet. So return -EPROBE_DEFER in this case to make the driver core retry probing later. Signed-off-by: Uwe Kleine-König --- drivers/mtd/nand/raw/fsl_elbc_nand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index 1e3a80f06f33..df6a0d5c86bb 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -869,7 +869,8 @@ static int fsl_elbc_nand_probe(struct platform_device *pdev) struct mtd_info *mtd; if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) - return -ENODEV; + return dev_err_probe(&pdev->dev, -EPROBE_DEFER, "lbc_ctrl_dev missing\n"); + lbc = fsl_lbc_ctrl_dev->regs; dev = fsl_lbc_ctrl_dev->dev; -- 2.43.0