From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B0E5C433FE for ; Mon, 17 Oct 2022 21:31:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3B4F84F4B; Mon, 17 Oct 2022 23:29:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mEy+sosi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB2EE848E3; Mon, 17 Oct 2022 23:29:27 +0200 (CEST) Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ABBC184E06 for ; Mon, 17 Oct 2022 23:29:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-vk1-xa2c.google.com with SMTP id a66so6021902vkc.3 for ; Mon, 17 Oct 2022 14:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:references:in-reply-to:from:sender :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NpXI6rbHLT4Di30wbOUy4W/5ns/FN29PxGTq3wCL4iA=; b=mEy+sosiINa/UdA0p+KCHIzR4H6mhadqpJPA2D3QhdqKNLs57ylMpkqlJKoPOBnhG+ JyEdQ0N1ILzxT7MtJFRg5NYgqVKjsa0pzTf7LFrNrDh/jFLp/BucB9O1FIWGME4HcOD1 zIARlEyabiIMGQrt/fgk294BQRAWF95/KlbFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:references:in-reply-to:from:sender :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NpXI6rbHLT4Di30wbOUy4W/5ns/FN29PxGTq3wCL4iA=; b=6RxuQfGrc7gscVkv18Hw7kEDv8Htyf0MzEKc2qjVVPb8euKPfYoWaTvdmN4cGKALl5 9L/lSO/3XlxfCU71P7pw5+LbfF554pyPZgcPziZT5zV5q3zSHBJVrg+HuEvCGHoViiRE 8RQa66v0euWPyAvl2739jT1K7xMH4gbXG0WHVHCsafrCpjtfUd472tsO1qEkGP6yygFx MkTcUAI4Y6OixR4jOTxnnoupS7mcOqaebjK0bXI3exP7yHWBb2eHPfSO9Er9KSzJ50fV LDPbiQZ4gBvCEervQyGCJPu6RmbZRnaznBRQFtoM08qUOJYUU3GlhRqCDFRK2cWWTws0 C2Mg== X-Gm-Message-State: ACrzQf2PRsqrId+nfDupnt5sTI40sPjexvzCtX6vgD2vkzQkKe0LDPHG xRNOmH/bueXjRCQ8yjnY/fzzBTAal0BYpqhYG62bEb3ZQ2s= X-Google-Smtp-Source: AMsMyM4sWg2zpQOvYjDjS/NtEISPRKPa/BEmbXWHIiOpKwezcyakcYFEkoT/Z07kO+B1u525QtUqf/cccpf1Oy4FOnw= X-Received: by 2002:a1f:988c:0:b0:3aa:cf0a:e0f7 with SMTP id a134-20020a1f988c000000b003aacf0ae0f7mr5329054vke.24.1666042162302; Mon, 17 Oct 2022 14:29:22 -0700 (PDT) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Mon, 17 Oct 2022 14:29:20 -0700 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <7425bd25a4250f1e1c1b8be45b3b86e120e70d27.1665604425.git.msuchanek@suse.de> References: <7425bd25a4250f1e1c1b8be45b3b86e120e70d27.1665604425.git.msuchanek@suse.de> Date: Mon, 17 Oct 2022 14:29:20 -0700 X-Google-Sender-Auth: uNT-Fx2eGeN55zB6Kisn57smbkA Message-ID: Subject: Re: [PATCH v6 08/20] w1: Fix bus counting in w1_get_bus To: Michal Suchanek Cc: Simon Glass , Maxime Ripard , Eugen Hristev , u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Use uclass_first_device_check/uclass_next_device_check to correctly count buses that fail to probe. Fixes: d3e19cf919 ("w1: Add 1-Wire uclass") Signed-off-by: Michal Suchanek Reviewed-by: Simon Glass --- drivers/w1/w1-uclass.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) Applied to u-boot-dm, thanks!