From: Francois Romieu <romieu@fr.zoreil.com>
To: Hayes Wang <hayeswang@realtek.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 2/5] r8169: add csi_opt
Date: Wed, 28 Mar 2012 00:54:37 +0200 [thread overview]
Message-ID: <20120327225437.GC22177@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <1332834834-5185-2-git-send-email-hayeswang@realtek.com>
Hayes Wang <hayeswang@realtek.com> :
> Modify the CSI relative functions by using csi_opt method.
I'll queue the series until Davem opens net-next.
We are supposed to be in a "merge previously queued patches and fix problems"
phase yet.
> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
> index 3edb996..35b1fea 100644
> --- a/drivers/net/ethernet/realtek/r8169.c
> +++ b/drivers/net/ethernet/realtek/r8169.c
[...]
> -static void rtl_csi_access_enable_2(void __iomem *ioaddr)
> +static void __devinit rtl_init_csi_ops(struct rtl8169_private *tp)
> {
> - rtl_csi_access_enable(ioaddr, 0x27000000);
> + struct csi_ops *ops = &tp->csi_ops;
> +
> + switch (tp->mac_version) {
> + default:
> + ops->write = r8169_csi_write;
> + ops->read = r8169_csi_read;
> + break;
> + }
> }
>
> struct ephy_info {
[...]
> @@ -6199,6 +6267,7 @@ rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> rtl_init_mdio_ops(tp);
> rtl_init_pll_power_ops(tp);
> rtl_init_jumbo_ops(tp);
> + rtl_init_csi_ops(tp);
>
> rtl8169_print_mac_version(tp);
It will enable the CSI read/write functions where they previously weren't.
Is it really supposed to behave this way ?
Thanks.
--
Ueimor
next prev parent reply other threads:[~2012-03-27 22:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 7:53 [PATCH net-next 1/5] r8169: modify pll power function Hayes Wang
2012-03-27 7:53 ` [PATCH net-next 2/5] r8169: add csi_opt Hayes Wang
2012-03-27 22:54 ` Francois Romieu [this message]
2012-03-28 2:52 ` hayeswang
2012-03-27 7:53 ` [PATCH net-next 3/5] r8169: support RTL8402 Hayes Wang
2012-03-27 7:53 ` [PATCH net-next 4/5] r8169: adjust some functions of 8111f Hayes Wang
2012-03-27 7:53 ` [PATCH net-next 5/5] r8169: support RTL8411 Hayes Wang
2012-03-27 22:54 ` Francois Romieu
2012-03-28 2:52 ` hayeswang
2012-03-27 22:54 ` [PATCH net-next 1/5] r8169: modify pll power function Francois Romieu
2012-03-28 2:52 ` hayeswang
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=20120327225437.GC22177@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=hayeswang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®