From: Richard Cochran <richardcochran@gmail.com>
To: "Stefan Sørensen" <stefan.sorensen@spectralink.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] dp83640: Support a configurable number of periodic outputs
Date: Tue, 4 Feb 2014 10:29:39 +0100 [thread overview]
Message-ID: <20140204092939.GA9862@netboy> (raw)
In-Reply-To: <1391503942-694-1-git-send-email-stefan.sorensen@spectralink.com>
On Tue, Feb 04, 2014 at 09:52:22AM +0100, Stefan Sørensen wrote:
> The driver is currently limited to a single periodic output.
> This patch makes the number of peridodic output dynamic by
> dropping the gpio_tab module parameter and adding cal_gpio,
> perout_gpio_tab and extts_gpio_tabs parameters.
...
> module_param(chosen_phy, int, 0444);
> -module_param_array(gpio_tab, ushort, NULL, 0444);
> +module_param(cal_gpio, int, 0444);
> +module_param_array(perout_gpio_tab, int, &n_perout, 0444);
> +module_param_array(extts_gpio_tab, int, &n_extts, 0444);
>
> MODULE_PARM_DESC(chosen_phy, \
> "The address of the PHY to use for the ancillary clock features");
> -MODULE_PARM_DESC(gpio_tab, \
> - "Which GPIO line to use for which purpose: cal,perout,extts1,...,extts6");
> +MODULE_PARM_DESC(cal_gpio, "Which GPIO line to use for calibration");
> +MODULE_PARM_DESC(perout_gpio_tab, "Which GPIO lines to use for periodic output");
> +MODULE_PARM_DESC(extts_gpio_tab, "Which GPIO lines to use for external timestamping");
Modules parameters are surely easiest (for the developer), but perhaps
the time has come for the "right way."
Currently there is no interface for configuring the GPIOs used by PHC
devices, and last year I was going to add the GPIOs to the igb
driver. The conclusion of the discussion was that module parameters
are bad for this, but ethtool is good.
http://www.spinics.net/lists/netdev/msg237692.html
[ I did not follow through to come up with an ethtool way of configuring
the igb pins. ]
Even though it is more work, I think the way forward is to invent a
way to let the user configure this kind of thing via ethtool. Would
you care to take a stab at this?
Thanks,
Richard
next prev parent reply other threads:[~2014-02-04 9:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 8:52 [PATCH] dp83640: Support a configurable number of periodic outputs Stefan Sørensen
2014-02-04 9:29 ` Richard Cochran [this message]
2014-02-04 10:53 ` Ben Hutchings
2014-02-04 15:24 ` Sørensen, Stefan
2014-02-04 15:43 ` Richard Cochran
2014-02-05 7:40 ` Sørensen, Stefan
2014-02-07 5:48 ` Richard Cochran
2014-02-07 7:44 ` Manfred Rudigier
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=20140204092939.GA9862@netboy \
--to=richardcochran@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stefan.sorensen@spectralink.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;
as well as URLs for NNTP newsgroup(s).