Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp68241rdb; Tue, 16 Jan 2024 15:24:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtHKskMciDFxgMP2KXE1MhRVrZhByeLpH5FVF9VhsiP9D3VU0BoUutFXBBM+3ccivWQ8aH X-Received: by 2002:a05:6a00:2282:b0:6d2:74fc:1f1e with SMTP id f2-20020a056a00228200b006d274fc1f1emr9686396pfe.14.1705447472509; Tue, 16 Jan 2024 15:24:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705447472; cv=pass; d=google.com; s=arc-20160816; b=Pvq0WMsF7YAEo9aAEFyvEv3i727GERSZSfctohblkmf+z6CqPkFuQKNUprojT4GWAZ SX6QbwUMg4gDsMs4Svci1l6AohXzAZeG/NXR4qhvmKAXauG+1/AwuKnerM/0Bui2b7Ku /eCaWyfT7XLWHFi86xQ3rXetcwyCqGtUEeeUgrysbhCMVQ5+DCGvcTQF881nwoSpsqds bSBflWXaKIaWrWMA4QfEX91Qwpiqo36BsVcW/8BcE8pAzc+VBZ7tcxxwdOK/yZYW30N+ gYwPGxYs/dm+2lB4ApaYmkTz00oR0IJQgvQPUEaFrTL6KOQ120uwn+IZ++3Xo6fcX+9A vG+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ys+BRocRaSfqSlTq8ygwsRyVjvYBvlkbZzx4GJg0Guo=; fh=HThc5WbUBHFScfbz5EhM2h7z9BDPT2mcqvVjr+As5JY=; b=NdLGzQOLMymEbI6ca7BhnkQNKnQmJ5OJqpYjxzk9IWGIoRWprb/IzI9EyGhjX4qQIL j7ZGINAoW1byuQ66H5vHURsDc/oWj61TQ6Wq08h7cSBXqZ7gohupoEt82lGUTjvgwe1l QWhac4Ap2FKby3nR6HMfsJP4zY1uL34gvMap9Z75+BQsDPz1viFMqquHTUFrMMY3jWdJ 8y3ySCBgmcULJTOydQdPnNfHJ1d2onhMx+BCagAXgAATgQnEIr5RzAg47fCjGpZfWQ99 w/DlsXJ594wt6KY+PIpwzr0s6dy7BozTe8PsxDNCG/Dkm55PwWcJCIt2RGdsGNXRzc12 fJWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vv+0GgSa; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-28375-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ih5-20020a056a008c0500b006d6f98a58a4si281693pfb.255.2024.01.16.15.24.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 15:24:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28375-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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vv+0GgSa; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-28375-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 EB6EA28A81B for ; Tue, 16 Jan 2024 23:21:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6435867C64; Tue, 16 Jan 2024 23:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="vv+0GgSa" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 115FF67C54; Tue, 16 Jan 2024 23:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705447298; cv=none; b=NFg7aJZTidNZ2zcgYAI4fOZDtYyIZWmqIrARA4/FRkiVCP9wUTPu+i+Ttn/vZZazLanGXfqrVF/qKT2LfxVmcFL2Ix+E7c3aa/Egf12iBMYThPirzjP2cbVMiXxOa+E1ze3yF4MaDEhP4LX8o+KEWH2gxt7p0OZqj/hMfWE20IM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705447298; c=relaxed/simple; bh=dqVyFBZEyz6eyoIIxKAAeMr8tIwXW4vzy/OcdF9P470=; h=DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=Mtp2RiAmebjqZvDvDzMUZcoksIIQ2HlYlMJIwWPgxvMkMycXFa20G9ro61M0UPBAbEoJhQZ19qAQJ9B0MJRn+YphrrK5rEGfzLnJQHGA+btaO6oDZXtztbWPaEDA9PX9XVPwWcx4wvruEDt63Vm+QM0JaxIo0dmVcy6+3a0Av0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=vv+0GgSa; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Ys+BRocRaSfqSlTq8ygwsRyVjvYBvlkbZzx4GJg0Guo=; b=vv+0GgSaEPVrB7KP9yAoX/g8Ip d4TksbqqwZd2Y45PSAh1mSF9gI11uSIWDhhAQVLYxLPsX1kbnLCIb1q3Ik5Op5CqFJjCtt9IE7VYM +Zuo28wEXINBKHipCWC8Ut/6Il27kD4jHZzohxoFbLJl4BhK/RZkQ2FVi1EpR0nJi6CM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rPskJ-005MZE-KR; Wed, 17 Jan 2024 00:21:27 +0100 Date: Wed, 17 Jan 2024 00:21:27 +0100 From: Andrew Lunn To: Tim Menninger Cc: f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: dsa: mv88e6xxx: Make *_c45 callbacks agree with phy_*_c45 callbacks Message-ID: References: <20240116193542.711482-1-tmenninger@purestorage.com> <04d22048-737a-4281-a43f-b125ebe0c896@lunn.ch> 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=us-ascii Content-Disposition: inline In-Reply-To: > Hi Andrew, > > It bubbles up as EIO (the translation happens in get_phy_c45_ids when > get_phy_c45_devs_in_pkg fails) and ultimately causes the probe to fail. > > The EIO causes the scan to stop and fail immediately - the way I read > mdiobus_scan_bus_c45, only ENODEV is permissible. O.K. At minimum, this should be added to the commit message. However, i'm wondering if this is the correct fix. I would prefer that the scan code just acts on the -EOPNOTSUPP the same was as -ENODEV. Maybe the error code from phy_c45_probe_present() should be returned as is. And mdiobus_scan_bus_c45() is extended to handle -EOPNOTSUPP ? Andrew