From: Darren Hart <dvhart@infradead.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Qipeng Zha <qipeng.zha@intel.com>, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH V9 1/2] intel_pmc_ipc: update acpi resource structure for Punit
Date: Thu, 10 Dec 2015 14:59:11 -0800 [thread overview]
Message-ID: <20151210225911.GE11972@malice.jf.intel.com> (raw)
In-Reply-To: <1449745981.30729.71.camel@linux.intel.com>
On Thu, Dec 10, 2015 at 01:13:01PM +0200, Andy Shevchenko wrote:
> On Fri, 2015-12-11 at 02:21 +0800, Qipeng Zha wrote:
> > BIOS restructure exported memory resources for Punit
> > in acpi table, So update resources for Punit.
> >
> > Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
> >
>
> Almost. See below.
>
> > ---
> > change in v9
> > rename indexes of all acpi resources;
> > add comments for punit_res;
> > ---
> > drivers/platform/x86/intel_pmc_ipc.c | 114 ++++++++++++++++++++++++-
> > ----------
> > 1 file changed, 80 insertions(+), 34 deletions(-)
> >
> > diff --git a/drivers/platform/x86/intel_pmc_ipc.c
> > b/drivers/platform/x86/intel_pmc_ipc.c
> > index 28b2a12..00812a4 100644
> > --- a/drivers/platform/x86/intel_pmc_ipc.c
> > +++ b/drivers/platform/x86/intel_pmc_ipc.c
> > @@ -68,8 +68,12 @@
> > #define PLAT_RESOURCE_IPC_INDEX 0
> > #define PLAT_RESOURCE_IPC_SIZE 0x1000
> > #define PLAT_RESOURCE_GCR_SIZE 0x1000
> > -#define PLAT_RESOURCE_PUNIT_DATA_INDEX 1
> > -#define PLAT_RESOURCE_PUNIT_INTER_INDEX 2
> > +#define PLAT_RESOURCE_BIOS_DATA_INDEX 1
> > +#define PLAT_RESOURCE_BIOS_INTER_INDEX 2
>
> Since there is a comment and new version will be anticipated I also
> would like to propose to change INTER to IFACE because latter more
> particular. Darren?
Yes, I had the same thought, but wasn't going to request the change just for
this. Andriy did point out the pointer format below previously however. Please
do correct that - updating INTER to IFACE would be a welcome improvement as
well.
> > - size = resource_size(res);
> > - ipcdev.punit_base2 = res->start;
> > - ipcdev.punit_size2 = size;
> > - dev_info(&pdev->dev, "punit interface res: %llx %x\n",
> > + /* This is index 1 to cover BIOS interface register */
> > + *++punit_res = *res;
> > + dev_info(&pdev->dev, "punit BIOS interface res: %llx %x\n",
> > + (long long)res->start, (int)resource_size(res));
>
> There is a specifier to print struct resource, please use it instead.
> %pR IIRC.
>
Yes, %pR, see Documentation/printk-formats.txt
> Same for all similar cases below.
>
--
Darren Hart
Intel Open Source Technology Center
next prev parent reply other threads:[~2015-12-10 22:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 18:21 [PATCH V9 1/2] intel_pmc_ipc: update acpi resource structure for Punit Qipeng Zha
2015-12-10 11:13 ` Andy Shevchenko
2015-12-10 22:59 ` Darren Hart [this message]
2015-12-10 18:21 ` [PATCH V9 2/2] platform:x86: add Intel P-Unit mailbox IPC driver Qipeng Zha
2015-12-10 11:23 ` Andy Shevchenko
2015-12-10 23:01 ` Darren Hart
2015-12-11 7:54 ` Zha, Qipeng
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=20151210225911.GE11972@malice.jf.intel.com \
--to=dvhart@infradead.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=qipeng.zha@intel.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