From: Xu Yilun <yilun.xu@intel.com>
To: "Manne, Nava kishore" <nava.kishore.manne@amd.com>
Cc: "git (AMD-Xilinx)" <git@amd.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"michal.simek@xilinx.com" <michal.simek@xilinx.com>,
"mdf@kernel.org" <mdf@kernel.org>,
"hao.wu@intel.com" <hao.wu@intel.com>,
"trix@redhat.com" <trix@redhat.com>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"ronak.jain@xilinx.com" <ronak.jain@xilinx.com>,
"rajan.vaja@xilinx.com" <rajan.vaja@xilinx.com>,
"abhyuday.godhasara@xilinx.com" <abhyuday.godhasara@xilinx.com>,
"piyush.mehta@xilinx.com" <piyush.mehta@xilinx.com>,
"lakshmi.sai.krishna.potthuri@xilinx.com"
<lakshmi.sai.krishna.potthuri@xilinx.com>,
"harsha.harsha@xilinx.com" <harsha.harsha@xilinx.com>,
"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
"nava.manne@xilinx.com" <nava.manne@xilinx.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-fpga@vger.kernel.org" <linux-fpga@vger.kernel.org>
Subject: Re: [PATCH 1/4] firmware: xilinx: Add afi ioctl support
Date: Sun, 4 Sep 2022 01:13:34 +0800 [thread overview]
Message-ID: <YxOLPrwwvMWatObc@yilunxu-OptiPlex-7050> (raw)
In-Reply-To: <DM6PR12MB3993321B918B2124B6776320CD799@DM6PR12MB3993.namprd12.prod.outlook.com>
On 2022-08-30 at 09:25:47 +0000, Manne, Nava kishore wrote:
> Hi Yilun,
>
> Please find my response inline.
>
> > -----Original Message-----
> > From: Xu Yilun <yilun.xu@intel.com>
> > Sent: Saturday, August 27, 2022 11:52 AM
> > To: Manne, Nava kishore <nava.kishore.manne@amd.com>
> > Cc: git (AMD-Xilinx) <git@amd.com>; robh+dt@kernel.org;
> > krzysztof.kozlowski+dt@linaro.org; michal.simek@xilinx.com;
> > mdf@kernel.org; hao.wu@intel.com; trix@redhat.com;
> > p.zabel@pengutronix.de; gregkh@linuxfoundation.org;
> > ronak.jain@xilinx.com; rajan.vaja@xilinx.com;
> > abhyuday.godhasara@xilinx.com; piyush.mehta@xilinx.com;
> > lakshmi.sai.krishna.potthuri@xilinx.com; harsha.harsha@xilinx.com;
> > linus.walleij@linaro.org; nava.manne@xilinx.com;
> > devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
> > kernel@vger.kernel.org; linux-fpga@vger.kernel.org; yilun.xu@intel.com
> > Subject: Re: [PATCH 1/4] firmware: xilinx: Add afi ioctl support
> >
> > On 2022-08-24 at 09:25:39 +0530, Nava kishore Manne wrote:
> > > Adds afi ioctl to support dynamic PS-PL bus width settings.
> >
> > Please also describe what is afi, PS, PL here, Patch #0 won't appear in
> > upstream tree finally.
> >
>
> Agree, Will update the description in v2.
>
> > Thanks,
> > Yilun
> >
> > >
> > > Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
> > > ---
> > > drivers/firmware/xilinx/zynqmp.c | 14 +++++++++++
> > > include/linux/firmware/xlnx-zynqmp.h | 36
> > > ++++++++++++++++++++++++++++
> > > 2 files changed, 50 insertions(+)
> > >
> > > diff --git a/drivers/firmware/xilinx/zynqmp.c
> > > b/drivers/firmware/xilinx/zynqmp.c
> > > index d1f652802181..cbd84c96a66a 100644
> > > --- a/drivers/firmware/xilinx/zynqmp.c
> > > +++ b/drivers/firmware/xilinx/zynqmp.c
> > > @@ -843,6 +843,20 @@ int zynqmp_pm_read_pggs(u32 index, u32
> > *value) }
> > > EXPORT_SYMBOL_GPL(zynqmp_pm_read_pggs);
> > >
> > > +/**
> > > + * zynqmp_pm_afi() - PM API for setting the PS-PL bus width
> > > + * @config_id: Register index value
> > > + * @bus_width: Afi interface bus width value.
> > > + *
> > > + * Return: Returns status, either success or error+reason
> >
> > I see other functions are also like this, but I still can't figure out what values
> > for success and what for error+reason.
> >
>
> Please find the relevant error info here:
> https://elixir.bootlin.com/linux/v6.0-rc3/source/drivers/firmware/xilinx/zynqmp.c#L81
The caller should at least know what value is success and what are
failures from the kernel doc, so they could write the code which call
your API.
Thanks,
Yilun
>
> Regards,
> Navakishore.
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-09-03 17:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 3:55 [PATCH 0/4]Add afi config drivers support Nava kishore Manne
2022-08-24 3:55 ` [PATCH 1/4] firmware: xilinx: Add afi ioctl support Nava kishore Manne
2022-08-27 6:21 ` Xu Yilun
2022-08-30 9:25 ` Manne, Nava kishore
2022-09-03 17:13 ` Xu Yilun [this message]
2022-08-24 3:55 ` [PATCH 2/4] bindings: fpga: Add binding doc for the zynqmp afi config driver Nava kishore Manne
2022-08-24 12:58 ` Krzysztof Kozlowski
2022-08-30 5:31 ` Manne, Nava kishore
2022-08-30 18:27 ` Rob Herring
2022-08-30 18:25 ` Rob Herring
2022-08-24 3:55 ` [PATCH 3/4] bindings: firmware: Update binding doc for the zynqmp afi config node Nava kishore Manne
2022-08-24 12:57 ` Krzysztof Kozlowski
2022-08-30 5:41 ` Manne, Nava kishore
2022-08-24 3:55 ` [PATCH 4/4] fpga: zynqmp: Add afi config driver Nava kishore Manne
2022-08-24 12:59 ` Krzysztof Kozlowski
2022-08-27 12:26 ` Xu Yilun
2022-08-30 9:19 ` Manne, Nava kishore
2022-09-01 9:53 ` Marco Pagani
2022-09-03 17:44 ` Xu Yilun
2022-09-12 20:02 ` Marco Pagani
2022-09-03 17:33 ` Xu Yilun
2022-08-27 6:02 ` [PATCH 0/4]Add afi config drivers support Xu Yilun
2022-08-30 6:05 ` Manne, Nava kishore
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=YxOLPrwwvMWatObc@yilunxu-OptiPlex-7050 \
--to=yilun.xu@intel.com \
--cc=abhyuday.godhasara@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=git@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=hao.wu@intel.com \
--cc=harsha.harsha@xilinx.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lakshmi.sai.krishna.potthuri@xilinx.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mdf@kernel.org \
--cc=michal.simek@xilinx.com \
--cc=nava.kishore.manne@amd.com \
--cc=nava.manne@xilinx.com \
--cc=p.zabel@pengutronix.de \
--cc=piyush.mehta@xilinx.com \
--cc=rajan.vaja@xilinx.com \
--cc=robh+dt@kernel.org \
--cc=ronak.jain@xilinx.com \
--cc=trix@redhat.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