Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9989428rwr; Fri, 12 May 2023 02:05:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50C35YEYLTcyf+awICyqx6EUMSF+nc2ENHQG5AW5PmUwYoT75Ti8Fele7CCZle5u+6Ub27 X-Received: by 2002:a17:903:11d1:b0:1a9:8ba4:d0e3 with SMTP id q17-20020a17090311d100b001a98ba4d0e3mr28141559plh.59.1683882331902; Fri, 12 May 2023 02:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683882331; cv=none; d=google.com; s=arc-20160816; b=spxPmDMl+dhZoOx5fzYgyIaf24goIxmjDfpD04GOFYUJStHtIN5vRVzLOZIsX2iRww lTqsNTm7I3OthobdTPgai/oWbJDmEmZrKeNU2xIwgk7Z5gIeH0KjVKkW1BAXgTTmDYqC ftmjimgnRwcaqFZLKZa/PcPZ0F8NrEqF8s1LX3wbht1WF4iWBsXaWAVDcbjHvnMx0rL9 6QUPRCHbVlE9cyojdQSbV+Dt+x7DsAMjHvfHuUzGYcS4DqUE/bCDToGZddyMiC8mnwh0 jRfu3Tfv2FW2jRy/SK+Jtx7+ogoFk8XJp0/MZfCVCyFbLtz0Kwm8mLIy5y2nDIAmI7vX r+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Mggnu95n/RU6DeRgS9ZUs2b/avyHGbZvVWNqilcNijI=; b=ssbdACrZKJ2UeDO1rt6rSg0vAknJrTNtGT+PHMlOUVzXVGuhqaw26e4Sa6+GBPXeaP qfJCsq8ewcLGuljuA1bXkmsycoh/aKgspe++t4+6ijPHjaud4knLRNlVk0vxihr8kqIg UNrcvkn/depcYH8B75l3H/qyhl8RdipudWzJhf0Lcg4kwKrArbi6OUhz4tIdBI5svjA9 cLchpo/lcRkkKxZUIv1O6p3AJP5V4+akvPgRnreOSqj4n0bJYfGCUa9aVSWuIQs5ACkm gEsPiGm4BaBFPOq1QP7nvaTlIJGi88F0sG2zTOqIPG6H+U0fi70A+5cNkbV2ZVSd95iA +haw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MDA2vJcm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a17090270c700b0019d038765f6si8215429plt.449.2023.05.12.02.05.17; Fri, 12 May 2023 02:05:31 -0700 (PDT) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MDA2vJcm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240339AbjELJCf (ORCPT + 99 others); Fri, 12 May 2023 05:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240351AbjELJCb (ORCPT ); Fri, 12 May 2023 05:02:31 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAFB5100FD; Fri, 12 May 2023 02:02:20 -0700 (PDT) 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=Mggnu95n/RU6DeRgS9ZUs2b/avyHGbZvVWNqilcNijI=; b=MDA2vJcmlGYWbAYVWlbKScMTRY vF42WVOhOikWSi9jWbuFHQ1JtHvU+8G0TGE1XfkmCbjSEXOLHOVHrIJ0VnEFagkOI1H6/No9N+j4O bWS5qIDeN9+7jVQqNBdeLLEQV9cJTPdrn4oc3QMb1vAo1q3WAOb/RI8dV//oqci/88ItYS0mRLrbH +M7Lf+sPQWMHsM3p8dndw1zrdtj6CtRmEQiaKmgMd2CouTyywvldb1/ivBWaaqPCMiFY/9Knc1vbG PprqPQeiksn1ahH0l/mpmcEBqq2Fmy6SrZeBdJJkTGwCi3hUQyxwK6WBxkmKQ1Fn44mlmFlEfHbeg WP/aYyOQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35578) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pxOfA-00081X-H1; Fri, 12 May 2023 10:02:08 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pxOf7-0004vy-PP; Fri, 12 May 2023 10:02:05 +0100 Date: Fri, 12 May 2023 10:02:05 +0100 From: "Russell King (Oracle)" To: Yan Wang Cc: andrew@lunn.ch, hkallweit1@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 v5] net: mdiobus: Add a function to deassert reset Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, May 12, 2023 at 03:08:53PM +0800, Yan Wang wrote: > + gpiod_set_value_cansleep(reset, gpiod_is_active_low(reset)); > + fsleep(reset_assert_delay); > + gpiod_set_value_cansleep(reset, !gpiod_is_active_low(reset)); Andrew, one of the phylib maintainers and thus is responsible for code in the area you are touching. Andrew has complained about the above which asserts and then deasserts reset on two occasions now, explained why it is wrong, but still the code persists in doing this. I am going to add my voice as another phylib maintainer to this and say NO to this code, for the exact same reasons that Andrew has given. You now have two people responsible for the code in question telling you that this is the wrong approach. Until this is addressed in some way, it is pointless you posting another version of this patch. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!