{"id":2235149,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2235149/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260508162259.2302319-1-sjg@chromium.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260508162259.2302319-1-sjg@chromium.org>","list_archive_url":null,"date":"2026-05-08T16:22:31","name":"[v2,0/1] cros_ec: Sync with upstream Chrome OS EC","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/1.2/people/6170/?format=json","name":"Simon Glass","email":"sjg@chromium.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260508162259.2302319-1-sjg@chromium.org/mbox/","series":[{"id":503419,"url":"http://patchwork.ozlabs.org/api/1.2/series/503419/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=503419","date":"2026-05-08T16:22:31","name":"cros_ec: Sync with upstream Chrome OS EC","version":2,"mbox":"http://patchwork.ozlabs.org/series/503419/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2235149/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=QLYoHtB4;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"QLYoHtB4\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gBvYf4KZ0z1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 09 May 2026 02:23:18 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 81E2384D73;\n\tFri,  8 May 2026 18:23:15 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 5BD1F84D78; Fri,  8 May 2026 18:23:14 +0200 (CEST)","from mail-ot1-x343.google.com (mail-ot1-x343.google.com\n [IPv6:2607:f8b0:4864:20::343])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 00B3184D5B\n for <u-boot@lists.denx.de>; Fri,  8 May 2026 18:23:11 +0200 (CEST)","by mail-ot1-x343.google.com with SMTP id\n 46e09a7af769-7dcc9b506d9so1776839a34.1\n for <u-boot@lists.denx.de>; Fri, 08 May 2026 09:23:11 -0700 (PDT)","from chromium.org ([174.51.25.52]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7e367d90148sm1436337a34.20.2026.05.08.09.23.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 08 May 2026 09:23:09 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1778257390; x=1778862190; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=Qd0lFrNgia3xt11lvXyTMTwJ4JVGX0Yzc+WztkmvhLY=;\n b=QLYoHtB45tc7mCJ2l3110pcvGs3D/IyIw5nIhzD0/1NfYBFOPWF/5cYIK0hVrSuTRy\n nAZ79M6yE8amZSVSA5R/X9MHvQCTD4DQDOGhpJbvZabMHNg3Q05S0LJTmraVbBdNyq8b\n OkkimttxB6RrK2qDy36IjtnVYSMMNjw8YnL+k=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778257390; x=1778862190;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Qd0lFrNgia3xt11lvXyTMTwJ4JVGX0Yzc+WztkmvhLY=;\n b=bHc7fEcwRh4A2qY43yyPnD+fZAouAE+rdVjMuYGthcQpCc3s01kZ3+tjHIIiA2VCO5\n ts5vDqP95e80A1ib2aOToLTp/ebBzp1Q1/cZoY9jrIeJRp16XcNMnurKCDLgINIvNfSO\n 9O9poT92iq5Um+IfBjpMpFDYqh3zHEkcH04IzCP9T/KIrucERGZmFLaXJ1Gkb6IGNkBE\n SJbI34IBZB3vH/rgpAQXKFyKFM5Rj/RmkHYs41Jh2lC0KbV9xDaP/sDiYXMdcH8VPLmM\n mTZEFykZZ9KO4Lki9qmttqBqDwnHFfhPxEglKzCh1+eKAc8685PrIXu/n5kekIIvrOrV\n KS+w==","X-Gm-Message-State":"AOJu0YxxHDx5jmKQA801PLOUvTmPPdX3cjLA3PzyKO/rD+1uhHb7xihm\n mdJI9tYn1nph8BbOBVa+7Oa/W6YHWhSTXhlZf/RdcgaDGteNEkzBkEfRTuagruujDaxpnkA5Bs+\n yXBMAkaUs","X-Gm-Gg":"AeBDietDoHeU8LI0AKUlP95xrx+yPhWtziuJnkKe88KAblkZ4YRzoS7hatCWfETm4ba\n Eju+jzdYen5yI8Cf1mGYMXFHRf8pd79/gcqsmf8mhKGDgtECApXbSbzQHOHFgLohed5+DT96zqU\n 5ZUVNkEcXrav09fjwNBJQuvhnXw5mQo+tOra1gWEKVCo5fOxt+Xo6Btlr3ey1xXawSqn9RotKrD\n JIUZN1r+dQIcpQ+kyfCDPRWUomEyM2j7tL9NGqpSft2ylEpy+xNjlWUZJmHq2kGLyA3mMG8r2SQ\n qdJnk2VNZ+sfiuZIJNoZctl8/tb29eAnN1ed4jGyac9Q0eqSJLJgD0arjxTZrD/n5xpYM1CLNz9\n Pakv24CBUCZ3N5o2kJmzi+Qr5pd7XVk2/X6sdCvXIJozfHCGV0On4Q+//QfcwjlBUvjlzgIYnKg\n pIVVq6qBWKpJREV5CmbQ==","X-Received":"by 2002:a05:6830:6ad3:b0:7e1:cba6:9837 with SMTP id\n 46e09a7af769-7e1deefaccemr8314084a34.6.1778257390074;\n Fri, 08 May 2026 09:23:10 -0700 (PDT)","From":"Simon Glass <sjg@chromium.org>","To":"u-boot@lists.denx.de","Cc":"Quentin Schulz <quentin.schulz@cherry.de>, Simon Glass <sjg@chromium.org>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>","Subject":"[PATCH v2 0/1] cros_ec: Sync with upstream Chrome OS EC","Date":"Fri,  8 May 2026 10:22:31 -0600","Message-ID":"<20260508162259.2302319-1-sjg@chromium.org>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"U-Boot's include/ec_commands.h is significantly behind the upstream\nhttps://chromium.googlesource.com/a/chromiumos/platform/ec ChromeOS EC\ntree.\n\nThis series updates it and provides some fixes to resolve the resulting\ncompilation errors and warnings.\n\nChanges in v2:\n- Drop patch 'bitops: Guard GENMASK and GENMASK_ULL against prior\n  defines' by restructuring the __KERNEL__ gate in ec_commands.h\n  instead, per Quentin's review\n- Nest '!defined(__UBOOT__)' inside the existing '__KERNEL__' gate so\n  U-Boot skips both <linux/limits.h> and the local BIT/GENMASK\n  defines, avoiding redefinition against U-Boot's linux/bitops.h\n- Pull in <linux/bitops.h> up front for U-Boot\n\nSimon Glass (1):\n  cros_ec: Sync ec_commands.h from upstream Chrome OS EC\n\n arch/x86/cpu/apollolake/cpu_spl.c |    2 +-\n cmd/cros_ec.c                     |    4 +-\n drivers/misc/cros_ec.c            |    2 +-\n drivers/misc/cros_ec_sandbox.c    |    2 +-\n include/cros_ec.h                 |   36 +-\n include/ec_commands.h             | 7784 +++++++++++++++++++++++------\n 6 files changed, 6299 insertions(+), 1531 deletions(-)\n\n---\nbase-commit: 3cdd19089f1b1b7cd08530f33ff4708abcfd426c\nbranch: ec2"}