Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp165970imn; Fri, 29 Jul 2022 03:21:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tRCFFo5Tg63ENEUuiXVkBIWOW7lQtdUTLPsjf9+LEswFKStHPszS8yNhxyft6NxDmqH+j9 X-Received: by 2002:a17:907:1ca8:b0:730:436:6234 with SMTP id nb40-20020a1709071ca800b0073004366234mr2190392ejc.570.1659090117262; Fri, 29 Jul 2022 03:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659090117; cv=none; d=google.com; s=arc-20160816; b=fITIMICb6YzKOqigta+wJ2ZEZg966pIKHSnccJmJIVJFcVIctX3ZAtDD0+JqVE+L93 uufuIdx+QK+gCPdR5bs9bRzvuKuT8vM1hoZbc2d+MlW2S1DGsO7qViEx5X+uQWbZgThe K5UJNcpDCd9l852yS8OeJegWTHhJKKbiTM9umnrVlOx/Ut72V6YayPwHfJuejuUHUj5k B3T3bSaQbbBwugQgO0d7kCA8RcOfyQYFUC0C+XHU/egg/AP8Uvdj6odxAqzKWw1wPCcU webIs35vTxpMli5qjqv4G6IpSQFgIzvJMVhkLrp7w+ExjqMMLmDyqt+GAzvT3SHDJSXz lAuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=xnuFklB9jgHOXDGLRVy5A6/E8IiJmVwnPYdcggszOg8=; b=EyOo5yx26+3DOiAhQt33bpLEzSUre49HfOW05x1FdkykD8pmYCWMcn6TK7z5bJr7jX 5WyabdxDgnCzWsielThR8uCf+pFOyUblPe1sOFbCSiUudLv9N+H+ywXq1QyKn0Zjj1oW mmfSLU7U6ER2mSP3D8yUyYW1+gXQNTBgafg0NFI6GIldPJqjStaUozfEYG9AiU/bQPbH X9nubCoSBxeJ0/5U+LzLstG4INfFQLUUKaWpzRsU32umlbY0fwIYPq5IB9MXhbZqX/J3 8HUm6MXVpE1McZPSww08UYsyjasbbqqP7Fp/HkWLXQgplIW7do+VCbpabYTtOBXBDS8P he/A== ARC-Authentication-Results: i=1; mx.google.com; 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 w4-20020a05640234c400b0043c07d1df92si3443186edc.118.2022.07.29.03.21.32; Fri, 29 Jul 2022 03:21:57 -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; 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 S235421AbiG2KHJ (ORCPT + 99 others); Fri, 29 Jul 2022 06:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231878AbiG2KHI (ORCPT ); Fri, 29 Jul 2022 06:07:08 -0400 X-Greylist: delayed 7805 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 29 Jul 2022 03:07:02 PDT Received: from 4.mo548.mail-out.ovh.net (4.mo548.mail-out.ovh.net [188.165.42.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D16F381B01 for ; Fri, 29 Jul 2022 03:07:02 -0700 (PDT) Received: from mxplan5.mail.ovh.net (unknown [10.109.143.183]) by mo548.mail-out.ovh.net (Postfix) with ESMTPS id 69E68227C8; Fri, 29 Jul 2022 07:39:23 +0000 (UTC) Received: from kaod.org (37.59.142.102) by DAG4EX2.mxp5.local (172.16.2.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Fri, 29 Jul 2022 09:39:21 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-102R0041218b063-a24c-41c6-87ed-1d34e970e8a6, FAFF5065920E43DA0D2CF6C40E58A39B80E28978) smtp.auth=clg@kaod.org X-OVh-ClientIp: 90.89.72.120 Message-ID: <32c4045d-7fce-5954-9710-4f6b0c6b0d2a@kaod.org> Date: Fri, 29 Jul 2022 09:39:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH linux dev-5.15] soc: aspeed: abr: Add sysfs attrs for flash toggle Content-Language: en-US To: Andrew Jeffery , Jian Zhang , , Joel Stanley CC: , Mark Brown , open list , "open list:SPI SUBSYSTEM" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" References: <20220501105644.355062-1-zhangjian.3032@bytedance.com> <62143648-8a90-4ff4-bfe1-f311b40cd50c@www.fastmail.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: <62143648-8a90-4ff4-bfe1-f311b40cd50c@www.fastmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [37.59.142.102] X-ClientProxiedBy: DAG9EX1.mxp5.local (172.16.2.81) To DAG4EX2.mxp5.local (172.16.2.32) X-Ovh-Tracer-GUID: a6453bd3-2138-4703-b325-6e2aced1d2b3 X-Ovh-Tracer-Id: 10280310576058174386 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduiedgieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgihesthejredttdefjeenucfhrhhomhepveorughrihgtpgfnvggpifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeelleeiiefgkeefiedtvdeigeetueetkeffkeelheeugfetteegvdekgfehgffgkeenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdgrshhpvggvugeslhhishhtshdrohiilhgrsghsrdhorhhgpdfovfetjfhoshhtpehmohehgeek X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,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 Hello, On 7/29/22 04:37, Andrew Jeffery wrote: > Hi Jian Zhang, > > On Sun, 1 May 2022, at 20:26, Jian Zhang wrote: >> Implement the flash toggle function in soc ast2600. >> Add two sysfs attrs named "access_primary" and "access_backup" > > If you're proposing this patch for upstream then it needs to be based on > an upstream kernel tree, not the OpenBMC kernel tree. You also should > not use e.g. `linux dev-5.15` in the patch subject prefix, as that would > be inappropriate for an upstream patch. > > As you're adding sysfs attributes you'll also need to add the > corresponding ABI documentation. Yes. I think we need to discuss the ABI/sysfs files a bit. I am not sure we should toggle the sysfs files depending on the boot mode : primary vs. alternate. We could have the same files always and return EIO if some conditions are not met. Something like : * boot mode : primary/alternate. Write changes the next boot. * watchdog management Also, there is no need to introduce a new include file with large inline functions. Thanks, C.