From: Flavio Leitner <fbl@redhat.com>
To: Jiri Benc <jbenc@redhat.com>
Cc: netdev <netdev@vger.kernel.org>,
Nithin Nayak Sujir <nsujir@broadcom.com>,
Michael Chan <mchan@broadcom.com>
Subject: Re: [PATCH net-next] tg3: shows HW time stamping support only if ptp_capable is present
Date: Tue, 30 Apr 2013 10:10:51 -0300 [thread overview]
Message-ID: <20130430131051.GA19993@obelix.rh> (raw)
In-Reply-To: <20130430105015.097b4b59@griffin>
On Tue, Apr 30, 2013 at 10:50:15AM +0200, Jiri Benc wrote:
> On Mon, 29 Apr 2013 14:08:07 -0300, Flavio Leitner wrote:
> > Current tg3 shows hardware timestamping support for all devices
> > when that is true only for the hardware with PTP_CAPABLE flag
> > present.
> >
> > Signed-off-by: Flavio Leitner <fbl@redhat.com>
> > ---
> > drivers/net/ethernet/broadcom/tg3.c | 11 +++++++----
> > 1 file changed, 7 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
> > index ac83c87..ef0b8a6 100644
> > --- a/drivers/net/ethernet/broadcom/tg3.c
> > +++ b/drivers/net/ethernet/broadcom/tg3.c
> > @@ -5992,10 +5992,13 @@ static int tg3_get_ts_info(struct net_device *dev, struct ethtool_ts_info *info)
> >
> > info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
> > SOF_TIMESTAMPING_RX_SOFTWARE |
> > - SOF_TIMESTAMPING_SOFTWARE |
> > - SOF_TIMESTAMPING_TX_HARDWARE |
> > - SOF_TIMESTAMPING_RX_HARDWARE |
> > - SOF_TIMESTAMPING_RAW_HARDWARE;
> > + SOF_TIMESTAMPING_SOFTWARE;
> > +
> > + if (tg3_flag(tp, PTP_CAPABLE)) {
> > + info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
> ^^^^
> You need |= here.
Of course, I will send a follow up patch.
Thanks for reviewing it.
--
fbl
prev parent reply other threads:[~2013-04-30 13:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-29 17:08 [PATCH net-next] tg3: shows HW time stamping support only if ptp_capable is present Flavio Leitner
2013-04-29 18:09 ` Nithin Nayak Sujir
2013-04-29 19:16 ` David Miller
2013-04-30 8:50 ` Jiri Benc
2013-04-30 13:10 ` Flavio Leitner [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=20130430131051.GA19993@obelix.rh \
--to=fbl@redhat.com \
--cc=jbenc@redhat.com \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=nsujir@broadcom.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).