[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5818E77C.7060604@codeaurora.org>
Date: Tue, 1 Nov 2016 14:05:32 -0500
From: Timur Tabi <timur@...eaurora.org>
To: David Miller <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] net: qcom/emac: enable flow control if requested
On 11/01/2016 01:30 PM, Timur Tabi wrote:
> + if (!phydev->pause && phydev->asym_pause)
> + mac |= TXFC;
I think this might be wrong, and nb8800_pause_config() has it right.
This should be:
if (!phydev->pause != !phydev->asym_pause)
which is a logical-xor.
Do you concur?
--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc. Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists