Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3809614rwb; Fri, 9 Dec 2022 21:37:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf76M6JNx9i4+1AnaL6JJsyQTMyC0D2lY0zIsaP7f1QwIkoWkxWkA6Jss/rrTo8XGOpmGFNG X-Received: by 2002:a17:906:405:b0:7c0:affa:866f with SMTP id d5-20020a170906040500b007c0affa866fmr6876905eja.26.1670650658967; Fri, 09 Dec 2022 21:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670650658; cv=none; d=google.com; s=arc-20160816; b=hznqmSFYPOntc2sz7nuucKl9a/VF5B3HJHhoEfSkF16SvMalbMjWT7oDo6Cv6Xnnkv cOUo6bJBi+f1kUNl/gxey7arXX2EjV8PWll1jbrfczwnG3ceOFQBJMLxYoGkEGf3KwDj 6ioE4BwR2QS/ZxaSTDN/d79j1oI/Sf/i+Nk+HAzCd8jZk10I+SYi/1c6xA5NSkl9aI5F oLg8eR739b3thdPhC33+xIi8S1ANpKE5UODGxK6NpYWSzL9nL9sZMdcHD1XfdaTRZVLW Bwg3pXQROSz6yyNU7e7KGKKZnB5LQvXUt1/hGOkyq7CRYdClWP9DYaq6AZrRqvmjj7ED mfQQ== 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=vtnwRkZNUa7Blcwpm2pLaIl0oMll3Y+009JqJp/AJWA=; b=SIIzccRji16YXNuUehLM2BOcw6v00NFTMVlGKHA5KsPZ87qfp84rb4ZmCNdGndjB1m 0WrH95i1UVsoZz0dTnSLrvZaN9K7pVFeI/vr/5MMaErdzMh7tzdh+DwECz2ZzhzSALER 08qdmyp97iBt/o4yyM5UE5M/ELht6L+S00k14VZW9WlruqS+hPF3XG9ZrUTxJRXr99GR jfLcGGbB3S3lgT4ZOp4mQtomyIUgpv6Xf1FCX2nYTreAwdp4k7jteepvgpfhewaZIOaa WbeeqzwzEyNh7mZjsi5VszsxptT7CGjTQKOVqSdlkh1UBjxQsWM169/0QB6+iBM50xmJ Uyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tMeTBQUk; 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 b5-20020a509f05000000b00461dca37cd0si2938604edf.126.2022.12.09.21.37.21; Fri, 09 Dec 2022 21:37:38 -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=tMeTBQUk; 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 S229804AbiLJEOZ (ORCPT + 74 others); Fri, 9 Dec 2022 23:14:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbiLJEN7 (ORCPT ); Fri, 9 Dec 2022 23:13:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214042FC09; Fri, 9 Dec 2022 20:13:56 -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 ams.source.kernel.org (Postfix) with ESMTPS id A694BB8282B; Sat, 10 Dec 2022 04:13:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0796CC433D2; Sat, 10 Dec 2022 04:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670645634; bh=8TwOUGgN5Iqvaj2/pS9j9BQVHmRbgPx3GEesx7wnsEM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tMeTBQUkDmWk8FVh0QZbL8qVbFYMi7bei1HS+jizCvxntTj78Gq/SqjgydD3/bh/g v6zK36egf1d1WmtbAvSyXDDZTkm11rn9MfTY6NO3gpH/pa+pQ41mx7rdHfhTPKhHrc blw+S6ykr+uIG+s3apYJgwYzXTuZfh3WPOblD/ObIVrL5znZeHWzvtNosbhRk4+3pr haHZmzJdf4nQ4t4cQU7Y8vkm7XbGuhwrKo9Xps9xHwJzi32hqe58Uy7lbMnmOEGWK7 vqF00QVkHMERWaIVllTAdYxSxPkyqhzyWgK1zt5hnnf32Bh6RKjcCWP6URT38/bYzk S95wkLJPFmzrg== Date: Fri, 9 Dec 2022 20:13:53 -0800 From: Jakub Kicinski To: Jerry Ray Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , "Paolo Abeni" , , , , Subject: Re: [PATCH net-next v5 2/6] dsa: lan9303: move Turbo Mode bit initialization Message-ID: <20221209201353.2d6f4852@kernel.org> In-Reply-To: <20221209224713.19980-3-jerry.ray@microchip.com> References: <20221209224713.19980-1-jerry.ray@microchip.com> <20221209224713.19980-3-jerry.ray@microchip.com> 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 Fri, 9 Dec 2022 16:47:09 -0600 Jerry Ray wrote: > In preparing to remove the .adjust_link api, I am moving the one-time > initialization of the device's Turbo Mode bit into a different execution > path. This code clears (disables) the Turbo Mode bit which is never used > by this driver. Turbo Mode is a non-standard mode that would allow the > 100Mbps RMII interface to run at 200Mbps. > @@ -1073,14 +1079,6 @@ static void lan9303_adjust_link(struct dsa_switch *ds, int port, > ctl &= ~BMCR_FULLDPLX; > > lan9303_phy_write(ds, port, MII_BMCR, ctl); > - > - if (port == chip->phy_addr_base) { > - /* Virtual Phy: Remove Turbo 200Mbit mode */ > - lan9303_read(chip->regmap, LAN9303_VIRT_SPECIAL_CTRL, &ctl); > - > - ctl &= ~LAN9303_VIRT_SPECIAL_TURBO; > - regmap_write(chip->regmap, LAN9303_VIRT_SPECIAL_CTRL, ctl); > - } > } > > static int lan9303_port_enable(struct dsa_switch *ds, int port, The chip variable has to go, otherwise there will be a warning in bisection until patch 6 removes this entire function: drivers/net/dsa/lan9303-core.c:1059:18: warning: unused variable 'chip' [-Wunused-variable] struct lan9303 *chip = ds->priv; ^