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


Groups > linux.kernel > #1182553

Re: [PATCH 2/6] mfd: 88pm800: Add init time initial configuration support

From Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/6] mfd: 88pm800: Add init time initial configuration support
Date 2015-07-13 09:20 +0200
Message-ID <pLGbV-278-39@gated-at.bofh.it> (permalink)
References <pKiv0-85r-17@gated-at.bofh.it> <pKiEG-88T-11@gated-at.bofh.it> <pKWVs-8ku-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On Saturday 11 July 2015 12:23 PM, Krzysztof Kozlowski wrote:
> W dniu 09.07.2015 o 20:47, Vaibhav Hiremath pisze:
>> This patch adds init time configuration of 88PM800/805 and
>> 88PM860. It includes,
>>
>>    - Enable BUCK clock gating in low power mode
>>    - Full mode support for BUCK2 and 4
>>    - Enable voltage change (LPF, DVC) in PMIC
>>
>> Note that both 88PM800 and 88PM860 do share common configurations,
>> but since I can not validate the configuration on 88PM800,
>> restricting myself only to 88PM860.
>> If anyone can validate on 88PM800, we can move common code accordingly.
>>
>> Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
>
> Although I am not familiar with the device and driver, patch looks good
> to me, except one idea below. Anyway feel free to add:
>
> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
>

Thanks for your review.

>
>> ---
>>   drivers/mfd/88pm800.c       | 64 +++++++++++++++++++++++++++++++++++++++++++++
>>   include/linux/mfd/88pm80x.h | 13 +++++++++
>>   2 files changed, 77 insertions(+)
>>
>> diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c
>> index 95c8ad4..80a1bc1 100644
>> --- a/drivers/mfd/88pm800.c
>> +++ b/drivers/mfd/88pm800.c
>> @@ -521,6 +521,63 @@ out:
>>   	return ret;
>>   }
>>
>> +static int pm800_init_config(struct pm80x_chip *chip, struct device_node *np)
>> +{
>> +	int ret;
>> +	unsigned int val;
>> +
>> +	switch (chip->type) {
>> +	case CHIP_PM800:
>> +	case CHIP_PM805:
>> +		break;
>
> It may be useful for future generations to put short notice here why
> there is no init for these devices? I saw the explanation in commit
> message but still someone in the future may look at the code and wonder
> why only 88PM860 is initialized and the others are not?
>

Yeup, Agreed.

I will incorporate it in V2.

Thanks,
Vaibhav
--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] mfd: 88pm800: Add 88pm860 device support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 13:50 +0200
  [PATCH 4/6] mfd: 88pm800: Enable 32KHZ XO low jitter clock out Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
  [PATCH 3/6] mfd: devicetree: bindings: 88pm800: Add DT property for 32KHz output enable Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
    Re: [PATCH 3/6] mfd: devicetree: bindings: 88pm800: Add DT property  for 32KHz output enable Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-13 09:30 +0200
      Re: [PATCH 3/6] mfd: devicetree: bindings: 88pm800: Add DT property  for 32KHz output enable Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-07-13 09:40 +0200
        Re: [PATCH 3/6] mfd: devicetree: bindings: 88pm800: Add DT property  for 32KHz output enable Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-13 09:40 +0200
          Re: [PATCH 3/6] mfd: devicetree: bindings: 88pm800: Add DT property  for 32KHz output enable Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-07-13 09:50 +0200
  [PATCH 2/6] mfd: 88pm800: Add init time initial configuration support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
    Re: [PATCH 2/6] mfd: 88pm800: Add init time initial configuration  support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-13 09:20 +0200
  [PATCH 6/6] mfd: 88pm800: Add support for configuration of dual phase on BUCK1 Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
  [PATCH 1/6] mfd: 88pm80x: Add 88pm860 chip type support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
  [PATCH 5/6] mfd: devicetree: bindings: 88pm800: Add DT property for dual phase enable Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:00 +0200
    Re: [PATCH 5/6] mfd: devicetree: bindings: 88pm800: Add DT property  for dual phase enable Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-13 10:00 +0200
      Re: [PATCH 5/6] mfd: devicetree: bindings: 88pm800: Add DT property  for dual phase enable Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-07-13 10:20 +0200
  Re: [PATCH 0/6] mfd: 88pm800: Add 88pm860 device support Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-07-09 14:10 +0200
    Re: [PATCH 0/6] mfd: 88pm800: Add 88pm860 device support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 14:50 +0200
      Re: [PATCH 0/6] mfd: 88pm800: Add 88pm860 device support Vaibhav Hiremath <vaibhav.hiremath@linaro.org> - 2015-07-09 15:00 +0200

csiph-web