From: "Keller, Jacob E" <jacob.e.keller@intel.com>
To: Richard Cochran <richardcochran@gmail.com>,
"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"Machnikowski, Maciej" <maciej.machnikowski@intel.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: [PATCH net-next 2/5] ice: add support for auxiliary input/output pins
Date: Tue, 29 Jun 2021 19:32:09 +0000 [thread overview]
Message-ID: <5e60e10f4d5c43b78c9a46834a836cc1@intel.com> (raw)
In-Reply-To: <30480e4a473146f5a38e83e0602bd36c@intel.com>
> -----Original Message-----
> From: Keller, Jacob E <jacob.e.keller@intel.com>
> Sent: Tuesday, June 29, 2021 12:29 PM
> To: Keller, Jacob E <jacob.e.keller@intel.com>; Richard Cochran
> <richardcochran@gmail.com>; Nguyen, Anthony L
> <anthony.l.nguyen@intel.com>
> Cc: davem@davemloft.net; kuba@kernel.org; Machnikowski, Maciej
> <maciej.machnikowski@intel.com>; netdev@vger.kernel.org
> Subject: RE: [PATCH net-next 2/5] ice: add support for auxiliary input/output pins
>
>
>
> > -----Original Message-----
> > From: Keller, Jacob E <jacob.e.keller@intel.com>
> > Sent: Monday, June 28, 2021 3:46 PM
> > To: Richard Cochran <richardcochran@gmail.com>; Nguyen, Anthony L
> > <anthony.l.nguyen@intel.com>
> > Cc: davem@davemloft.net; kuba@kernel.org; Machnikowski, Maciej
> > <maciej.machnikowski@intel.com>; netdev@vger.kernel.org
> > Subject: RE: [PATCH net-next 2/5] ice: add support for auxiliary input/output
> pins
> >
> >
> >
> > > -----Original Message-----
> > > From: Richard Cochran <richardcochran@gmail.com>
> > > Sent: Saturday, June 26, 2021 7:03 AM
> > > To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>
> > > Cc: davem@davemloft.net; kuba@kernel.org; Machnikowski, Maciej
> > > <maciej.machnikowski@intel.com>; netdev@vger.kernel.org; Keller, Jacob E
> > > <jacob.e.keller@intel.com>
> > > Subject: Re: [PATCH net-next 2/5] ice: add support for auxiliary input/output
> > pins
> > >
> > > On Fri, Jun 25, 2021 at 11:57:30AM -0700, Tony Nguyen wrote:
> > >
> > > > @@ -783,6 +1064,17 @@ static long ice_ptp_create_clock(struct ice_pf *pf)
> > > > info = &pf->ptp.info;
> > > > dev = ice_pf_to_dev(pf);
> > > >
> > > > + /* Allocate memory for kernel pins interface */
> > > > + if (info->n_pins) {
> > > > + info->pin_config = devm_kcalloc(dev, info->n_pins,
> > > > + sizeof(*info->pin_config),
> > > > + GFP_KERNEL);
> > > > + if (!info->pin_config) {
> > > > + info->n_pins = 0;
> > > > + return -ENOMEM;
> > > > + }
> > > > + }
> > >
> > > How is this supposed to worK?
> > >
> > > - If n_pins is non-zero, there must also be a ptp_caps.verify method,
> > > but you don't provide one.
> > >
> >
> > Hmm. Yea, that's missing.
>
> Ok, turns out this is only intended for a later patch that adds support for some
> pins on E810-T devices, but that work wasn't done yet. We need to split this up
> more, but currently we never set info->n_pins > 0 so this is effectively dead code.
>
> For now, we need to drop this patch from the series.
Looks like this was pulled already. It shouldn't cause an issue because n_pins is never set to non-zero so it's really just dead code until we can complete the E810-T work.
Thanks,
Jake
next prev parent reply other threads:[~2021-06-29 19:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-25 18:57 [PATCH net-next 0/5][pull request] 100GbE Intel Wired LAN Driver Updates 2021-06-25 Tony Nguyen
2021-06-25 18:57 ` [PATCH net-next 1/5] ice: add tracepoints Tony Nguyen
2021-06-25 18:57 ` [PATCH net-next 2/5] ice: add support for auxiliary input/output pins Tony Nguyen
2021-06-26 14:02 ` Richard Cochran
2021-06-28 22:45 ` Keller, Jacob E
2021-06-29 19:28 ` Keller, Jacob E
2021-06-29 19:32 ` Keller, Jacob E [this message]
2021-06-25 18:57 ` [PATCH net-next 3/5] ice: remove the VSI info from previous agg Tony Nguyen
2021-06-25 18:57 ` [PATCH net-next 4/5] ice: remove unnecessary VSI assignment Tony Nguyen
2021-06-25 18:57 ` [PATCH net-next 5/5] ice: Fix a memory leak in an error handling path in 'ice_pf_dcb_cfg()' Tony Nguyen
2021-06-25 19:10 ` [PATCH net-next 0/5][pull request] 100GbE Intel Wired LAN Driver Updates 2021-06-25 patchwork-bot+netdevbpf
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=5e60e10f4d5c43b78c9a46834a836cc1@intel.com \
--to=jacob.e.keller@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=maciej.machnikowski@intel.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.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).