From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F2FAC4361B for ; Wed, 16 Dec 2020 02:04:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B2D3230FF for ; Wed, 16 Dec 2020 02:04:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725785AbgLPCEm (ORCPT ); Tue, 15 Dec 2020 21:04:42 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:56562 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbgLPCEm (ORCPT ); Tue, 15 Dec 2020 21:04:42 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kpMAV-00CD9O-GZ; Wed, 16 Dec 2020 03:03:55 +0100 Date: Wed, 16 Dec 2020 03:03:55 +0100 From: Andrew Lunn To: Serge Semin Cc: Alexandre Torgue , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, Serge Semin , Alexey Malahov , Jose Abreu , Pavel Parkhomenko , Maxime Coquelin , Jakub Kicinski , Giuseppe Cavallaro , Vyacheslav Mitrofanov , "David S. Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC] net: stmmac: Problem with adding the native GPIOs support Message-ID: <20201216020355.GA2893264@lunn.ch> References: <20201214092516.lmbezb6hrbda6hzo@mobilestation> <20201214153143.GB2841266@lunn.ch> <20201215082527.lqipjzastdlhzkqv@mobilestation> <20201215135837.GB2822543@lunn.ch> <20201215145253.sc6cmqetjktxn4xb@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201215145253.sc6cmqetjktxn4xb@mobilestation> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > > From what you are saying, it sounds like from software you cannot > > independently control the GPIO controller reset? > > No. The hardware implements the default MAC reset behavior. So the > GPIO controller gets reset synchronously with the MAC reset and that > can't be changed. Is there pinmux support for these pins? Can you disconnect them from the MAC? Often pins can be connected to different internal IP blocks. Maybe you can flip the pin mux, perform the MAC reset, and then put the pinmux back to connect the pins to the MAC IP again? Andrew