[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121006145634.GA2276@netboy.at.omicron.at>
Date: Sat, 6 Oct 2012 16:56:35 +0200
From: Richard Cochran <richardcochran@...il.com>
To: Haicheng Li <haicheng.li@...ux.intel.com>
Cc: David Miller <davem@...emloft.net>, fengguang.wu@...el.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [net:master 1/9] pch_gbe_main.c:(.text+0x510370): undefined
reference to `pch_ch_control_write'
On Sat, Oct 06, 2012 at 10:07:23PM +0800, Haicheng Li wrote:
>
> IMHO, the reason why the dependency of PCH_PTP becomes so tricky is
> that the code of these two modules call the functions of each other
> (bad code structure?).
Yes, that is the source of the problem. I don't recall how this habit
of having the PTP option as a module got started (and I hope it wasn't
me), but I think the right way to handle this option is with a simple
boolean connected to ifdefs for the MAC driver.
Come to think of it, it may have all started with the gianfar ptp
module. In principle, the time stamping function of a MAC driver can
be completely separate from the clock function, and indeed that is how
the pair of gianfar drivers work.
But for other hardware, it might not be practical to keep the
functions separate, and in that case I would say, just keep it as one
driver.
Thanks,
Richard
PS It looks like no one is really looking after this PCH thing, so
does anyone want to send me a board so I can take care of it? Let me
know off list.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists