Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4648748rwi; Mon, 17 Oct 2022 08:54:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4N7TfGaX9bigQNTVQeqXXLX6jqx/9KZdIuunPyYBFyq/f/1eX3iv6r34h1ppPhAvZHC140 X-Received: by 2002:a17:906:cc0d:b0:78e:2c06:8e70 with SMTP id ml13-20020a170906cc0d00b0078e2c068e70mr9036829ejb.732.1666022075622; Mon, 17 Oct 2022 08:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666022075; cv=none; d=google.com; s=arc-20160816; b=HY63rGVhaYOht78PhkWEmatWgiP/a67Ey09S7I/o/j/rewXQbRjXng0EGjQm63WArC OywIqhSMgoF3vHIl695v6o4rxk6fPDtn7hm8CzmNt6FB3HDt6IU5uzivAehwVgABUNLn 54UgUPYmjX91RnyNIBTq2t6VQBpnvuzlytB/yjkJ9EkxHk9KfhKi6ptzV4oJkPOPEF0Y 42FhCItjq55bkVLO1xe+IQwQkgpkKk1hevMStHpFd6/eBNfdy6Nuy1i2Mgps0g9BT/Gk QMF8XqjgFD3vHIeKrdo/1n1QKsOnACDyyeRvnC/8TDdoyo/wt7Uh3kyCeP1Dh9SbIy4+ FUmw== 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:subject:user-agent:mime-version:date:message-id; bh=GbgncOZEmCAj9cc00RgXpC9szkpF+YjHGG5uyCvvXck=; b=K2X4piprtEwRv1wtuMHvP7/j3mPzuvP03uzmM+zZGsuAsd78lFuAiWkI/eY8lkHkYj d9lC73Jl7zIK8tKXZZ7loUXyeFYJc7I/R6rYDQCM8lF6G1L2Yg9UIzznCG2wvILbXGMD tDj0XKSprerS4PxJ8LPFD2dDPWM0tb0D6sgNRYh8IjGPnOgLZDQmZ55bEMigF32CVCmB QcPNs5p5YINuZ/CsOxAAkPG+mbv5sD4rNOAf4x3m6+VxL9sQgd5bTtRHK7ZJgaZ8mo88 dqgd+8RTby5Yf/XAGGcbg7yyqazdfC8Ng+9rmM2J8MtUBGN+ZsEUHpMrxDf1wVEZAnNq ygAg== 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 cw10-20020a170906478a00b0078db89b526asi10090792ejc.108.2022.10.17.08.54.09; Mon, 17 Oct 2022 08:54:35 -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 S230400AbiJQOiJ (ORCPT + 99 others); Mon, 17 Oct 2022 10:38:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiJQOiH (ORCPT ); Mon, 17 Oct 2022 10:38:07 -0400 X-Greylist: delayed 20835 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 17 Oct 2022 07:38:04 PDT Received: from 16.mo550.mail-out.ovh.net (16.mo550.mail-out.ovh.net [178.33.104.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D13BF659C0 for ; Mon, 17 Oct 2022 07:38:04 -0700 (PDT) Received: from player715.ha.ovh.net (unknown [10.108.1.121]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id E522525237 for ; Mon, 17 Oct 2022 08:43:38 +0000 (UTC) Received: from milecki.pl (ip-194-187-74-233.konfederacka.maverick.com.pl [194.187.74.233]) (Authenticated sender: rafal@milecki.pl) by player715.ha.ovh.net (Postfix) with ESMTPSA id 76A492F9C120F; Mon, 17 Oct 2022 08:43:36 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-110S004ec95ac2e-c881-47a8-ae74-8219bca6a23c, FF0B1D635228C6B078EFA7CC0635FA60C13E13FA) smtp.auth=rafal@milecki.pl X-OVh-ClientIp: 194.187.74.233 Message-ID: <1a25d042-994d-40e3-b46e-b052a8ee37c4@milecki.pl> Date: Mon, 17 Oct 2022 10:43:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Thunderbird/96.0 Subject: Re: [PATCH v2] nvmem: u-boot-env: align endianness of crc32 values To: INAGAKI Hiroshi , srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org References: <20221012155133.287-1-musashino.open@gmail.com> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= In-Reply-To: <20221012155133.287-1-musashino.open@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 1565563823855610843 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekledgtdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrfhgrlhcuofhilhgvtghkihcuoehrrghfrghlsehmihhlvggtkhhirdhplheqnecuggftrfgrthhtvghrnhepueeltedugfekveffgfegffevveeluedtkeekjeeukeevveethffhgeevgeeghfdunecukfhppeduvdejrddtrddtrddupdduleegrddukeejrdejgedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehrrghfrghlsehmihhlvggtkhhirdhplheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 On 12.10.2022 17:51, INAGAKI Hiroshi wrote: > This patch fixes crc32 error on Big-Endianness system by conversion of > calculated crc32 value. > > Little-Endianness system: > > obtained crc32: Little > calculated crc32: Little > > Big-Endianness system: > > obtained crc32: Little > calculated crc32: Big > > log (APRESIA ApresiaLightGS120GT-SS, RTL8382M, Big-Endianness): > > [ 8.570000] u_boot_env 18001200.spi:flash@0:partitions:partition@c0000: Invalid calculated CRC32: 0x88cd6f09 (expected: 0x096fcd88) > [ 8.580000] u_boot_env: probe of 18001200.spi:flash@0:partitions:partition@c0000 failed with error -22 > > Fixes: f955dc1445069 ("nvmem: add driver handling U-Boot environment variables") > > Signed-off-by: INAGAKI Hiroshi Acked-by: Rafał Miłecki