Skip to contentSkip to conversation

RDMA/nes: Change for phy clock divisor

PATCH In review Tatyana Nikolova 3 participants 5 messages Dec 7, 2011 – Jan 16, 2012 2 messages not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/nes: Change for phy clock divisor

Change the MDIO bus clock to frequency 2.5MHz

---
 drivers/infiniband/hw/nes/nes_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/nes/nes_hw.c +1 -1
index 7c0ff19..6ee570b 100644
@@ -1529,7 +1529,7 @@ int nes_init_phy(struct nes_device *nesdev)
 	} else {
 		/* setup 10G MDIO operation */
 		tx_config &= 0xFFFFFFE3;
-		tx_config |= 0x15;
+		tx_config |= 0x1D;
 	}
 	nes_write_indexed(nesdev, NES_IDX_MAC_TX_CONFIG, tx_config);
 
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAG4TOxMjjT3+NJZFito656=O+cVDw_FXWAZ-vyjWsPF415+5vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#3 lore raw

In the patch we modify a register, which controls the divisor of the core clock for the MDIO bus clock (MDC). The maximum standard value of the MDC is 2.5MHz, currently it is set to 3.5MHz.
We want to comply to the spec.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Roland Dreier
Subject: Re: [PATCH] RDMA/nes: Change for phy clock divisor

Quoted 1 line · <[email protected]> wrote:

Change the MDIO bus clock to frequency 2.5MHz

Any comment on why you want to change the bus clock?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to a message not in the archive

Hello Roland,

Quoted 1 line · <[email protected]> wrote:

Any comment on why you want to change the bus clock?

By mistake I had sent the response to your question using your old email @kernel.org and you probably never got it.

In this patch, the clock divisor is increased, so that MDIO bus clock frequency is reduced from 3.5MHz to 2.5MHz. In this way, it complies with the standard maximum clock frequency 2.5MHz, defined in MDIO specs.

I have submitted a few more patches after this one. Could you please review and apply them?

Thank you.
Tatyana

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Roland Dreier
Sent: Wednesday, December 07, 2011 5:20 PM
To: Nikolova, Tatyana E
Cc: [email protected]
Subject: Re: [PATCH] RDMA/nes: Change for phy clock divisor

Quoted 1 line · <[email protected]> wrote:

Change the MDIO bus clock to frequency 2.5MHz

Any comment on why you want to change the bus clock?

------------------------------------------------------------------
On Wed, Dec 7, 2011 at 2:24 PM, Tatyana Nikolova <[email protected]> wrote:

Change the MDIO bus clock to frequency 2.5MHz

---
 drivers/infiniband/hw/nes/nes_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/nes/nes_hw.c +1 -1
index 7c0ff19..6ee570b 100644
@@ -1529,7 +1529,7 @@ int nes_init_phy(struct nes_device *nesdev)
 	} else {
 		/* setup 10G MDIO operation */
 		tx_config &= 0xFFFFFFE3;
-		tx_config |= 0x15;
+		tx_config |= 0x1D;
 	}
 	nes_write_indexed(nesdev, NES_IDX_MAC_TX_CONFIG, tx_config);
 

--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 13AA599688F47243B14FCFCCC2C803BBA51E-AtyAts71sc88Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org

#6 lore raw
Quoted 1 line · Tatyana E

By mistake I had sent the response to your question using your old email @kernel.org and you probably never got it.

[email protected] is not old and still works fine. It's probably the best address
for open source stuff.

Quoted 1 line

I have submitted a few more patches after this one. Could you please review and apply them?

yes, I will get to them.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html