Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5693484rwb; Tue, 17 Jan 2023 17:40:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXuKgX/q8MO61s6cCBaEpK8yJKNhGLCm12r4y6ZmEwpTdG7p9JtxMt0e1OLjsqimOY0JbSG6 X-Received: by 2002:a17:90a:f0cc:b0:229:9b17:b54e with SMTP id fa12-20020a17090af0cc00b002299b17b54emr5214671pjb.0.1674006025491; Tue, 17 Jan 2023 17:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674006025; cv=none; d=google.com; s=arc-20160816; b=JmmZ3vtmWQy5Soiqq1lgg15KojDh5iJjetWIdmBv3spQGn7nwB9xE7e9lEz7xUEMxu nzWDk+rykrL5Lqs8dBu4+LBXo27HsLWfvi8k6+EbyAIXFg9+xfMUNHdqeatdLtylWmJI mtu9ZHvurbMCJ2rWonOurZeR5m1nrupbWtrJfYaUGUhfrORW9p1DZ6Aaob4p6awtIck3 nCfX6XE/47JvpurHSvfCMIERs8/vV4auyDPXoBztrPhnCqTJ8NvqwSUzrA/fzaNDy9cc Hn8ijaFqIQZfghd4sGG6dMFMFk3UD6ygBLih5TwXqAs30ZJXNmQ07sKZ80SY0qma6lI2 ysGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rdtp96MkQqNFQz6JJRJ1cbL+HbsHJDeQaX0Fm7hkhL0=; b=AiYPWaDGGS1x7X+VU4loB8ZxnF3wsEalAWZ0+xKHo2gIA6dJ3fNivWlOt70amRHuH9 CM4Cq+ewunKWuzPOPM8/31hkBDr/tBMYzl+oU7BTX1RtXslFfuU6myGTeL64/5XCRG1A /rdPosIiOD6x2m7ogPfMwhCfQ34t/IoP+acICw57gzO0C/UC7Wl6oOz+MMpRCIDxpUMm I+tE8K+/LJR8jV+4Or4LvE4u27dPszuQmWyJj4+Ano2uq9gx3qHA+P3qyDLh5l2KhZ0D 2YMWIDKxCjIXenbql+i1GCWWhXmo50YUmI2SpDohaWUWyY9YLv6YitKgpaXGM1JzRLTb s83w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QbeEAIQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe2-20020a17090b4f8200b0020d5dfb9d69si500501pjb.187.2023.01.17.17.40.19; Tue, 17 Jan 2023 17:40:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QbeEAIQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjARBVF (ORCPT + 46 others); Tue, 17 Jan 2023 20:21:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjARBUl (ORCPT ); Tue, 17 Jan 2023 20:20:41 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53C803EC62; Tue, 17 Jan 2023 17:17:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 1BAA6CE192F; Wed, 18 Jan 2023 01:17:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50EDEC433D2; Wed, 18 Jan 2023 01:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674004662; bh=FGOiyRzcJoEHKdMm+kbK+YBbd8BVEKp07glKSiqMg5M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QbeEAIQw7uP/CRIUHrwWm1uUqA0LznQ6bZkZCm/JvVzO+chR72Aco1aIqOwMEMO6A nBojp92S1Dz6EWGVhbEqXnr2gR1nDDCg1BvKgFHpWbYSepjNRH/Y/8jrAVBM+iwkX5 HJdlwLQF+HWFHnVGGr0vEm2GmGJw5zhl0oOL6KxGZo1YkpRav1MK6etkZ44IQEhchi ys/UxjqQtx//40gat0FDCYAyyq+pPU/BaAhpVXg2/scFUUHc+hUK6WNuwBEXmm5NCW cvWuhnpp8XPzu/obuWLLL3faKEfzlFEgRT48oZuIESimcnHSBlKaDsX86cFMQE22Of l8V+vvA4V+WDQ== Date: Tue, 17 Jan 2023 17:17:40 -0800 From: Jakub Kicinski To: Michael Walle Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , Bryan Whitehead , UNGLinuxDriver@microchip.com, Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Joel Stanley , Andrew Jeffery , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-aspeed@lists.ozlabs.org, Andrew Lunn Subject: Re: [PATCH net-next 2/6] net: mdio: Rework scanning of bus ready for quirks Message-ID: <20230117171740.3a9e6f8d@kernel.org> In-Reply-To: <20230116-net-next-remove-probe-capabilities-v1-2-5aa29738a023@walle.cc> References: <20230116-net-next-remove-probe-capabilities-v1-0-5aa29738a023@walle.cc> <20230116-net-next-remove-probe-capabilities-v1-2-5aa29738a023@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jan 2023 13:55:14 +0100 Michael Walle wrote: > From: Andrew Lunn > > Some C22 PHYs do bad things when there are C45 transactions on the > bus. In order to handle this, the bus needs to be scanned first for > C22 at all addresses, and then C45 scanned for all addresses. > > The Marvell pxa168 driver scans a specific address on the bus to find > its PHY. This is a C22 only device, so update it to use the c22 > helper. clang says: drivers/net/phy/mdio_bus.c:708:11: warning: variable 'i' is uninitialized when used here [-Wuninitialized] while (--i >= 0) { ^ drivers/net/phy/mdio_bus.c:620:7: note: initialize the variable 'i' to silence this warning int i, err; ^ = 0