From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [PATCH v3 1/1 net-next] NET: FEC: dynamtic check DMA desc buff type Date: Wed, 20 Mar 2013 17:28:35 +0000 Message-ID: <1363800515.2677.13.camel@bwh-desktop.uk.solarflarecom.com> References: <1357265063-30528-1-git-send-email-Frank.Li@freescale.com> <20130320160418.GG20530@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Frank Li , , , , , , , To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:30319 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878Ab3CTR2k (ORCPT ); Wed, 20 Mar 2013 13:28:40 -0400 In-Reply-To: <20130320160418.GG20530@pengutronix.de> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2013-03-20 at 17:04 +0100, Uwe Kleine-K=C3=B6nig wrote: > Hello, >=20 > On Fri, Jan 04, 2013 at 10:04:23AM +0800, Frank Li wrote: > > MX6 and mx28 support enhanced DMA descriptor buff to support 1588 > > ptp. But MX25, MX3x, MX5x can't support enhanced DMA descriptor buf= f. > > Check fec type and choose correct DMA descriptor buff type. > >=20 > > Remove static config CONFIG_FEC_PTP. > > ptp function will be auto detected. > Your patch (now as ff43da86c69d76a726ffe7d1666148960dc1d108 in v3.9-r= c1) > breaks building with CONFIG_FEC=3Dm: >=20 > ERROR: "fec_ptp_init" [drivers/net/ethernet/freescale/fec.ko] undefi= ned! > ERROR: "fec_ptp_ioctl" [drivers/net/ethernet/freescale/fec.ko] undef= ined! > ERROR: "fec_ptp_start_cyclecounter" [drivers/net/ethernet/freescale/= fec.ko] undefined! >=20 > IMHO you should build fec.o and fec_ptp.o into the same module as the= y > cannot live without each other anyhow. They are in the same module. So I don't see how that error is possible= =2E > Having said I wonder if it would be worthwile to support FEC without > PTP_1588_CLOCK. For example make the above three functions static > inlines if CONFIG_PTP_1588_CLOCK=3Dn and drop the select on the latte= r. See previous discussions: , , Ben. --=20 Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.