From patchwork Fri Jul 30 13:12:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 1511663 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GbnrW3KXLz9sWw for ; Fri, 30 Jul 2021 23:12:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 37FC5606AA; Fri, 30 Jul 2021 13:12:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2sqyw4OY51fx; Fri, 30 Jul 2021 13:12:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 7271160748; Fri, 30 Jul 2021 13:12:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C1D921BF390 for ; Fri, 30 Jul 2021 13:12:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id BE32683B45 for ; Fri, 30 Jul 2021 13:12:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vAoPXuIwkGHf for ; Fri, 30 Jul 2021 13:12:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by smtp1.osuosl.org (Postfix) with ESMTPS id EBD8083B51 for ; Fri, 30 Jul 2021 13:12:49 +0000 (UTC) Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 07FF7440432; Fri, 30 Jul 2021 16:12:29 +0300 (IDT) From: Baruch Siach To: buildroot@busybox.net Date: Fri, 30 Jul 2021 16:12:42 +0300 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] i2c-tools: bump to version 4.3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci , Matt Weber Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Drop upstream patch. Update README hash for text changes that are not related to license. Cc: Angelo Compagnucci Cc: Matt Weber Signed-off-by: Baruch Siach --- ...transfer-add-check-for-returned-leng.patch | 41 ------------------- package/i2c-tools/i2c-tools.hash | 4 +- package/i2c-tools/i2c-tools.mk | 2 +- 3 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 package/i2c-tools/0001-Revert-tools-i2ctransfer-add-check-for-returned-leng.patch diff --git a/package/i2c-tools/0001-Revert-tools-i2ctransfer-add-check-for-returned-leng.patch b/package/i2c-tools/0001-Revert-tools-i2ctransfer-add-check-for-returned-leng.patch deleted file mode 100644 index 7173efe2190d..000000000000 --- a/package/i2c-tools/0001-Revert-tools-i2ctransfer-add-check-for-returned-leng.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 06a1909ae1e8ae1edc70dc48dd22a32ba5eceecb Mon Sep 17 00:00:00 2001 -From: Wolfram Sang -Date: Tue, 9 Feb 2021 12:05:56 +0100 -Subject: [PATCH] Revert "tools: i2ctransfer: add check for returned length - from driver" - -This reverts commit 34806fc4e7090b34e32fa1110d546ab5ce01a6a0. It was -developed against an experimental kernel. The regular kernel does not -update the new message length to userspace, so the check is always false -positive. We can't change the kernel behaviour because it would break -the ABI. So revert this commit. - -Signed-off-by: Wolfram Sang -Signed-off-by: Wolfram Sang -[Peter: drop CHANGES update] -Signed-off-by: Peter Korsgaard ---- - tools/i2ctransfer.c | 7 +------ - 1 file changed, 1 insertions(+), 6 deletions(-) - -diff --git a/tools/i2ctransfer.c b/tools/i2ctransfer.c -index f2a4df8..b0e8d43 100644 ---- a/tools/i2ctransfer.c -+++ b/tools/i2ctransfer.c -@@ -88,12 +88,7 @@ static void print_msgs(struct i2c_msg *msgs, __u32 nmsgs, unsigned flags) - int recv_len = msgs[i].flags & I2C_M_RECV_LEN; - int print_buf = (read && (flags & PRINT_READ_BUF)) || - (!read && (flags & PRINT_WRITE_BUF)); -- __u16 len = msgs[i].len; -- -- if (recv_len && print_buf && len != msgs[i].buf[0] + 1) { -- fprintf(stderr, "Correcting wrong msg length after recv_len! Please fix the I2C driver and/or report.\n"); -- len = msgs[i].buf[0] + 1; -- } -+ __u16 len = recv_len ? msgs[i].buf[0] + 1 : msgs[i].len; - - if (flags & PRINT_HEADER) { - fprintf(output, "msg %u: addr 0x%02x, %s, len ", --- -2.20.1 - diff --git a/package/i2c-tools/i2c-tools.hash b/package/i2c-tools/i2c-tools.hash index 150bdb2e6341..9bfdacb3f1ef 100644 --- a/package/i2c-tools/i2c-tools.hash +++ b/package/i2c-tools/i2c-tools.hash @@ -1,7 +1,7 @@ # From https://www.kernel.org/pub/software/utils/i2c-tools/sha256sums.asc -sha256 37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6 i2c-tools-4.2.tar.xz +sha256 1f899e43603184fac32f34d72498fc737952dbc9c97a8dd9467fadfdf4600cf9 i2c-tools-4.3.tar.xz # License files sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LGPL -sha256 370e8bc3d45744170cc4b12dc5135b107fa40a00179a19973fbd714146dec04c README +sha256 2293b6e9076984d02184ff620baac557143e16cfa47d88f0a791d05a1271742c README diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk index 8936f6c4f6d7..7565349f5efb 100644 --- a/package/i2c-tools/i2c-tools.mk +++ b/package/i2c-tools/i2c-tools.mk @@ -4,7 +4,7 @@ # ################################################################################ -I2C_TOOLS_VERSION = 4.2 +I2C_TOOLS_VERSION = 4.3 I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.xz I2C_TOOLS_SITE = https://www.kernel.org/pub/software/utils/i2c-tools I2C_TOOLS_LICENSE = GPL-2.0+, GPL-2.0 (py-smbus), LGPL-2.1+ (libi2c)