Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E1F1C07E95 for ; Sun, 4 Jul 2021 18:20:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 487E5613CB for ; Sun, 4 Jul 2021 18:20:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 487E5613CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 60F1982BC7; Sun, 4 Jul 2021 20:20:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="gHIppiNR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 41F9D82BC4; Sun, 4 Jul 2021 20:20:04 +0200 (CEST) Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4B48982B20 for ; Sun, 4 Jul 2021 20:20:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32b.google.com with SMTP id t24-20020a9d7f980000b029046f4a1a5ec4so15960079otp.1 for ; Sun, 04 Jul 2021 11:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6Vet/9ncZilQVkDk4oH17BWVN8U24Sn/hq4UhEvY7IA=; b=gHIppiNRS84yEZKSCdi+hPhOAAM1CdSSjph+NtzJFPoxP0yu6yubwGHnWqe52YUMif Xw1J4sRZlcERZkQXHeg38MUOWyjJ5iNctp+su8FB/hYGaFz+qnulYIYGAkykpDv1EHfB +LvmeyWjDsQBfHZ7iOA0UNpHVL5CB23NjCFqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6Vet/9ncZilQVkDk4oH17BWVN8U24Sn/hq4UhEvY7IA=; b=iNLz+0jq30fVMIOrKv1jldCNocr2bpaLNE4z6dmLOof9pgHQeQlL8VAtgvG2srmYqq GJPVkelJ86nvC9VFccRP829xwXyzahe99AtJqRoGiqvLT8T5rJ/4zB7B/3hX7Y3K4mqC x+6K7SGzdQa2PXHcnleho/0TepSurEnZD4tLJwdKeolE2e2syiHUdM57vUcK+NBoTm4v F7frpiJZ95VLIaxQHIVZfKJGnPfT+J0PxEJA2sMu3fRwAAAfjP7Pw0nodzFvjexH04k9 R2gXJUxuaOQ7Fj2d1orsOBes2s2AhW/oIhj/lzXeeO/qd3LPXUXHdXhSy545OczVaCLv zwLg== X-Gm-Message-State: AOAM5332De4e1wjZF9IpQQi+FN2MUN9YP6s0r1QjqA4oAkQaLW3M2jxi 7F2WnrZAeDgFKWcRCr04qmpl9BeDj2g4z61t X-Google-Smtp-Source: ABdhPJxpfCHKMXIXWTP7VuCMiazFEm6SQmqupjJ2QbjN4zTxXX27CziOciDLE9fRsln/6Tn07X8JAw== X-Received: by 2002:a9d:7192:: with SMTP id o18mr8259185otj.370.1625422798537; Sun, 04 Jul 2021 11:19:58 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id z2sm2092953otm.2.2021.07.04.11.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 11:19:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Johan Jonker , Simon Glass , Walter Lozano Subject: [PATCH 0/8] dtoc: Improvements to warnings Date: Sun, 4 Jul 2021 12:19:42 -0600 Message-Id: <20210704181950.1917106-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean The warning about a missing driver can be a bit confusing and is not specifically mentioned in the documentation. Also some parse errors result in the driver simply being ignored, which is hard to diagnose. This series updates dtoc to try harder to find common errors and report a useful warning. It also adds a section about possible problems to the of-platdata documentation. Unfortunately the use of match-object subscripts is not supported in Python 3.5 and earlier, so a patch is included to avoid this. Finally, a short usage string it added to the help output, with dtoc being converted to use ArgumentParser in the process. Simon Glass (8): dtoc: Avoid using subscripts on match objects dtoc: Convert to use ArgumentParser dtoc: Allow multiple warnings for a driver dtoc: Correct the re_compat regular expression dtoc: Add a stdout check in test_normalized_name() dtoc: Detect unexpected suffix on .of_match dtoc: Detect drivers which do not parse correctly dtoc: Update documentation to cover warnings in more detail doc/develop/driver-model/of-plat.rst | 53 +++++++++++ tools/dtoc/main.py | 51 +++++----- tools/dtoc/src_scan.py | 45 +++++++-- tools/dtoc/test_src_scan.py | 133 ++++++++++++++++++++++++++- 4 files changed, 247 insertions(+), 35 deletions(-) -- 2.32.0.93.g670b81a890-goog