Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301964

Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided

From Loc Ho <lho@apm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided
Date 2016-01-05 21:00 +0100
Message-ID <qNFVV-7rE-37@gated-at.bofh.it> (permalink)
References <qNf5p-59c-49@gated-at.bofh.it> <qNg1r-5Mg-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

>> The current driver uses input clock source frequency to calculate
>> values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not
>> currently have a good way to provide the frequency information.
>> Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used
>> to directly provide these values. So, the clock information should
>> no longer be required during probing.
>>
>> However, since clk can be invalid, additional checks must be done where
>> we are making use of it.
>>
>> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>> Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
>> Tested-by: Loc Ho <lho@apm.com>
>> ---
>>
>> Note: This has been tested on AMD Seattle RevB for both DT and ACPI.
>>
>> Changes from V3 (https://lkml.org/lkml/2015/12/22/596):
>>     * Add i2c_dw_plat_prepare_clk() per Andy's suggestion
>>     * Add tested-by Loc Ho.
>
> The changes from V3 are big enough that I'd appreciate a new Tested-by
> tag.
>

Will let you know when I have moment to give this a try on X-Gene.

-Loc
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> - 2016-01-04 16:20 +0100
  Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and  FFCN are provided Wolfram Sang <wsa@the-dreams.de> - 2016-01-04 17:20 +0100
    Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and  FFCN are provided Loc Ho <lho@apm.com> - 2016-01-05 21:00 +0100
    Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and  FFCN are provided Loc Ho <lho@apm.com> - 2016-01-07 01:40 +0100
  Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and  FFCN are provided Wolfram Sang <wsa@the-dreams.de> - 2016-01-10 09:40 +0100
    Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and  FFCN are provided Suravee Suthikulanit <suravee.suthikulpanit@amd.com> - 2016-01-13 23:50 +0100

csiph-web