Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2273092pxb; Mon, 11 Jan 2021 05:45:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWOQatJwOX5WmiOti2IBiehBZ4kgrXdGH3fppOkIM6+N5Zahg8yld6j4HPJTUogzII9aQr X-Received: by 2002:a50:bb44:: with SMTP id y62mr14234629ede.103.1610372724433; Mon, 11 Jan 2021 05:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610372724; cv=none; d=google.com; s=arc-20160816; b=TNXdO1RiVqsscMsOR/FT26qxy5Xkyk856/9XHAUKDtudyj4cgPwi78EBsvl0UrXfdm /+pGDyY7lN6dwHp+ugcfwiP8e6NubeLbFQKpxEF+8aAWUML/EnvMYfe0XHrrsWC3+iUx FFpPcMylrD3QRkbkm3A5jRvMOWRms5+WvG6VLSe7AoZ5jS2/E6eN1qMGP3VzCfPPe1Sy UYF9Z/21nzinEJJqCLS9nTYMgHRqmivz4pU5GaBi0ui44vPHdZAbY/hu2AayYRJ4+QhO oMApt1cimjOvdk5HrarRGjshQIwa5FkKIBXb0ZeVf1eSHtvQoVnYMtjOfTBw4Q9ukOGL aI0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VPX+TWLUVWMLDjFiSnhOZGL+SWYosAkfqkHnqdSxUAM=; b=q2zkfHCfHCM+K0tDBR3ckCGNqWBT7OaVmlNGIIUED4HuVK3Af3WlfJkyPWO8xunZNs 4HAAeuDchfFurapy7tbE6FZ4oj1OqkttrS7Ab4GVlA+/WVfblLxjnkzsnjPpE5AHHwPU m11p3ysjHWkuq1xNMqRkeAlx7AiBZSHvEPZsx4bUPV37S8hYgutKZfpZnN6XlVbUtEE5 W00tCOaFjU2V6CHjdzxTOw5Dil+tq/ErgcuVkpCWvjjJ3wHmyrJ/1pzIWgRjS2zdkQFL Fj5VH7v+Mqa24z/vTStxdjRVU+ELwPpGGGsvRsN5tm+8JNm5Jk4+a/WUwf3S+f3QxsVm pp3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oYpWOHIw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si6209703edy.299.2021.01.11.05.44.59; Mon, 11 Jan 2021 05:45:24 -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=pass header.i=@gmail.com header.s=20161025 header.b=oYpWOHIw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387540AbhAKNkp (ORCPT + 99 others); Mon, 11 Jan 2021 08:40:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731984AbhAKNkl (ORCPT ); Mon, 11 Jan 2021 08:40:41 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6FCC061786; Mon, 11 Jan 2021 05:40:01 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id 81so17761534ioc.13; Mon, 11 Jan 2021 05:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VPX+TWLUVWMLDjFiSnhOZGL+SWYosAkfqkHnqdSxUAM=; b=oYpWOHIwy6XftMFufPxgO9fchZbGj2sitlgT6yrncOYW3o+rDnEaoDdEBgXbnIkNeX BRgMVzfxXtPehTLtxH6/A+/pCGEJ3rhhXAiCTmRByGxtCcl8HuLLDc4BXZpAV55H3biZ 0yDuJ/sOHEfW0HPXS5Fkcy+xtw+eO8Vz+ABu8n7XEudo17TUNCRfI2C5ZA6PpHF0HWLe Lx7Pjc40cr4XA321nE1pFq1IE4Pg7cHaco2k4hd0nh2MkbN3i8tPv7ypcjFqWMR7xBRv c3Bd9zDm7FaaHKwWj0GVydeK7Us4jjDSjh2RO7254w2P/sPOk9WCkIF5XTrXgUCTwGu8 z98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VPX+TWLUVWMLDjFiSnhOZGL+SWYosAkfqkHnqdSxUAM=; b=ExQYTm2mjN9pDwKXVoFR7DGfblCYkkdZkc4f9UaQ7+fkxpHeXRVhVMvENp7hSN/Y8S YqUc8vgAPYotsIiKOg9iFsSYqxpYIKm2wiIjaRdiwANVdVXqHXXTN59t82ZfYmaieIEj K4mmHeSN2h65tGQV/b5UFf1KXRowRtJBN0ctomcpdecmkzITic1BnaSv4lxEmltu+ybB RK0PngNCKnciaKKu1mHbyZpj4TojRH7Tbz9BpHHvpp3AOvFvquPT/SUoS0rVEMfmFmhE oyExkAKPDRtAfPagJWpA/d6ZicvTE9R4tl9Wr9+oy/yr7c3onK+sHs4vTWTST+gnkJQ5 T2RA== X-Gm-Message-State: AOAM532w/nemwmpkAXu4NksVBYPXr34KoLkKWZcFfvLtKUYx0u7WCE9r pLCxSViWjNhEen45aRq3XBPuJTLt7bj0QUMNKwU= X-Received: by 2002:a02:c8c7:: with SMTP id q7mr14527159jao.7.1610372400687; Mon, 11 Jan 2021 05:40:00 -0800 (PST) MIME-Version: 1.0 References: <20210111054428.3273-1-dqfext@gmail.com> <20210111054428.3273-3-dqfext@gmail.com> <20210111110407.GR1551@shell.armlinux.org.uk> In-Reply-To: <20210111110407.GR1551@shell.armlinux.org.uk> From: DENG Qingfang Date: Mon, 11 Jan 2021 21:40:00 +0800 Message-ID: Subject: Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support To: Russell King - ARM Linux admin 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, =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , Frank Wunderlich Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?