[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5817B432.7070304@codeaurora.org>
Date: Mon, 31 Oct 2016 16:14:26 -0500
From: Timur Tabi <timur@...eaurora.org>
To: Florian Fainelli <f.fainelli@...il.com>, netdev@...r.kernel.org,
zefir.kurtisi@...atec.com, scampbel@...eaurora.org,
alokc@...eaurora.org, shankerd@...eaurora.org, andrew@...n.ch
Subject: Re: [PATCH] net: phy: at803x: the Atheros 8031 supports pause frames
Florian Fainelli wrote:
>>pause asym_pause enable tx? enable rx?
>>----- ---------- ---------- ----------
>> 0 0 No No
>> 0 1 Yes No
>> 1 0 Yes Yes
>> 1 1 No Yes
>>
>>The last two seem backwards. The internal driver enables RX and TX if
>>pause and asym_pause is enabled.
Is this chart correct? I see drivers handle this differently.
nb8800_pause_config() has this:
priv->pause_rx = phydev->pause;
priv->pause_tx = phydev->pause ^ phydev->asym_pause;
But bcm_sf2_sw_adjust_link() does this:
if (phydev->pause) {
if (phydev->asym_pause)
reg |= TX_PAUSE_EN;
reg |= RX_PAUSE_EN;
}
Which one is correct?
--
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