Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2280861pxb; Mon, 11 Jan 2021 05:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi2IYuQOLB5WP+fO9gWhy1CeyrXIlqT8UzuzPj5uVaq5hUz9z6NfbhDZeWb9xfoZQoVlYJ X-Received: by 2002:a17:906:a43:: with SMTP id x3mr8498141ejf.277.1610373556375; Mon, 11 Jan 2021 05:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610373556; cv=none; d=google.com; s=arc-20160816; b=vEYP3OH7CVykqMEUD5f+FeM8dhU/OBlS2DRi9Lm3PmG1d7l83ZjmPnLT1OhFAk+u36 f04vzv00rN5KWq7dMufhMUgnCH3EaoujbPnIcBHvzCLfTLGbBhIlRDkQFiWbL60V99tD Lygd94IQfPB4HFiVSS4vIIpMDxI9cFWdalbKKn9pKCvTWcctwcCBjpMVL7DOsgoqIhkZ UEyhxuuwwjRF9MmuaRjpR1agv3gCiDB01iNQAMCfHhVdyD/qN1u7yAeW86eK26tR6emW T9MPk6Ki7qHEaLaXUt9ANO6GNEY0xm0T7wT7+NlucAEXxoF9djquyAC42NkhmMWTUfvE K5Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4EFw0oAHCpZpwVi8T4aoUbYDN24+hywjYSLIVVld9J8=; b=KQGzGUrOQStwuZCyfvMFj3IYr49ABs+M5Wp85JH6NseUk3SJaeMCt0s4gGxBfrvedY mkG+z1/fQUmoeEBZTlcrdFVC5Z2EWvb36JYxxmuvtKjspxG2pDbsP3JFGkn9q7dqwgE3 DuncXJ7cs8u/yLwgcVRsjs7aoDJEfW/r6zDZjwiiwzDUM0emnRkb2DAUejUiaIPu4ECu KPLZN7fOrBKwTdkPkKmR60/4dbKC3nOu89Cc0tnycwQm67ENGwkSR6YQQAHXYrALQaCv pV2WtKcinpBurPZfiQbzvYVRfMn/SYDKHSQdcWssGJgVlc1+1WvedgqIjH0GPQVGcHBr B1uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=1tDsVBAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si6907779edr.470.2021.01.11.05.58.52; Mon, 11 Jan 2021 05:59:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=1tDsVBAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388010AbhAKN4G (ORCPT + 99 others); Mon, 11 Jan 2021 08:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728969AbhAKN4E (ORCPT ); Mon, 11 Jan 2021 08:56:04 -0500 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 8A21DC061786; Mon, 11 Jan 2021 05:55:23 -0800 (PST) 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=4EFw0oAHCpZpwVi8T4aoUbYDN24+hywjYSLIVVld9J8=; b=1tDsVBAhI42EDyWVShCkITD09 5gsmbTgQIYURjcVuc1Isfmu68ZdyDspCYKlGDC5fDQWsyGNE/gCiHjpJ5Dcant/EvaOMcKpu9DjRG 2bAhhvy9q82+Of3Plq46F0ZUZMYK8aKjc/59aMgueg+FX4lc6QiBRUVZ5yvy725VQGQVwsI16OHtI rsusLQLXigiKXDEqIIwnK6pDhrwG06Uh7wSE47s6Dx1Ct5FE85TSq6EAX9JdiZ6AtN0gFPl2rKv3y zAk3/yZva5xb/yMSWWCMz+6g080Vc/w9dUq4vC6Fybu48pULyvHfEuEWqotb7JJCE+x1Wwm0qRBK9 wsykURg5A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46612) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyxf7-00076T-Or; Mon, 11 Jan 2021 13:55:13 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kyxf3-0005Hw-AD; Mon, 11 Jan 2021 13:55:09 +0000 Date: Mon, 11 Jan 2021 13:55:09 +0000 From: Russell King - ARM Linux admin To: DENG Qingfang Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Matthias Brugger , Sean Wang , Landen Chao , Philipp Zabel , netdev , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "moderated list:ARM/Mediatek SoC support" , linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Ren=E9?= van Dorst , Frank Wunderlich Subject: Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support Message-ID: <20210111135509.GT1551@shell.armlinux.org.uk> References: <20210111054428.3273-1-dqfext@gmail.com> <20210111054428.3273-3-dqfext@gmail.com> <20210111110407.GR1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 09:40:00PM +0800, DENG Qingfang wrote: > On Mon, Jan 11, 2021 at 7:04 PM Russell King - ARM Linux admin > wrote: > > > > FYI, Documentation/driver-api/gpio/consumer.rst says: > > > > For output GPIOs, the value provided becomes the initial output value. > > This helps avoid signal glitching during system startup. > > > > Setting the pin to be an output, and then setting its initial value > > does not avoid the glitch. You may wish to investigate whether you > > can set the value before setting the pin as an output to avoid this > > issue. > > > > So, setting the Output Enable bit _after_ setting the direction and > initial value should avoid this issue. Right? It depends on the hardware. I don't know how your hardware works, so I can't say whether doing anything will result in correct behaviour, or even work. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!