From: David Miller <davem@davemloft.net>
To: f.fainelli@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next 1/2] net: phy: bcm7xxx: fix spurious MDIO failures during workaround
Date: Mon, 17 Mar 2014 16:04:36 -0400 (EDT) [thread overview]
Message-ID: <20140317.160436.1560449781844166790.davem@davemloft.net> (raw)
In-Reply-To: <1394838545-7746-2-git-send-email-f.fainelli@gmail.com>
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Fri, 14 Mar 2014 16:09:04 -0700
> @@ -87,21 +87,6 @@ static void phy_write_misc(struct phy_device *phydev,
>
> static int bcm7xxx_28nm_afe_config_init(struct phy_device *phydev)
> {
> - /* write AFE_RXCONFIG_0 */
> - phy_write_misc(phydev, 0x38, 0x0000, 0xeb19);
> -
> - /* write AFE_RXCONFIG_1 */
> - phy_write_misc(phydev, 0x38, 0x0001, 0x9a3f);
> -
> - /* write AFE_RX_LP_COUNTER */
> - phy_write_misc(phydev, 0x38, 0x0003, 0x7fc7);
> -
> - /* write AFE_HPF_TRIM_OTHERS */
> - phy_write_misc(phydev, 0x3A, 0x0000, 0x000b);
> -
> - /* write AFTE_TX_CONFIG */
> - phy_write_misc(phydev, 0x39, 0x0000, 0x0800);
> -
...
> + /* write AFE_RXCONFIG_0 */
> + phy_write_misc(phydev, 0x38, 0x0000, 0xeb19);
> +
> + /* write AFE_RXCONFIG_1 */
> + phy_write_misc(phydev, 0x38, 0x0001, 0x9a3f);
> +
> + /* write AFE_RX_LP_COUNTER */
> + phy_write_misc(phydev, 0x38, 0x0003, 0x7fc7);
> +
> + /* write AFE_HPF_TRIM_OTHERS */
> + phy_write_misc(phydev, 0x3A, 0x0000, 0x000b);
> +
> + /* write AFTE_TX_CONFIG */
> + phy_write_misc(phydev, 0x39, 0x0000, 0x0800);
> +
> +
> return 0;
> }
>
If you can use mnenomics in the _comment_ you can certainly do so in
the code too.
I want defines added for the address and content of these registers.
Thanks.
next prev parent reply other threads:[~2014-03-17 20:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 23:09 [PATCH net-next 0/2] net: phy: bcm7xxx: workaround updates Florian Fainelli
2014-03-14 23:09 ` [PATCH net-next 1/2] net: phy: bcm7xxx: fix spurious MDIO failures during workaround Florian Fainelli
2014-03-17 20:04 ` David Miller [this message]
2014-03-14 23:09 ` [PATCH net-next 2/2] net: phy: bcm7xxx: properly clear AFE_RX_LP_COUNTER Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140317.160436.1560449781844166790.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).