Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2180325pxb; Fri, 25 Mar 2022 12:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPVO8z/gEhGo9O0FJH2xRyljkwChBtjNyA4jZHOI3G6vMv5fCLrvl+jv9C0tgwozLGT6f9 X-Received: by 2002:a63:d916:0:b0:385:fe06:a1db with SMTP id r22-20020a63d916000000b00385fe06a1dbmr863586pgg.446.1648236696694; Fri, 25 Mar 2022 12:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236696; cv=none; d=google.com; s=arc-20160816; b=pOOFSx5x8HSbhk4r5Kiahng++hEqA11ResKkaNOEgkhZD8VVaIBTkycyux0i4CAb9V hLe8bPv9MIUV8z/3tXdqjYn+ZIy+HHiZRHviqbswS4py+ln/GbazbMTo0v33B/F8DrlZ e6jOQ0dptyp3xhRzwr9v16B7hf4grgcS9Ba5UohBlZR69OK/EHMOU6uZfCRTfVeTKfx6 EzI7/V+rX8pDk2+remaDqMnbA4kvdkDjr6hYu4D5N9x9TSJC+wWsLCR+saAgO2R/zpdE 9Ssq1dPveFteibp0J/kNRsb3hIVz83hE5C1oXpdZDTX/l0k8SjCfqCQeHOeoEpJWVRNf 8wJA== 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:date:subject:cc:to:from :dkim-signature; bh=3CzDuRG/GDyuJLf4p2mHd876Lb9kEdmeUhatt1yVt28=; b=SKf/6NzAW2Cm7/+zQHhcuV1UKESJNfW9T4SKAXKANSsufAITyRYYg0roVG/3UYyrOH lqBtMuCrZ85MEvRiLdfLrufxW0407ByYvVZ5c/HAkGu9jZUg0kywqPsLVjj72eNTvjdX pj9x+Pdn6ITYo9h24WhSEHDP7bezMxm8YnJyRA5ckkEV8FkV/5bMUpWPDWy0F5mhVUF/ toPoGZTZWIe3VkEy9gPJJDycK5lQ4Ht67ZPmEHEIoluoedZLYGMf8JQx3G91WWcUo1gn +0juED7ntcK64NEMsyx2ABHrG911LYxFXjRLDj/CNOaqZAwi4mn8m71ttcI+gOD/3w2G D0Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Spon9KQH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y3-20020a1709029b8300b00153b2d16586si2922271plp.398.2022.03.25.12.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:31:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Spon9KQH; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 488CE30CDB0; Fri, 25 Mar 2022 11:45:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343951AbiCWSgc (ORCPT + 99 others); Wed, 23 Mar 2022 14:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240068AbiCWSgC (ORCPT ); Wed, 23 Mar 2022 14:36:02 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE79871EC7; Wed, 23 Mar 2022 11:34:31 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2C3C5223F0; Wed, 23 Mar 2022 19:34:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648060470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3CzDuRG/GDyuJLf4p2mHd876Lb9kEdmeUhatt1yVt28=; b=Spon9KQH6o6M3UIq+zJXUQco/bZmHjuwoFruqM0pY7wEPm0S9mCtB4NF/isyQzUkqpCdwX UeY1rBWclONKylMgP0UXJxBMFtOt7oZ58/ewlZohzJ2HdKnk4H+Iu3qBYxfjkD5BfUUOEv KVjDu6enozMC3msUEOnnV6mpbIoNniM= From: Michael Walle To: Andrew Lunn , Heiner Kallweit , Russell King , Jakub Kicinski , Paolo Abeni Cc: "David S . Miller" , Xu Liang , Alexandre Belloni , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH RFC net-next 3/5] net: phy: mscc-miim: add probe_capabilities Date: Wed, 23 Mar 2022 19:34:17 +0100 Message-Id: <20220323183419.2278676-4-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220323183419.2278676-1-michael@walle.cc> References: <20220323183419.2278676-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The driver is currently only capable of doing c22 accesses. Add the corresponding probe_capabilities. Signed-off-by: Michael Walle --- drivers/net/mdio/mdio-mscc-miim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mdio/mdio-mscc-miim.c b/drivers/net/mdio/mdio-mscc-miim.c index 582969751b4c..c9efcfa2a1ce 100644 --- a/drivers/net/mdio/mdio-mscc-miim.c +++ b/drivers/net/mdio/mdio-mscc-miim.c @@ -225,6 +225,7 @@ int mscc_miim_setup(struct device *dev, struct mii_bus **pbus, const char *name, bus->read = mscc_miim_read; bus->write = mscc_miim_write; bus->reset = mscc_miim_reset; + bus->probe_capabilities = MDIOBUS_C22; snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(dev)); bus->parent = dev; -- 2.30.2