Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2545115lqb; Tue, 28 May 2024 03:24:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUl0/64hRGkMQhOZkMjAP0KrF/9AnnY2AUoJr1CcyqK9w1IxjWUrcXn4BsYgxQt/eid3g2r7bYRKW6HZhsWhAdwLH+haz6bxU9R3yOqDg== X-Google-Smtp-Source: AGHT+IF8VCpEwvKHXHq62rvQ3livAIrxXtg3QicJgw6fUgxkKprqmq4C7YUNOzy43JWc3efv39bF X-Received: by 2002:a05:6830:b8c:b0:6f1:23f0:7ec2 with SMTP id 46e09a7af769-6f8d0a869fcmr13416805a34.18.1716891873477; Tue, 28 May 2024 03:24:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716891873; cv=pass; d=google.com; s=arc-20160816; b=PRIu7ZsCbUrhIfew0hfyXHMaUBiRlTXkBzd0+aL+CV+1VuXBNz1JM/4Vu20Fu4iPPy P8hn/sUBrJl+8SMk3ltR0el+xAdFNACKDXoflpl6FoYLcsu/n45Xr+QHF1kGRivyKYsk Fsv85B6rPMpiHhdhvqaeAiEiT/C01zeknKJNjhqMjJPtkuW4HS0fVkL2N+RrQUHoPZm+ KbEr7VUdZdxJjkdEaKG69VWWsbvbyoDJKLTjcYdVFhJV3uM0U/zRi4DbhlqG17mDjlTW XpcdW84dqgN0yPrJK/97qfi64y+GENxP8f5PgyKfAoZ1eD8LawKc6kdaRNbblPxdsBT5 vy8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=Zttd9Ti6dlrdltMOkpQrnFnbw+iW5a9NAfwZ4M3vUCo=; fh=RktZsMmkGywU8fmT+u2zPGIOTtp6sgScVEHHn8fdWwU=; b=zf8JQdC8sSYfm5JouFqClbuz54GW5ZIU52Bb4b24EhE8JJQ7KWwe4kWK0PcnBqWL6/ t7uHz6o893OcXerSlAHFJ+oZE6enpmJV1F3PZZiSNHf6yqKAE091zrMubWzTN3JsuLH/ w3Cz/WbCxV/BcftNG9rXxrVLlgyOaI4cpeid6bxLLKSRDmi8oqF3dre/iy3Z5hFpMI1H zRXod0xoBFD9OWswAva6lZwAI5z2qxtiK8WiNYP8RlG56uaR3f+NlSkCV9xvbvNTquxL /UN4NEbH9l2DYEfRGGRxhMbGhHA5360c7YRrdG5gW8V0HvLQvEHwhYcRjDBg5GMjKCao 3Skg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0gQC9ZPn; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-192105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18c553fsi100888341cf.586.2024.05.28.03.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=0gQC9ZPn; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-192105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B3E21C24AD0 for ; Tue, 28 May 2024 10:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB95F16B743; Tue, 28 May 2024 10:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="0gQC9ZPn" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 806F315E96; Tue, 28 May 2024 10:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891802; cv=none; b=uas+o0OUDj2rtVcgJpbDIt6nd3acTso4iHbwCZegHncJP5yq8OozhFKzj3QUvqhgFYeqaapfyO2zS8OkfKR3GbTuB7fi6+EEVWK+7jts+yLfDGNtw4joq/OwTI6eC/0QloJaWjLYDbhx93qmHg9lxEqQ0BO7vLkFlWqc5aygLiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891802; c=relaxed/simple; bh=ch5ac9DBIgqbQiYKszbFUqZeKjUsPbq/tOX9tgLBZQU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PwAdSLEP0FtoG109Mj1jFaNTqMhSSDq3Zr3unw4353HnW88qJncvOYGW9yEOMFWuxFaRVXH2VnyLC7ime0c4irUPeusdz+lOkTpw4l+TVf+6oHFco4EHDkqEdFCz6/JkO207n5oxT+Sk++5FhcfGgcZo8jzQXSbBA+O3Pv9H02Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=0gQC9ZPn; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Zttd9Ti6dlrdltMOkpQrnFnbw+iW5a9NAfwZ4M3vUCo=; b=0gQC9ZPnrBS+TIfGGqnRL5Ztk3 jMr9cYdK88WgnFC83V1Z/DwVomq7NX5ByBjlenoZ6mvHkTf8pGfS8A6K4t/nek2oXGny4mK2uvVOi vZrn7eJwzLGRRduhpR5HCwUjEhQwYrLjOIK4BGgEtE/fzJHyl5MsB/D2WgS3pnuHp0NYmylntRyFz eCxYkovFdtOMVxNZV2ZiCEaPrC/vWIwlJfj7J5tkDAshChoGXVvQUnDrFPt57wPWaY+gjPpsOof5e AIkYygEsEOM2dXQ9Qmu+XiopiEG26vzY1bhyU55Sh0wI//yEL6U49w/jng2Zcxwwt2uef7DDXRwqh l0/zKlRQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:37478) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBtyy-0004cT-2s; Tue, 28 May 2024 11:23:04 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sBtyz-0003BN-Qy; Tue, 28 May 2024 11:23:05 +0100 Date: Tue, 28 May 2024 11:23:05 +0100 From: "Russell King (Oracle)" To: Serge Semin Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC net-next 3/3] net: stmmac: Drop TBI/RTBI PCS flags Message-ID: References: <20240524210304.9164-1-fancer.lancer@gmail.com> <20240524210304.9164-3-fancer.lancer@gmail.com> 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: <20240524210304.9164-3-fancer.lancer@gmail.com> Sender: Russell King (Oracle) On Sat, May 25, 2024 at 12:02:59AM +0300, Serge Semin wrote: > First of all the flags are never set by any of the driver parts. If nobody > have them set then the respective statements will always have the same > result. Thus the statements can be simplified or even dropped with no risk > to break things. > > Secondly shall any of the TBI or RTBI flag is set the MDIO-bus > registration will be bypassed. Why? It really seems weird. It's perfectly > fine to have a TBI/RTBI-capable PHY configured over the MDIO bus > interface. > > Based on the notes above the TBI/RTBI PCS flags can be freely dropped thus > simplifying the driver code. > > Signed-off-by: Serge Semin I think this patch can come first in the series, along with another few patches that remove stuff. Any objection? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!