All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: netdev@vger.kernel.org, Jeff Garzik <jeff@garzik.org>,
	linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] phylib: Don't allow core of phylib to build as a module
Date: Mon, 02 Jun 2008 18:20:00 -0500	[thread overview]
Message-ID: <48448020.5020407@freescale.com> (raw)
In-Reply-To: <095F258F-72DD-4F27-A457-A57D9FAA1E76@kernel.crashing.org>

Kumar Gala wrote:
> On Jun 2, 2008, at 3:30 PM, Jeff Garzik wrote:
> 
>> Andy Fleming wrote:
>>> I'm partial to the select-it-if-you-need-it paradigm.
>>
>>
>> AFAICS this can all be solved by the platform Kconfig ensuring that 
>> phylib=y
> 
> I don't care for this as it means making sure each platform/board port 
> gets it right.

How is this different from any other kconfig dependency?  It's not too 
hard to scan through your platform code and see what you call...

> I think we'd be better off with a small stub that is 
> always built into the kernel for phy_read/phy_write, etc or the function 
> pointer indirection mechanism.

And then instead of build failures, you'd get a silent runtime failure 
to apply the workaround if phylib is built as a module.

-Scott

WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: Jeff Garzik <jeff@garzik.org>,
	netdev@vger.kernel.org, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] phylib: Don't allow core of phylib to build as a module
Date: Mon, 02 Jun 2008 18:20:00 -0500	[thread overview]
Message-ID: <48448020.5020407@freescale.com> (raw)
In-Reply-To: <095F258F-72DD-4F27-A457-A57D9FAA1E76@kernel.crashing.org>

Kumar Gala wrote:
> On Jun 2, 2008, at 3:30 PM, Jeff Garzik wrote:
> 
>> Andy Fleming wrote:
>>> I'm partial to the select-it-if-you-need-it paradigm.
>>
>>
>> AFAICS this can all be solved by the platform Kconfig ensuring that 
>> phylib=y
> 
> I don't care for this as it means making sure each platform/board port 
> gets it right.

How is this different from any other kconfig dependency?  It's not too 
hard to scan through your platform code and see what you call...

> I think we'd be better off with a small stub that is 
> always built into the kernel for phy_read/phy_write, etc or the function 
> pointer indirection mechanism.

And then instead of build failures, you'd get a silent runtime failure 
to apply the workaround if phylib is built as a module.

-Scott

  reply	other threads:[~2008-06-02 23:20 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02 15:58 [PATCH] phylib: Don't allow core of phylib to build as a module Kumar Gala
2008-06-02 15:58 ` Kumar Gala
2008-06-02 16:03 ` Jeff Garzik
2008-06-02 16:03   ` Jeff Garzik
2008-06-02 16:25   ` Kumar Gala
2008-06-02 16:25     ` Kumar Gala
2008-06-02 16:32     ` Scott Wood
2008-06-02 16:32       ` Scott Wood
2008-06-02 16:39     ` Jeff Garzik
2008-06-02 16:39       ` Jeff Garzik
2008-06-02 19:19       ` Kumar Gala
2008-06-02 19:19         ` Kumar Gala
2008-06-02 20:29         ` Jeff Garzik
2008-06-02 20:29           ` Jeff Garzik
2008-06-02 23:06           ` Kumar Gala
2008-06-02 23:06             ` Kumar Gala
2008-06-02 19:30       ` Kumar Gala
2008-06-02 19:30         ` Kumar Gala
2008-06-02 19:44         ` Andy Fleming
2008-06-02 19:44           ` Andy Fleming
2008-06-02 20:30           ` Jeff Garzik
2008-06-02 20:30             ` Jeff Garzik
2008-06-02 23:07             ` Kumar Gala
2008-06-02 23:07               ` Kumar Gala
2008-06-02 23:20               ` Scott Wood [this message]
2008-06-02 23:20                 ` Scott Wood
2008-06-03 14:47                 ` [RFC] Make board force selection of PHYLIB Kumar Gala
2008-06-03 14:47                   ` Kumar Gala
2008-06-03 15:10                   ` Scott Wood
2008-06-03 15:10                     ` Scott Wood
2008-06-03 15:14                     ` Kumar Gala
2008-06-03 15:14                       ` Kumar Gala
2008-06-03 15:18                       ` Scott Wood
2008-06-03 15:18                         ` Scott Wood
2008-06-03 15:31                         ` Kumar Gala
2008-06-03 15:31                           ` Kumar Gala
2008-06-03 15:36                           ` Scott Wood
2008-06-03 15:36                             ` Scott Wood
2008-06-03 15:40                             ` Kumar Gala
2008-06-03 15:40                               ` Kumar Gala
2008-06-03 15:56                               ` Scott Wood
2008-06-03 15:56                                 ` Scott Wood
2008-06-03 18:07                           ` Andy Fleming
2008-06-03 18:07                             ` Andy Fleming
2008-06-03 17:00                   ` Adrian Bunk
2008-06-03 18:11                     ` Andy Fleming
2008-06-03 18:23                     ` Kumar Gala
2008-06-06 15:19                 ` [PATCH] phylib: Don't allow core of phylib to build as a module Grant Likely
2008-06-06 15:19                   ` Grant Likely
2008-06-02 16:54     ` Adrian Bunk
2008-06-02 16:54       ` Adrian Bunk
2008-06-02 19:24       ` Kumar Gala
2008-06-02 19:24         ` Kumar Gala
2008-06-06 15:40         ` [PATCH] [POWERPC] 85xx: MPC85xx MDS - Unconditionally select PHYLIB for board fixups Kumar Gala
2008-06-06 15:40           ` Kumar Gala
2008-06-06 17:48           ` Jeff Garzik
2008-06-06 17:48             ` Jeff Garzik

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=48448020.5020407@freescale.com \
    --to=scottwood@freescale.com \
    --cc=galak@kernel.crashing.org \
    --cc=jeff@garzik.org \
    --cc=linuxppc-dev@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.