From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AAEB1C433EF for ; Tue, 12 Apr 2022 09:22:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E8D183BF8; Tue, 12 Apr 2022 11:22:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="lz7tgdRa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 920D183DAC; Tue, 12 Apr 2022 11:22:02 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B97EC83DAC for ; Tue, 12 Apr 2022 11:21:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F1CBB60BC8; Tue, 12 Apr 2022 09:21:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 430B0C385A6; Tue, 12 Apr 2022 09:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649755312; bh=sPazhTliWzJOcipdRLiyyETBFBV0suOe/xjZ2CtGzLM=; h=From:To:Cc:Subject:Date:From; b=lz7tgdRaCVM1vfD9en15fhxCyxhBBYLGefC1D/10+W9ePLxYGyqwpE4IAmp/0dJaG H30UvEz40nMxu7r/oLbJZR+9UnmAG8OvemR3FV+jkjuBBMOpjqTxIw+4nPw6cT5bj2 a/kukJ5weiNiqsSqQL5dv/jFgp6xEUDSwrthdlTgWC/z5j4lZ7jhVUskc/8JakKa8H UFF1Ewl7bK6aYwLIiiqNrMcV4KY0QoCy1wAI8yApiu3xZh2MpDLdtuA8eHZYDSnf4C iMXztaQCMMT3N6RrHhdBlHR1hM8ysfCBR7j9KIPi89GHzx6fmnyqBPZDeUNtILmXtB hZU81rcAiz8mg== Received: by pali.im (Postfix) id 32286A75; Tue, 12 Apr 2022 11:21:49 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Simon Glass , Bin Meng , Adrian Fiergolski , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH 0/5] crc16: Remove duplicate implementations Date: Tue, 12 Apr 2022 11:20:39 +0200 Message-Id: <20220412092044.25133-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This patch series removes duplicate implementations of CRC-16 with polynomial x^16 + x^15 + x^2 + 1. One implementation is enough. Atsha 5/5 patch depends on another atsha patch: https://patchwork.ozlabs.org/project/uboot/patch/20220402223634.20256-1-pali@kernel.org/ Pali Rohár (5): crc16-ccitt: Rename file with CRC-16-CCITT implementation to crc16-ccitt.c crc16: Rename fs/ubifs/crc16.h to include/linux/crc16.h crc16: Move standard CRC-16 implementation from ubifs to lib fs: ext4: Use CRC-16 implementation from linux/crc16.h misc: atsha204a: Remove duplicate CRC-16 implementation drivers/misc/Kconfig | 1 + drivers/misc/atsha204a-i2c.c | 122 +-------------------------- fs/ext4/Makefile | 2 +- fs/ext4/crc16.c | 62 -------------- fs/ext4/crc16.h | 16 ---- fs/ext4/ext4_common.c | 8 +- fs/ext4/ext4_common.h | 2 +- fs/ubifs/Makefile | 2 +- fs/ubifs/crc16.c | 60 -------------- fs/ubifs/lpt.c | 2 +- fs/ubifs/lpt_commit.c | 2 +- {fs/ubifs => include/linux}/crc16.h | 0 include/u-boot/crc.h | 5 +- lib/Makefile | 7 +- lib/crc16-ccitt.c | 84 +++++++++++++++++++ lib/crc16.c | 124 +++++++++++----------------- tools/Makefile | 2 +- 17 files changed, 156 insertions(+), 345 deletions(-) delete mode 100644 fs/ext4/crc16.c delete mode 100644 fs/ext4/crc16.h delete mode 100644 fs/ubifs/crc16.c rename {fs/ubifs => include/linux}/crc16.h (100%) create mode 100644 lib/crc16-ccitt.c -- 2.20.1