Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2301569pxb; Fri, 25 Mar 2022 15:01:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvGCGTEKlFEpCusXk/6BoAsx62L2DN+5VXjoFSs0M3+t1fp5a5Dz1PJORjHjv5VZ7fJBP/ X-Received: by 2002:a17:902:8b87:b0:14b:47b3:c0a2 with SMTP id ay7-20020a1709028b8700b0014b47b3c0a2mr13949054plb.51.1648245693837; Fri, 25 Mar 2022 15:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648245693; cv=none; d=google.com; s=arc-20160816; b=1FkffTMZQKzv77ARHikGTBJDr1jHsfTeH3wnSpc8Z3lsdNq31d354BXb0AoNK8Y9C/ 06IqeWywMZ25FEodmk2opGn2q9Wm3XQysQdxllmLNO8Agqi71DFk8iZjQX4oDGLEpxOo Kj2o/f424ZeSm2u0mJdKw/ai6DYdfKp4sOoV7EKHLe5X3MLiwkYDz/ij1z7wNlm9O8sH +Vpn7N0pCbmr0si7naM14HP9KdUkg+1oDt1cPX3FXV5ezjxHJDTiFYlDfpexQyyJEs6s BnElQdFJDKeRRslYr6KMtYYH/b0Az9MWbT4TNr7nTm42aXn2a2ffXwBT3YMrOh8yju7g CXlA== 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=27yngU6sVEBTcgQiRJF+lH0cl/M6IIi4+XryN4/LJm0=; b=oxuOvt83OCgrrIJvg0+vkh1KB3szwuf5UCbYFNQHhMRpRB/vSMSPFixZ6qlnlTddhY BasF87dKQPoLwUZzp6LV/gGEcGDulR+b9uL7ibshZ/KnyMyP2XYWYPqkQtakWGuM+swV 23VR/fAarJgXqVVzgt29S+xcB08dGzGpDRHY5IRUwGitWAWOF4zFaufiBeTOtCI/lCDT WVQaF03YaFFDzOTJOsWGvRJIfi1mjhFGV0yoQm945hTmgmUVLgj3OkCE+tfohwt+8hJ1 RUruW0DH913dF2juZHwRJ8qNPsCPfMTdNEWekuE+lcT5s1UicgTaOmAwLijJ4/ioMNoU y9qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=c95fINXd; 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 n7-20020a654887000000b003816043ef56si3532161pgs.331.2022.03.25.15.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 15:01:33 -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=c95fINXd; 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 8BFA6546A2; Fri, 25 Mar 2022 14:35:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233514AbiCYVhU (ORCPT + 99 others); Fri, 25 Mar 2022 17:37:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233441AbiCYVhE (ORCPT ); Fri, 25 Mar 2022 17:37:04 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BEB4AE18; Fri, 25 Mar 2022 14:35:28 -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 39CE5223EF; Fri, 25 Mar 2022 22:35:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648244126; 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=27yngU6sVEBTcgQiRJF+lH0cl/M6IIi4+XryN4/LJm0=; b=c95fINXdR1vegJ6ASBWLXnERZBU/hlTGtisKwNbgl+QdxB+lFGMSykyUpYcvKpTJ1z924J vm+ey71g+ew/bUQ1fvys3rJBFgPp9bD+i9fnc76EgWpJG6oEcrMm4c4tQDayBDqaL9/mUz 5iw/baY8DPQuNl/DiC7F7b6Xtxe5tX0= 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 v2 2/8] net: phy: mscc-miim: add probe_capabilities Date: Fri, 25 Mar 2022 22:35:12 +0100 Message-Id: <20220325213518.2668832-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220325213518.2668832-1-michael@walle.cc> References: <20220325213518.2668832-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 Reviewed-by: Florian Fainelli --- 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