Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6076969rwl; Wed, 22 Mar 2023 06:18:47 -0700 (PDT) X-Google-Smtp-Source: AK7set9MefZ/PXYmcuXdzSAThTwyk2g5pcU78CS+zmaDOhRbm5JTbX6057Z9IwvBGgKlXfqLeUJd X-Received: by 2002:a17:90b:3eca:b0:23d:e0c1:8b8e with SMTP id rm10-20020a17090b3eca00b0023de0c18b8emr3694983pjb.17.1679491127522; Wed, 22 Mar 2023 06:18:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679491127; cv=pass; d=google.com; s=arc-20160816; b=zhVtfKVFgc2O2oBvwpy5c5ZTGzN2Lyc+9M9WFQtgtuA6TcrPQcxMSOx490mHrtrtg+ PQ6XMaHM3ADUEczcu+SZwU4Lq9lYiVzTAK/MZbnDp/VFtS4OZfmziY54jO7WnHRfvCK3 ymV7yn2OnZCYm0ZIHSrwciCgdSyPAdsnXxUPYmieysQBher/o0F4Do6cTmFYrhtpSWGS xhrIvdVto3+qYOTSI4BLMm5VRkPofS8QbEOAG3t3y3MMYeT/SbaoiL6gND3BUih+r/UG KG30ahQgAaN8Nus87wIHeuJ7iWVlvsi9Xx+Hsb06c4taxEgaFPzAS+2ddbKSnqwhsC6T JsPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=SUZSU1zIh6lqw41Re528v62AZuD/Zs0FmEsUv7M2Qls=; b=fDfYLEsHR6E8k1hM6C9qCw5nOl8loBiBSJAPq2ryvkYDfDgE/9V080W4KryJsQDzGD SUAh+B9Ci2C3pp1/izTQMGiTJL6b0c+4+sUQdTZVchrSUkmFRIf+7abzvPBp5DlW9s19 oA3PkZD7b+evSOXmnf6XB5qk8u0zsjFAwVhOyDK4O52r9edzPoOrfvqJjsTpudgKPtdK DbUB/ZJ8jlr/TLMpbZZf0T7YEWPVf4XieS540O3RujwmOK3wyptnbLMuXw/jnsmuG8Pb WK+xytTVB8CTZfj4Y247TyRKC35YdMw1oIBXFUD45un917oE9nP93qkCbP02+3d963qR ceMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=l6jtvxyZ; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020a637519000000b005037c23ffb4si15681658pgc.571.2023.03.22.06.18.32; Wed, 22 Mar 2023 06:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=l6jtvxyZ; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjCVNO7 (ORCPT + 99 others); Wed, 22 Mar 2023 09:14:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbjCVNO5 (ORCPT ); Wed, 22 Mar 2023 09:14:57 -0400 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2139.outbound.protection.outlook.com [40.107.249.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F37580C0; Wed, 22 Mar 2023 06:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O18V8jpk7ncKeLurs7XF35/tyhEuamk+UV48MkV+lBNTk+oDBdqejN0I8arxFtQgVfFdlwy8mgp+Q/uQJiDACGNvxwltf4ilPwAZ4g+2OfCJdnfy1ZyPvafkCIdGxMEHoqWq4M4PxxdrXcOcaZKI/i7xp25ebJMgUVyM4kWU5qk4yedLo3tr0kXn+dZG5lYj6wIgs4TanDxccMg2N13CudY1Io2RRqGgrOxNZtEsWXldBlAlB+/3aKhRK1vuW/VOQdf/nB+BiuZmDm+rSMN9ED36/+hNcr+cJvMRZ8FdiVIVqwkVljMiyKUaruxpXg/wWlYK8Aehbv8cb6/ndjwE8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SUZSU1zIh6lqw41Re528v62AZuD/Zs0FmEsUv7M2Qls=; b=SfzVDzBRCBK7qdGk0lI8B+3qRqLa3ISFCy1f3NrSMVd3nlWItoLYFB3ze1kXF9XLDGfYV3yb952y5HulPGo66aUVZSvnGcxCo0xbhDMUafR52Y/NS1J7/+3PvPyOFlZZNuC5gea15N8Mjse+H8/3rSYFFW4XndDKKsrFfvafqkk4MO60xNvgwYOO9FBqOzW3nY7s7Oo0LZRTenDWjN7NxmuxnAIRUGSYzI6Pnm9imy3GriAeFCl4hAzHcdWxyeVyZzb/14yxIX9vK0gk0bw7CXKs52z1allXz5ipthb5gyYM6MHFwXAmokJrAxKBkg3XxvqEU4tE9HvopfJsUD1m8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SUZSU1zIh6lqw41Re528v62AZuD/Zs0FmEsUv7M2Qls=; b=l6jtvxyZzFK6KrUfwQpJOEgIHQ8l+quNCn4FTt/Yzs5w764Ej6PtSRrC/Bm00Ml2hmzCJdmPWwmxk8Izs9mPDwDLioQm8wVY6FdO3dByZ1346LwsAp7qfw0XNSqeM6yGE69EW8yIuF4tMusMpnyGsFw2DHM2wrYRBjf7v4h16HA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kontron.de; Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) by DU0PR10MB7997.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:3b3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.8; Wed, 22 Mar 2023 13:14:53 +0000 Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::914b:adde:72ff:b7c2]) by PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::914b:adde:72ff:b7c2%3]) with mapi id 15.20.6222.010; Wed, 22 Mar 2023 13:14:52 +0000 Message-ID: <31b0a8b1-d027-d47a-e10d-614c09211734@kontron.de> Date: Wed, 22 Mar 2023 14:14:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 0/7] Enable backup switch mode on RTCs via devicetree Content-Language: en-US From: Frieder Schrempf To: Alexandre Belloni , Frieder Schrempf Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Alessandro Zummo , Krzysztof Kozlowski , Rob Herring , Sascha Hauer , Shawn Guo References: <20230201143431.863784-1-frieder@fris.de> <7268b05b-bbb1-ec4d-6a05-f5ccbdfeed90@kontron.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM4PR05CA0031.eurprd05.prod.outlook.com (2603:10a6:205::44) To PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5681:EE_|DU0PR10MB7997:EE_ X-MS-Office365-Filtering-Correlation-Id: b399645c-2299-4e4d-897f-08db2ad76c3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jxe6Naq/+jNOercSZV9z7Cwmit3/UlxGNsaWePUvua5/luVNg7wAMURNyxADyJu6eghaOscdEgBZShJbGT1gJG7q60D3rox9/YET9V4dw0RddF5/nMQGk/P3Qs1tosOVRmOZAFihQ7MPH/JLt0pZAbaUPVewZ49yzk3pwGekRH5jkUMQrc7c7RbJ2vdJawaqTJ4+lAuV8+8bQs1NTnwoOP1MnsirU1o0ZhLZ0jIXAosFAfxJiPQ6Om6aSEdGLovzFbbVvwTri+rnU2boS799ZQ9l/lHTFIxxoLf+IxJ7jb81jVNoOcSaJg70YxRuhVxJDYZK9Pzs8fLLU3AOOYxRuDwMzPlAzNtuA7UBgJu/Rx24Vh46dpp6F6IuQSQEvAMKkI+bOoCp/Ei9p9MkRKY9UpT2g0cJlT1aRdmxYlx5JUPtkedItw4tenpDFOZJ1eA6bbtviAGyeMMch9vCMcL/keiunxdw4AnFzirPG7hkMw/u34B6Hwe1TONlGUlVb6+nLRu8+WmdMbJH7K3Z3O2Cw9dinXnWyFyBUMcEkx5mCMm6RCgGqA7bHeL82H3930ADGfUUd+Z+vG1mSKt5a+cxnDRplqXLTozH4Sst6NUDDMXxG5L5k87dt8Gv5CzgKcfqNRJjgvSkw290iDrSUoPFWBMqtKdiai8WSebiKbfl18yKn7rjwnHMGu86jSTXV9J/R5gQB7FWZuQ+ez3XKtVwl7gAntUIvgAZWHV6NxFQGEo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(376002)(136003)(396003)(346002)(39860400002)(451199018)(41300700001)(31686004)(66899018)(31696002)(7416002)(8936002)(8676002)(2906002)(44832011)(5660300002)(36756003)(86362001)(38100700002)(478600001)(66556008)(66476007)(6486002)(66946007)(6512007)(54906003)(53546011)(110136005)(2616005)(316002)(186003)(6506007)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dnZhRzJ0blZncW9LVUNud1dZOCsrNGtYYWJiZE1ncWFBTXNWcHRKWXJXVGFP?= =?utf-8?B?eFFWL0lOZ0VncWJKeHB6L1FSMmdqZjdmOGlXdU9YdFdQUkJWOTB6WkpsdFpi?= =?utf-8?B?dkRudHc0Smx5a2VhVFphRmx0NmxCa09YSW1nTXpWQXNLL09wMUNzcVNZRmJO?= =?utf-8?B?WDZ5M1ZsWElnZkxOM01iQkI1VlBCaGhqMUdwaHBRT0ZheFVtbUJlWlpnR2Q5?= =?utf-8?B?M2lxNnlMNWZDKy9CeWVHN0t3L1I2RlQvSGxrbFI5QlZvLzZWNkJVK1IwMnVz?= =?utf-8?B?d0NwMklSSG51S0hicWozNXNNTVIwdWVKRWFWZDRhTi9TZGFuQlFPamNQMXhn?= =?utf-8?B?RzZOVmZmS1BmbTB2WkdxVTc1MEtVRjlBTlJ3U1dFREN2czduM2U1SGox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fkg+c3ajFIgV3wzR9r4oI?= X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: b399645c-2299-4e4d-897f-08db2ad76c3a X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 13:14:52.6628 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WPHjknMUALQ/Uo9Im6L4BLkuh7tJHnFfqlZhufQ+Ad7fCDJq+/0OYSTeiAcIjS4OLpe3fV32gvIQJwoxtxm2JGlO3ZRFjCHDrszSjUARWsE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR10MB7997 X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On 06.03.23 14:27, Frieder Schrempf wrote: > On 13.02.23 10:18, Frieder Schrempf wrote: >> Hi Alexandre, >> >> On 01.02.23 17:26, Frieder Schrempf wrote: >>> On 01.02.23 17:15, Alexandre Belloni wrote: >>>> Hello, >>>> >>>> You can't do that, this breaks an important use case and it is the >>>> reason why I didn't use device tree in the beginning. What is wrong with >>>> setting BSM from userspace? You will anyway have to set the time and >>>> date from userspace for it to be saved. >>> >>> Ok, I was already afraid there is something I missed. Can you give a >>> short explanation of what use case this would break? >>> >>> There is nothing wrong with setting BSM from userspace. It's just the >>> fact that users expect BSM to be enabled in any case as there is a >>> battery on the board. It is much more effort to ensure that production, >>> user, etc. are aware of an extra step required than to let the kernel >>> deal with it behind the scenes. >> >> Would you mind elaborating on your argument that this would break stuff? >> I currently don't see how an additional optional devicetree property >> would break anything. > > Ping!? It seems like you decided to ignore me for whatever reasons there are. I'm sure we can sort it out in some way if you would respond, please. Thanks Frieder