From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Subject: Re: [PATCH v3 2/4] net: nb8800: Simplify nb8800_pause_config() Date: Tue, 14 Nov 2017 13:22:50 +0000 Message-ID: References: <230165aa-eaf1-6e2b-7ff3-45b3ee4ffc62@sigmadesigns.com> <569542b1-8e56-d7da-f7a0-affd89bfed62@sigmadesigns.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Cc: David Miller , netdev , "Linux ARM" , Florian Fainelli , Thibaud Cornic , Mason To: Marc Gonzalez Return-path: Received: from unicorn.mansr.com ([81.2.72.234]:52404 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753855AbdKNNWw (ORCPT ); Tue, 14 Nov 2017 08:22:52 -0500 In-Reply-To: <569542b1-8e56-d7da-f7a0-affd89bfed62@sigmadesigns.com> (Marc Gonzalez's message of "Tue, 14 Nov 2017 13:56:34 +0100") Sender: netdev-owner@vger.kernel.org List-ID: Marc Gonzalez writes: > On 14/11/2017 13:38, Måns Rullgård wrote: > >> Marc Gonzalez writes: >> >>> The "flow control enable" bit can be tweaked, even if DMA is enabled. >> >> No, it can't. Maybe on some of your newer chips it can, but not on the >> older ones. > > Again, I suppose you are referring to your SMP8642-based board. > > Are you saying you tested this patch, and it doesn't work? > What are the symptoms? I didn't test that patch per se. I did initially try simply changing that bit, and this didn't work. Either it had no effect, or it locked up the controller, I forget which. The manual explicitly states that writes are forbidden while the DMA enabled bit is set. If shutting down the DMA really isn't possible, I would rather just allow changing the flow control setting only when the interface is stopped. The normal case of getting the initial setting from the auto-negotiation will still work properly. It just won't be possible to change it while the link is active. -- Måns Rullgård