From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: wangxfdu@gmail.com, xiang.a.wang@intel.com, wsa@the-dreams.de,
jarkko.nikula@linux.intel.com, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] i2c: designware: enable High-speed mode for pcidrv
Date: Fri, 09 Oct 2015 12:31:07 +0300 [thread overview]
Message-ID: <1444383067.8361.517.camel@linux.intel.com> (raw)
In-Reply-To: <1444380426-17953-2-git-send-email-wangxfdu@gmail.com>
On Fri, 2015-10-09 at 16:47 +0800, wangxfdu@gmail.com wrote:
> From: Xiang Wang <xiang.a.wang@intel.com>
>
> 1. Support setting hs_hcnt and hs_lcnt
> 2. Get bus speed mode from ACPI companion of the
> i2c controller.
>
> Signed-off-by: Xiang Wang <xiang.a.wang@intel.com>
> ---
> drivers/i2c/busses/i2c-designware-pcidrv.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c
> b/drivers/i2c/busses/i2c-designware-pcidrv.c
> index 6643d2d..0f4c0c4 100644
> --- a/drivers/i2c/busses/i2c-designware-pcidrv.c
> +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c
> @@ -54,8 +54,10 @@ enum dw_pci_ctl_id_t {
> struct dw_scl_sda_cfg {
> u32 ss_hcnt;
> u32 fs_hcnt;
> + u32 hs_hcnt;
> u32 ss_lcnt;
> u32 fs_lcnt;
> + u32 hs_lcnt;
> u32 sda_hold;
> };
>
> @@ -237,8 +239,10 @@ static int i2c_dw_pci_probe(struct pci_dev
> *pdev,
> cfg = controller->scl_sda_cfg;
> dev->ss_hcnt = cfg->ss_hcnt;
> dev->fs_hcnt = cfg->fs_hcnt;
> + dev->hs_hcnt = cfg->hs_hcnt;
> dev->ss_lcnt = cfg->ss_lcnt;
> dev->fs_lcnt = cfg->fs_lcnt;
> + dev->hs_lcnt = cfg->hs_lcnt;
> dev->sda_hold_time = cfg->sda_hold;
> }
>
> @@ -246,6 +250,9 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev,
>
> dev->tx_fifo_depth = controller->tx_fifo_depth;
> dev->rx_fifo_depth = controller->rx_fifo_depth;
> +
> + i2c_dw_acpi_setup_speed(&pdev->dev, dev);
Don't see a relationship between PCI driver and this ACPI stuff.
> +
> r = i2c_dw_init(dev);
> if (r)
> return r;
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2015-10-09 9:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 8:47 [PATCH 1/2] i2c: designware: add High-speed mode support wangxfdu
2015-10-09 8:47 ` [PATCH 2/2] i2c: designware: enable High-speed mode for pcidrv wangxfdu
2015-10-09 9:31 ` Andy Shevchenko [this message]
2015-10-12 7:41 ` Xiang Wang
2015-10-12 8:31 ` Andy Shevchenko
2015-10-15 5:46 ` Xiang Wang
2015-10-15 8:32 ` Jarkko Nikula
2015-10-15 9:40 ` Andy Shevchenko
2015-10-22 1:44 ` Xiang Wang
2015-10-23 20:04 ` Wolfram Sang
2015-10-09 9:29 ` [PATCH 1/2] i2c: designware: add High-speed mode support Andy Shevchenko
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=1444383067.8361.517.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=jarkko.nikula@linux.intel.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wangxfdu@gmail.com \
--cc=wsa@the-dreams.de \
--cc=xiang.a.wang@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;
as well as URLs for NNTP newsgroup(s).