Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp436502iof; Mon, 6 Jun 2022 06:23:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKfLKUVqL7L2M8Ve4Ii6zbyVzJU6/XWloXE+bZwGBwauKsm7McoMP0rjbKulvzuqjBYnzj X-Received: by 2002:a17:90a:df16:b0:1e3:1cd:6c6f with SMTP id gp22-20020a17090adf1600b001e301cd6c6fmr42988714pjb.10.1654521839353; Mon, 06 Jun 2022 06:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654521839; cv=none; d=google.com; s=arc-20160816; b=UBdzLOFSRktYdcgODN5fle/o2w0D2TXfhlZU2xFVqeR2mGSg0ebzKThUFTjK/DD1ON dc+xxtkn5p9gesdmYJqTkwvBK4gfj+0WvzVOAqhT2ac+6JVn46St4vsTwM/jz+ewwYuQ 014Z1KUJlNR3vQQdHmsSljMVxCbx2zyYBIn5B3ZSHos8uW6q6ti7TRpKPXqp6/l2+egj VlWJvZRo+x1vq/f/HT59zZC+j3gCSWDTuftz0rue9E3WYk+uzYK40QUaOiKgpAMUXQlS QdV4IIX0+naE0YNBzyDwn5Xkt6b/6uFc+5Pg5L81gax5gOjrXnKx3QTwKKlmSMQretc0 onmA== 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=haH1xGwhj/wZTEqY+orLGoeCGd0tL/KLJasnsNbhTtE=; b=YVdhhZbLjcg4cFvrlbd86PYacdseEdc8g9vlx2ziCFKa8cOAOUWMmAJG2Rqli/a57j 6QmFLkr0PIi+oN62zR3LIJay9SCGKsORUzUplJW/RHhyPPyi/ss6ZJwt6pplWGI6fDr7 +59yF7+wF6JuubAK4dTZKrhLaH437fMtMfIeWpq5MJblxWmniuvfkTPbRejazG8GjCG8 QshoPDX1DwiNZu7ZhuucxqP8o6M0e4DEN0p0QvUZ7lCfnjH72zSNTecAvy45tGZwRWi0 5F+gVWzjA4c4tlpjpOMjBWSulN9FvpfT6gICDkCQoSqAyTQ/iVan3QKt5QP0GSu3GOZH VSGQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id oo10-20020a17090b1c8a00b001e32171b0f1si12600064pjb.155.2022.06.06.06.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 06:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6807F44777; Mon, 6 Jun 2022 06:16:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238684AbiFFNQ1 (ORCPT + 99 others); Mon, 6 Jun 2022 09:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238656AbiFFNQY (ORCPT ); Mon, 6 Jun 2022 09:16:24 -0400 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A2337A9E; Mon, 6 Jun 2022 06:16:23 -0700 (PDT) Received: by mail-pj1-f52.google.com with SMTP id d12-20020a17090abf8c00b001e2eb431ce4so12559517pjs.1; Mon, 06 Jun 2022 06:16:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=haH1xGwhj/wZTEqY+orLGoeCGd0tL/KLJasnsNbhTtE=; b=jdjkMrbtmFWn6pBFRLcUYvSZ7ufVSrB6PkFz8aJmJXo35hzO/heuTJOebe4JKhlIkX XqGOmuGd82PYYYTiWb/YokVeVp9bMORP2y2WktgvrVdrzNIcOKpY41UxMLMZufsZuBJa lp5u+oDwoqoAgny4Ubs1ej6Bp5r0z1DtT7wIFUpGQb7Xbp22CXhytMCN4hagfQweEjlD pwAGqQniu6vEOESbJgbEEvUAI/Vf+CZOAUExqFkbKLfOUYbGQk8kohZuLGUQ0TSGATbo D5R6a6S/K0EdtHF7JuJFoegI8Ecf9IlNaT6G5TEu/9MyjKLa/IqorwXsZTZbI92+Uu91 qE1A== X-Gm-Message-State: AOAM532sgX0ZOVKDpyB5OEdlOEedKClChojfqs4ikZxAZwOAsCtuAPX/ SWbNcOT5wF5XsIicmxGK30U= X-Received: by 2002:a17:90b:4b0f:b0:1e8:53ac:ec51 with SMTP id lx15-20020a17090b4b0f00b001e853acec51mr13717685pjb.78.1654521382753; Mon, 06 Jun 2022 06:16:22 -0700 (PDT) Received: from [192.168.51.14] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id bf7-20020a170902b90700b00163c6ac211fsm10478642plb.111.2022.06.06.06.16.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 06:16:21 -0700 (PDT) Message-ID: <2677b02e-b2a3-7c79-2e62-acf1acbc8ff0@acm.org> Date: Mon, 6 Jun 2022 06:16:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [RESEND PATCH] scsi: ufs: sysfs: support writing boot_lun attr Content-Language: en-US To: Damien Le Moal , Avri Altman , Caleb Connolly , "a5b6@riseup.net" , Alim Akhtar , "James E . J . Bottomley" , "Martin K . Petersen" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "~postmarketos/upstreaming@lists.sr.ht" <~postmarketos/upstreaming@lists.sr.ht>, "phone-devel@vger.kernel.org" References: <20220525164013.93748-1-a5b6@riseup.net> <8d25171a-5d86-9acc-0f94-1a3c6efdb360@riseup.net> <3c400db6-d251-c4bd-b019-b9dc1d807212@opensource.wdc.com> From: Bart Van Assche In-Reply-To: <3c400db6-d251-c4bd-b019-b9dc1d807212@opensource.wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On 6/5/22 19:48, Damien Le Moal wrote: > On 6/5/22 12:55, Bart Van Assche wrote: >> On 6/1/22 10:05, Avri Altman wrote: >>> As a design rule, sysfs attribute files should not be used to make >>> persistent modifications to a device configuration. This rule applies >>> to all subsystems and ufs is no different. >> >> Hmm ... where does that rule come from? I can't find it in >> Documentation/admin-guide/sysfs-rules.rst. Did I perhaps overlook something? > > I am not aware of any writable sysfs attribute file that can be used to > make persistent device configuration changes, at least in storage area. > I know of plenty that do change a device setting, but without saving this > setting to maintain it across power cycles. Do you know of any such > attribute ? I was under the impression that sysfs should not be used to > persistently reconfigure a device... I don't think the above is sufficient as an argument to reject a new patch that introduces a sysfs attribute that changes the device configuration. Thanks, Bart.