Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1146158lqe; Sun, 7 Apr 2024 22:55:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4LW0Ef/zQH1M6gh2Ep1Gt9yeraaE+2OzsvcPabNHICkumqzSA00d1/xHnuJpaYSGRaw3V4tKb/WEQOxRnvgm0m+itw7FskmibtY5QEA== X-Google-Smtp-Source: AGHT+IGXoWY2Fi5nlv4rQFp8n7KUxuqlCVoapnb8DJUaF1xvLC/jSbNb/YXUaWSDFJAVviEveL05 X-Received: by 2002:a17:907:a08:b0:a51:dd36:9a10 with SMTP id bb8-20020a1709070a0800b00a51dd369a10mr446451ejc.5.1712555722296; Sun, 07 Apr 2024 22:55:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712555722; cv=pass; d=google.com; s=arc-20160816; b=ir0lBAx6JgyO7LgbqkIhvUtPmLdD34Zap4EYtCH0AZxlbl0w9EigKsDwOXmyb8/oZE uLqdyqHuw5ZA6ptYImFOBcCFs+RMzLjYOvVSsQ5U4gA8HqzAKX/NzZBfCJdCD+Roon3I is+/GLaRcbvQI4+vb/DvjYjvQEPj7hWe7yJ2JTXkUneRJmpt9k6Dadg3pFot7+eGRp5W GZk/Gdu4ivE6je5t8nZjy20wdRQ319QiAmw9EkLPzfBgj7SlVrvtSjk6EQ619q/DKd1t AbwUCf1kJPE7zxUjFcVFYT5CptnuxcswZnhKqtYAuQrjhhEXqHBlBWhvQyKmXo2mNZjL s1Ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=C++ToI958gqnXfhfFAlqE16hWGsT6uqgEY4ZriDanL4=; fh=oUTEo/+rzBYGnX+FzSSmUnwyiHtPIkVErbmmHP8ENDc=; b=fuIwB0nZ2N/pZlKtezB54sgGopVWZChFvP93yEnI9YbGSKjpYS4k0hFj4/fKMRr0F4 ZxcU81Kt01nzfS9sXD4MjafW+gq0w/kw2SB1rYFuP0FGyobd583+AylhX5YhRvlxQK/q bL/5qaKY+gyUvwZoj8re1Iied30xua3S9SVa+Bas7WTdOtJ0tLOyoaQXv9ylmxquZhMa s7JDhxBSRPn6v9lTXFZyN4I1HGNbFia+qPmtXsX/ZhSB6ZZtCNx/xDNgMJhccGkcmLdr NSqWnI+7ko1T4UGLR2+PshMiVh4zldmWB0cWho6LRLpauzJsGQDHOsB/bRM8x0N2pbqT D5lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tvRVasim; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw19-20020a170906fcb300b00a4a373ee9dfsi3336232ejb.373.2024.04.07.22.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 22:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tvRVasim; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9457F1F217FB for ; Mon, 8 Apr 2024 05:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24BB48827; Mon, 8 Apr 2024 05:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tvRVasim" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F0A879E0 for ; Mon, 8 Apr 2024 05:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712555714; cv=none; b=ttuTlmnxMSdQqtQxrlSk/DzQmohxtF51QdxN0Pah3yg8tSjNsz42F3/tBmlhkj15NxxpJgsbAcskZsYLDG6QRtpUAfl/8m2n5AoYcIXupVEM+wYbLx+2OhAI4VXmbyUU3pnvZEXQgd+PXVuD4nb1/v8BZEkrn2eDclZFAlLzvCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712555714; c=relaxed/simple; bh=jcoIomp/z6kD9KMZlxXtkgrBsId7jYabDWZvbuXZvAQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZHtGQAO8E+6s007w+2/+kUc7E7WgkfOk49JOK4C7Y/ZwqRR+T2E1VmAjYlFgtBYI/zfPBwTavJsz+lMiJM30kQQ+ZtT3YxGz4CrYLXhnRrGDYba7hS0SfmUim6YPoKSZgkTxxLPf3zmheSyae+lTHD9VkxKYj8++CBk0jYtzV+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tvRVasim; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-56e2ac1c16aso3422360a12.0 for ; Sun, 07 Apr 2024 22:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712555711; x=1713160511; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=C++ToI958gqnXfhfFAlqE16hWGsT6uqgEY4ZriDanL4=; b=tvRVasimfpfPR/dVTz1R6vDQLdaUkXUWqvif+CScR/dP+RhdzJfLtiwIAT7Jy+gUWj WJ/OJPsOmzJvXns6vBr6o0tQY0Fvw7ahFaGvByPl1v223QvxFN3BnTeCWEP8TBvjYD+A yXuaCoEVcDhWTmpiK1ToW5qU+WoVOZ0F2i2twilnUKkortSE7u+m7/hl6rzPViJT1lyp 603MJURzuBawThfma5dOuldqB56D+qaAqOv5k/iNkuABkqZduty5KZ9kVZplhiNoNHkV skS9f0HQkr/Qe/lndX2QQrqVfdTZj+qv7ApbCU0fmqn7JJxE9wr0C7L6GN40HyN9Ex8j t9bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712555711; x=1713160511; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C++ToI958gqnXfhfFAlqE16hWGsT6uqgEY4ZriDanL4=; b=IXWMY/5v48mcBG8EbArNBTVrkTAJxrCFbRmIVODCtutNZV7XKHdSamq+o7DFPYlZzj bqXl+rB5nOZf1y1sYgo1vIIBNOHeAIFT7GoZrEfb4gJZQFAuwDEZazVK4THleW6q5ovd yK5SD+WyF49cTEl6oJDUd91wNJxyrcMceJnBewsGnkqyPJmFnz6FS+GOkXCc7CS/qBh6 jByO7R8LaHa83T3ZIju2ocfhAq0mxjUrFwsMZBuAWoeHSiiXkDZzXo8PRV5A4BsN+dqO /BVLkiUn72e29DuaUBolTtanER+1R7l3GN3EXKbYFrNvmj+MWwix9OgOVLo31I/bj5Ig SBqQ== X-Forwarded-Encrypted: i=1; AJvYcCWIHg6KSa020lmFt1zFYtUoXGARQGTIaXKM2yFyeBaFkdqCYoM1TanI2OSETUDFzXA+es4vBFAJUPlb74cZG/yOofC7FatXU8qv43+f X-Gm-Message-State: AOJu0YzjSrbAZDULccR5HB14BF89nTGqaRImnDetKdHZfx4Lp1cV1naM QkNale3sehEJzSLlnVa3n/GgxWTKUO6gcVFZ5hY32WOBZv+NxEgrH4hJQGzfdTg= X-Received: by 2002:a50:d60f:0:b0:56e:2452:f864 with SMTP id x15-20020a50d60f000000b0056e2452f864mr5799865edi.35.1712555710875; Sun, 07 Apr 2024 22:55:10 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id j23-20020aa7c357000000b0056bf7f92346sm3696581edr.50.2024.04.07.22.55.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 22:55:10 -0700 (PDT) Message-ID: <3a60c2e8-1eea-4d04-96e7-965db96e8bb6@linaro.org> Date: Mon, 8 Apr 2024 07:55:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] rtc: pcf2127: configurable power management function To: Markus Burri , linux-kernel@vger.kernel.org Cc: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org References: <20240408054926.3994-1-markus.burri@mt.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzT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5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240408054926.3994-1-markus.burri@mt.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/04/2024 07:49, Markus Burri wrote: > In the PCF2131 power management the battery switch-over function is > disabled by default. > After a power cycle the rtc clock is wrong because of that. > Add a device-tree property to configure the power management function > and enable battery switch-over. > > Signed-off-by: Markus Burri > --- > .../devicetree/bindings/rtc/nxp,pcf2127.yaml | 3 +++ > drivers/rtc/rtc-pcf2127.c | 22 +++++++++++++++++++ Please run scripts/checkpatch.pl and fix reported warnings. Then please run `scripts/checkpatch.pl --strict` and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. > 2 files changed, 25 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml > index 2d9fe5a75b06..5ce0ca6dcedc 100644 > --- a/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml > +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml > @@ -30,6 +30,9 @@ properties: > > reset-source: true > > + pwrmng-function: > + description: Set power management function for PCF2131 It does not look like you tested the bindings, at least after quick look. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Maybe you need to update your dtschema and yamllint. Best regards, Krzysztof