Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp793124ioo; Thu, 26 May 2022 15:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVl/+S1Bvj7+CxuFD/4SfehrQvrctgB3vIBEd/tyAvpQXyLLiRegEw1Y+YSOmnTzdkMDF3 X-Received: by 2002:a63:dd4c:0:b0:3fa:a80e:8ba0 with SMTP id g12-20020a63dd4c000000b003faa80e8ba0mr13635815pgj.167.1653603240622; Thu, 26 May 2022 15:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653603240; cv=none; d=google.com; s=arc-20160816; b=PAb4MTDWlRVUT6oeL/FnPs58p/15Z5646DjZfPnaeF93zsm3Pr5WTyAuCFXoIE0R7V EW0Jq1JGPl23tWe0ODez/ZVYissys0u6Vf9XC2t6WFdkzOaCjozg9h2tmYkJpazh8EiK ZKvKstHOpEUMfJ7QrDH6g6pFPd5VfVjfGssAZcLcEPddc/nk1z/xkXaD5U3F3Dum/wwj xC/S63t8dVlZe7Pc/EP8KjdkX4JfqGLdA/mmr2PhoC1EO4/wCDlXa4+k0yMn8HQzrpKb SrQ3WmmePdE1AEotiHatCxSQfAP0t1ITci2JfqzHUfSHOnANFueTMZtLlVDEI6JsKAWX Mt9A== 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:autocrypt :from:references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=/h9OlJmTUr9r9fpUj2hVVrMBtpeveoTBrzqKr4leYbU=; b=tT0KowYinUze1qpcCoCAIB54mDjukFsXDlyOgwBpkxzxRde3gf+cdrY0TAyKKjhqIZ TsjoSLfdzu3RyShkFcJHtS6/e67Xh91V/WNNWDkqlaeRyCry/cLSEI+B0XBGnCZnSPlo k8qtJnke6yXrh0UoY40A6H7n/WVARItcYJZWdFciGT/pQ7KLGKfK5khxuIG6Kgyh9Fb4 NCmTKT4g2dM+lGFKypg2HlX9/AvdncJQabkI4yPPOKmgEC12MyPf3CRob2pCKYBQPyvA 5ogLW7GafSwdLsCwySm5ApeTKo4bnygoa2UNwm7o3kDZPL0jfL+FYrDobJyrLtE10X9p eDAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=JsNttbH2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a170902ebcb00b0015d1f4d22b6si2888073plg.133.2022.05.26.15.13.48; Thu, 26 May 2022 15:14:00 -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=@riseup.net header.s=squak header.b=JsNttbH2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348893AbiEZUMl (ORCPT + 99 others); Thu, 26 May 2022 16:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344013AbiEZUMi (ORCPT ); Thu, 26 May 2022 16:12:38 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47E6C1EC4; Thu, 26 May 2022 13:12:37 -0700 (PDT) Received: from mx0.riseup.net (mx0-pn.riseup.net [10.0.1.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4L8Jy21VwNzDs0j; Thu, 26 May 2022 13:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1653595957; bh=/h9OlJmTUr9r9fpUj2hVVrMBtpeveoTBrzqKr4leYbU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JsNttbH2GcO0qsOBMAjtUGqKkzXaeFVJwjANk7NtoCmB+yxT4m7zzpwGYcrVpq07W JBEn8nLsjWHC32Y5FPLFWUGY7MsU0IthOqkW5RB7eGjT6rMoggDqhNQPTvmvlEdPHM Y3JzKuYAVPmrMVS67ix/fq/LYHAOjCAaV4CAJk5k= Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4L8Jy1278Qz9tBX; Thu, 26 May 2022 13:12:25 -0700 (PDT) X-Riseup-User-ID: FB853247F7ABA718FEEF3371A4958415B94990E7FE0E0CCDCB376597555A7E17 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4L8Jxx4PFfz1yPT; Thu, 26 May 2022 13:12:21 -0700 (PDT) Message-ID: <8d25171a-5d86-9acc-0f94-1a3c6efdb360@riseup.net> Date: Thu, 26 May 2022 23:12:19 +0300 MIME-Version: 1.0 Subject: Re: [RESEND PATCH] scsi: ufs: sysfs: support writing boot_lun attr Content-Language: en-US To: Avri Altman , 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> From: - Autocrypt: addr=a5b6@riseup.net; keydata= xjMEYZTAJxYJKwYBBAHaRw8BAQdAeWfL/oPvU6yvaH7cClu6KaN2CflyoTcg5qPUoNLFnAzN Ey0gPGE1YjZAcmlzZXVwLm5ldD7CkQQTFggAORYhBLyRr+O3uqpzVxFlHDLzs9uoV47bBQJh lMAnBQkB4TOAAhsDBQsJCAcCBhUICQoLAgUWAgMBAAAKCRAy87PbqFeO2+KCAQDK9VqUAzN0 N7nm9n2G8SI1gbAgbZFprSAaYvQaRIlyIQD/eSi/7185I93xAjF/AX78akjD/+tyBYl5JD+r iVv+8ADOOARhlMAnEgorBgEEAZdVAQUBAQdAs6KmMDge7X9mnh9UqTKC0sDdBceE2W+K+7Z8 GPjb5SkDAQgHwn4EGBYIACYWIQS8ka/jt7qqc1cRZRwy87PbqFeO2wUCYZTAJwUJAeEzgAIb DAAKCRAy87PbqFeO2y/wAP92MinlCPDaPtB1JlmCNmg4638kf5qEh/kVeVPYJyGIvgD6A37W tjfuHjLL5Vi0iIdXGbOruHfOx3uQSocZ5UnbGwc= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 SGksDQoNCk15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ZnNoY2RfcXVlcnlfYXR0 cl9yZXRyeShoYmEsIFVQSVVfUVVFUllfT1BDT0RFX1dSSVRFX0FUVFIsDQo+PiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFFVRVJZX0FUVFJfSUROX0JPT1RfTFVf RU4sIGluZGV4LCAwLCAmc2xvdCk7DQo+PiArICAgICAgIHVmc2hjZF9ycG1fcHV0X3N5bmMo aGJhKTsNCj4+ICsgICAgICAgaWYgKHJldCkgew0KPj4gKyAgICAgICAgICAgICAgIHJldCA9 IC1FSU5WQUw7DQo+PiArICAgICAgICAgICAgICAgZ290byBvdXQ7DQo+PiArICAgICAgIH0N Cj4+ICtvdXQ6DQo+PiArICAgICAgIHVwKCZoYmEtPmhvc3Rfc2VtKTsNCj4+ICsgICAgICAg cmV0dXJuIHJldCA/IHJldCA6IGNvdW50Ow0KPj4gK30NCj4+ICsNCj4+ICAgI2RlZmluZSBV RlNfQVRUUklCVVRFKF9uYW1lLCBfdW5hbWUpICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBcDQo+PiAgIHN0YXRpYyBzc2l6ZV90IF9uYW1lIyNfc2hvdyhzdHJ1Y3QgZGV2 aWNlICpkZXYsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcDQo+PiAgICAgICAg ICBzdHJ1Y3QgZGV2aWNlX2F0dHJpYnV0ZSAqYXR0ciwgY2hhciAqYnVmKSAgICAgICAgICAg ICAgICAgICAgICAgXA0KPj4gQEAgLTEwNzcsOCArMTE0Miw4IEBAIG91dDogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgXA0KPj4gICAgICAgICAgcmV0dXJuIHJldDsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwNCj4+ICAgfSAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBcDQo+PiAgIHN0YXRpYyBERVZJQ0VfQVRUUl9STyhfbmFtZSkNCj4+ICtzdGF0aWMgREVW SUNFX0FUVFJfUlcoYm9vdF9sdW5fZW5hYmxlZCk7DQo+Pg0KPj4gLVVGU19BVFRSSUJVVEUo Ym9vdF9sdW5fZW5hYmxlZCwgX0JPT1RfTFVfRU4pOw0KPj4gICBVRlNfQVRUUklCVVRFKG1h eF9kYXRhX3NpemVfaHBiX3NpbmdsZV9jbWQsIF9NQVhfSFBCX1NJTkdMRV9DTUQpOw0KPj4g ICBVRlNfQVRUUklCVVRFKGN1cnJlbnRfcG93ZXJfbW9kZSwgX1BPV0VSX01PREUpOw0KPj4g ICBVRlNfQVRUUklCVVRFKGFjdGl2ZV9pY2NfbGV2ZWwsIF9BQ1RJVkVfSUNDX0xWTCk7DQo+ PiAtLQ0KPj4gMi4zNi4xDQo=