mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: hayeswang <hayeswang@realtek.com>
To: "'Francois Romieu'" <romieu@fr.zoreil.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 10:52:24 +0800	[thread overview]
Message-ID: <C4853E741FE64400AFA06E6FB7B634D9@realtek.com.tw> (raw)
In-Reply-To: <20120327225437.GC22177@electric-eye.fr.zoreil.com>

 Francois Romieu [mailto:romieu@fr.zoreil.com] 
 [...]
> > -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.
> 

It seems to be fine, but I would modify them. Thanks.
 
Best Regards,
Hayes


  reply	other threads:[~2012-03-28  2:52 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
2012-03-28  2:52     ` hayeswang [this message]
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=C4853E741FE64400AFA06E6FB7B634D9@realtek.com.tw \
    --to=hayeswang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    /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®