Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5945577rwl; Mon, 9 Jan 2023 01:55:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXsG1u/+42BC3HjSwKnRB3yEXc6YT2O8at3byjymAor8t2A3NpbH/M4NGrqiWJgjyPbAK0st X-Received: by 2002:a17:902:f78e:b0:186:a43b:a5 with SMTP id q14-20020a170902f78e00b00186a43b00a5mr72056895pln.13.1673258156143; Mon, 09 Jan 2023 01:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673258156; cv=none; d=google.com; s=arc-20160816; b=Bn47kYshakYYHA2IxfLr3bwboD5BVT68U9ezWhXTy2520d9d3Umb7LsX/IgDgec/FR k4DlHyawUkoKLpc+xryBmAS3MwmHWbYhTSZOeO8SeKGmU5ghupWMcqGGOaHiXsnzvZmo eGoImTwMR0IkJu9TAQcijZLZ9bXcPBpofNv4MB3aHr8krcu/QsoGzhf+sfhkHkJD2i1E G22Ps2WHKsbCYFOBnnWp4EkYJgtNLoOKJRC+fvkFwi3l3YlDf17RvsUMIMs2i3QAynDb WcC2+sBqbu1aa4Q3S1lojUDNz9sD4OFGld70n821VA7rCrNKmUEfEeHJLD/7yH1g5UHX oOYg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LOStHq+ipuKaCiBTTx7gP6/oeUX0fNqjIj19PouSSpg=; b=keK5IRh7A6sAmmw3tadajYLZW2/M9PXLEEQvImR1+EJ+Nv0snaEyY5xq6H2pPLZOjb Z6XaBWdRPJcLNSzGlHFWQyl8M2cH1Dvp9lULYH53Lb8aEsn5OPnZevYogE0SoCM4u22v VfwBrW6v3NcJnTjgRmf9U99Z7sYNK2ViemRlOzUPqugbWZzLo0sFoFBtX39aZ1y2z5Vg re9+9TUSgzz7r0cSU0GOUvPp9ZJkjz3Atp4Da4S/RievCQIvj8l+AyzS0xbqbOQ+ZAX8 L9VWFHa4E9elAR2/ZhNV09zTLDSMlRAdGB66R22fS2ptPJ1IKhBqw+7QkTUtUrYcJVrw toMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cZ/9XaHV"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a170902788f00b00192a2db8159si8550574pll.376.2023.01.09.01.55.49; Mon, 09 Jan 2023 01:55:56 -0800 (PST) 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=@linaro.org header.s=google header.b="cZ/9XaHV"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbjAIJuR (ORCPT + 54 others); Mon, 9 Jan 2023 04:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237097AbjAIJtY (ORCPT ); Mon, 9 Jan 2023 04:49:24 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A65D13FBD for ; Mon, 9 Jan 2023 01:48:54 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id i17-20020a05600c355100b003d99434b1cfso6165255wmq.1 for ; Mon, 09 Jan 2023 01:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LOStHq+ipuKaCiBTTx7gP6/oeUX0fNqjIj19PouSSpg=; b=cZ/9XaHVUBbP514qYrq2pR1y7dRXw0tyilyZlAxhLkobjHQeEl1+Tc9Yj0tYTZ0cXI h+RhSzK7cZPOCpJDK6ojSXzOuiyxohZoEV+d2O7qeME/uVLu5JEgR0B5pTMV32sfC9bG JFakde57HTDAI84C7N/+Akk0QewwNrNE6rOTv/wNsuzgZyfNWwlOBLt+eZG+tDmlVnCL lyHNgNwRNQuFasAXg8Ayphpv5+EPjxHcz7rJZ80kKIHDt68/L+oEizU/43i9JKYKswXH Dxl/I0tsvyMX7/K3M09IJDqyZxwE1L0XWBKwuRJuxIP8plj/Vs+u/HfGPfHPWBB1puQ3 4IYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LOStHq+ipuKaCiBTTx7gP6/oeUX0fNqjIj19PouSSpg=; b=sROPkD261O0CTGstzsGaHp9vuhloZUYyLJ9XxC1oZFO9Unz9wS/uGx5zbYLPklD2N7 5FdjGI6dmA/lf/ZtuWcgDcv0lNkhCZ8qvJHHDqB4cX4AONa8pKYTbk33MkwjBmgBy+kl hugjZ7i8RYEOLEJxkehk7oxWPocAYbL6Qb1Gz/VjFonoFppVC57gy0wzXwtllT9BRwaC 9veRF0w7jsKORslxoQlo2rri2OP+3EKlEd/I4JgnTgedOk5dYxXQtml2bw8cl2L/W6nk jDrtdeUZlwo8t5SPAU0iIh5cXPQ27y0YoOIBctu24cD8O2307ICCziLOcLHooNEcWkKe oMfg== X-Gm-Message-State: AFqh2ko1K/IiR8wFdS5vJBOIm84rYjYkZYcbUrvcBeIqhLK4BReEfojW 9U9KGxb9AHE822Ak3nl/41cRe4L6A6wnz1MIiM0= X-Received: by 2002:a05:600c:a56:b0:3cf:894d:1d06 with SMTP id c22-20020a05600c0a5600b003cf894d1d06mr45658465wmq.30.1673257732599; Mon, 09 Jan 2023 01:48:52 -0800 (PST) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id r5-20020a05600c35c500b003d98f92692fsm11722414wmq.17.2023.01.09.01.48.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 01:48:51 -0800 (PST) Message-ID: Date: Mon, 9 Jan 2023 09:48:51 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2] nvmem: u-boot-env: align endianness of crc32 values To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: INAGAKI Hiroshi , linux-kernel@vger.kernel.org References: <20221012155133.287-1-musashino.open@gmail.com> <57f10c5d-2a71-7f8d-e2ab-6e868d8ba79b@linaro.org> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 Hi Rafal, On 06/01/2023 19:15, Rafał Miłecki wrote: > Hi Srinivas, > > On 2022-11-11 18:41, Srinivas Kandagatla wrote: >> On 12/10/2022 16: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 >>> --- >> >> Applied thanks, > > has this patch been lost somewhere in the process? > > I'm quite sure I saw it in linux-next.git and probably in nvmem.git. Now > it seems to be gone. Yes, I had to revert this one as next reported sparse warnings [1] with this patch which were not addressed. --srini [1] https://lore.kernel.org/linux-mm/202212040713.rVney9e8-lkp@intel.com/T/