From: Andrew Lunn <andrew@lunn.ch>
To: Michael Chan <michael.chan@broadcom.com>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>,
Pavan Chebbi <pavan.chebbi@broadcom.com>,
Michael Chan <mchan@broadcom.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Roy Lee <roy_lee@accton.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tg3: Add param `short_preamble` to enable MDIO traffic to external PHYs
Date: Sat, 3 Aug 2024 01:34:58 +0200 [thread overview]
Message-ID: <d254d820-399d-4ac7-b9b0-e4b3668bbed3@lunn.ch> (raw)
In-Reply-To: <CACKFLikjqVZUXtWY5YBJPT56OqW0z00DxkaENzG74M64Rrr81w@mail.gmail.com>
On Fri, Aug 02, 2024 at 12:51:15PM -0700, Michael Chan wrote:
> On Fri, Aug 2, 2024 at 3:05 AM Paul Menzel <pmenzel@molgen.mpg.de> wrote:
>
> > diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
> > index 0ec5f01551f9..9b4ab201fd9a 100644
> > --- a/drivers/net/ethernet/broadcom/tg3.c
> > +++ b/drivers/net/ethernet/broadcom/tg3.c
> > @@ -233,6 +233,10 @@ static int tg3_debug = -1; /* -1 == use TG3_DEF_MSG_ENABLE as value */
> > module_param(tg3_debug, int, 0);
> > MODULE_PARM_DESC(tg3_debug, "Tigon3 bitmapped debugging message enable value");
> >
> > +static int short_preamble = 0;
> > +module_param(short_preamble, int, 0);
> > +MODULE_PARM_DESC(short_preamble, "Enable short preamble.");
> > +
>
> Module parameters are generally not accepted. If this is something
> other devices can potentially use, it's better to use a more common
> interface.
+1
Most systems supporting suppressed preamble do this using the DT
property 'suppress-preamble'. See:
Documentation/devicetree/bindings/net/mdio.yaml
You could add an ACPI parameter for x86. You could also consider
implementing clock-frequency if the MDIO bus master and all the
devices on the bus support faster than 2.5MHz.
Andrew
prev parent reply other threads:[~2024-08-02 23:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 10:04 Paul Menzel
2024-08-02 19:51 ` Michael Chan
2024-08-02 20:55 ` Paul Menzel
2024-08-02 21:25 ` Michael Chan
2024-08-02 23:34 ` Andrew Lunn [this message]
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=d254d820-399d-4ac7-b9b0-e4b3668bbed3@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchan@broadcom.com \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=pmenzel@molgen.mpg.de \
--cc=roy_lee@accton.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®