Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216611/?format=api
{ "id": 2216611, "url": "http://patchwork.ozlabs.org/api/patches/2216611/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260326-env-scsi-hw-part-support-v1-4-55c9dd07a2cb@baylibre.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "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": "<20260326-env-scsi-hw-part-support-v1-4-55c9dd07a2cb@baylibre.com>", "list_archive_url": null, "date": "2026-03-26T22:59:26", "name": "[4/6] scsi: move scsi_scan() call out of scsi_get_blk_by_uuid()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1bba32b212192696b737d9994b1c44ed0955a3d1", "submitter": { "id": 87228, "url": "http://patchwork.ozlabs.org/api/people/87228/?format=api", "name": "David Lechner", "email": "dlechner@baylibre.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260326-env-scsi-hw-part-support-v1-4-55c9dd07a2cb@baylibre.com/mbox/", "series": [ { "id": 497665, "url": "http://patchwork.ozlabs.org/api/series/497665/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497665", "date": "2026-03-26T22:59:22", "name": "env: scsi: support SCSI env without partition UUID", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497665/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216611/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216611/checks/", "tags": {}, "related": [], "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 (2048-bit key;\n unprotected) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=RdDZ+29R;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=\"RdDZ+29R\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=dlechner@baylibre.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhfR11454z1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 10:01:33 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id CB99884020;\n\tFri, 27 Mar 2026 00:00:49 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 7043C80517; Fri, 27 Mar 2026 00:00:32 +0100 (CET)", "from mail-oa1-x30.google.com (mail-oa1-x30.google.com\n [IPv6:2001:4860:4864:20::30])\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 16D7783FA7\n for <u-boot@lists.denx.de>; Fri, 27 Mar 2026 00:00:24 +0100 (CET)", "by mail-oa1-x30.google.com with SMTP id\n 586e51a60fabf-40946982a78so579841fac.2\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 16:00:24 -0700 (PDT)", "from [127.0.1.1] ([2600:8803:e7e4:500:54a7:4cbc:7d2e:3b99])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41ccb6b1d25sm2742836fac.16.2026.03.26.16.00.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 16:00:21 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,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=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1774566022;\n x=1775170822;\n darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=6WQ+Hu3duV0r/JrmC11ZGMAtoUahx+16J7Jx/wqz88w=;\n b=RdDZ+29RUWYst5ErHR8bQBfdV4p0er2GbBQ2u44HOxYtngLa6eQrbObWxUU7a4fURh\n WvKwxkKbRttcJXYU2vKvUXXCIXe8zCzqBoB77BETFXcgWJek7pejvUj8K1zVglJ1Oogl\n /W8Q0Ce50dXYgyxP4eNrw7DOaMAOMJ4BbKqOplJhmTZqVuwqShelOBBcZWoXcxcb1+vO\n 19mgCYVvpPucuSQouXb3FGymHpuSX/nkvQQVXWQdS3Jm8TVk+TeQ3ehTnTNftpJHM/jE\n z5efBoRYCEumS/eUOkFfWXbNpdjVT0GTC6tStITVQCZ5hOW84WmnkQDqfcJyjD4YQX72\n M4lQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774566022; x=1775170822;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=6WQ+Hu3duV0r/JrmC11ZGMAtoUahx+16J7Jx/wqz88w=;\n b=BwHGK+1MNFA8U/CHE3kRFgRkp8pLhKJhpcz2HwhXIUGaD/hXsXlqPkT7ZgWxdGxmoD\n jNNbKgdg54+yUH2dc/j5nM86ZWOpk4W8xe4oYyc7EmsSuuft7IG+VyW6HeA5BaP1Jf/7\n 6KVyIMMTrutacB/ZynNPHiHCp+1yTDnW9E6d0cHlz6LixXUwaY+xXurh2yS60M9RZFHG\n LkmC/wJN8tU2GIPvU2U3Rg9A3LcT/n1bu5v/vdwUaDDeC69NSoTqmw37tsMTLqUVKfky\n YeyJW2313qKtjGQg6wp8MGEDODt/1YMabOYMLdcuzeqpWVjPwso7rowZcAR1ddW1okxH\n RX0A==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCVi5I2eVbPWSnxp8R0U2DynypC5Tw+FuoCPoCh2vnaXt0epGhIQt5oSeTUS8IQkt6K1oiro1QM=@lists.denx.de", "X-Gm-Message-State": "AOJu0YySIR8uNJrrU6YImOIqnlfGhj+lyfLB3RytgR/pxNyiRiCmj6nA\n eOXzD/oppu7Jue2JwjktFi2VWKR6tzb7ohmDOQ3zfqi9FspyW+BhZ6dnRouzEerb7Dg=", "X-Gm-Gg": "ATEYQzz39fJ/U0SHNKuUzSCDvGfkB5KML2lwiMaIVh7dqh5OxsD37b8cPKRPCvaVWxB\n rd8+GqRwBFxWuW0KCja40pH9bA8TN3e5+0nmiQnYcKvM2nhVfBiJflF6rCVAD0JarJxcG9jsuoh\n ouTFqRPzgTQMtL8+l3AQF5iovxpsQG/YPVN/4CXQ7Q7Ec/reKYmJKrNfnkk9MlMYslaaR/LMA+N\n nsau4iBbk2BEjhP2YlN3Fqvvf8lqboDKk8gnARP4TyDG4stCYF3snXLmF/HuiXVQMY2zt1y+ra0\n dU9WLkSiLItyC1qFgMz6oEp/hagaIovXfdORaUZUTJmxrG41SShKsO6mamCyEQz3sfvUp2Gxjm8\n fZa60h9KTJu6+vyBKVz2cPUfSwujIZ57H7KveD6R7UF/c/Gn6OnvHVf8paU0xrEVyeBBaiyKehj\n l9+ElgLypSOdKQu6iRvdPrZwetM1ki", "X-Received": "by 2002:a05:6870:808f:b0:41c:305b:14e1 with SMTP id\n 586e51a60fabf-41cec29b160mr76239fac.28.1774566021853;\n Thu, 26 Mar 2026 16:00:21 -0700 (PDT)", "From": "David Lechner <dlechner@baylibre.com>", "Date": "Thu, 26 Mar 2026 17:59:26 -0500", "Subject": "[PATCH 4/6] scsi: move scsi_scan() call out of scsi_get_blk_by_uuid()", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260326-env-scsi-hw-part-support-v1-4-55c9dd07a2cb@baylibre.com>", "References": "<20260326-env-scsi-hw-part-support-v1-0-55c9dd07a2cb@baylibre.com>", "In-Reply-To": "\n <20260326-env-scsi-hw-part-support-v1-0-55c9dd07a2cb@baylibre.com>", "To": "Casey Connolly <casey.connolly@linaro.org>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Sumit Garg <sumit.garg@kernel.org>,\n Varadarajan Narayanan <quic_varada@quicinc.com>,\n Tom Rini <trini@konsulko.com>", "Cc": "Julien Stephan <jstephan@baylibre.com>, u-boot-qcom@groups.io,\n u-boot@lists.denx.de, David Lechner <dlechner@baylibre.com>", "X-Mailer": "b4 0.16-dev", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2107; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=fifEeCAc8l7cFnBsdsn/SvRWgii4bPZn2Kb4Oi0Gj9E=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBpxbprkDT/zrHNkhCpjjMbOZunXknLwj/Y9CRV1\n iS6r9JWSV6JAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCacW6axYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/AtqIIAIJzidAuHVjIuJryUX1YDK01lvRsOQT3wczBvKq\n 1yv64civcRH1x9g4NYEwH75Yn2E8/JRfmeAI0aYJkpEAFoZzwTfdTJXAYzLYcUcxx42QYcM6hY9\n adZIqhtMR9h8u/LOaIBw65TU9tahNIlba7Y10Mq3/1OpVvSx7OWe++YXgkDqOOV94SKcDaLoqgP\n B6M4MivR6tNvWOF23DOCzg/pZXuPij2AAR9404sHijb1D1uLHcbGw1rGsli0isnuzMzNxJ34OGC\n PxqAl/ZELqsKpPbiCVlqSvxCpjGm/l+G96wIjwNm0umpnVaVJK2h4m+QtHIUiEUTuFZUZqrojtW\n 4HwQ=", "X-Developer-Key": "i=dlechner@baylibre.com; a=openpgp;\n fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03", "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": "Move scsi_scan() call out of scsi_get_blk_by_uuid().\n\nThe only caller, env_scsi_get_part(), should be managing this call since\nit may also want to use different ways to get the partition information\nin the future.\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n drivers/scsi/scsi-uclass.c | 6 ------\n env/scsi.c | 6 ++++++\n include/scsi.h | 2 ++\n 3 files changed, 8 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi/scsi-uclass.c\nindex e7870d7f831..39b4c7476d4 100644\n--- a/drivers/scsi/scsi-uclass.c\n+++ b/drivers/scsi/scsi-uclass.c\n@@ -29,15 +29,9 @@ int scsi_get_blk_by_uuid(const char *uuid,\n \t\t\t struct blk_desc **blk_desc_ptr,\n \t\t\t struct disk_partition *part_info_ptr)\n {\n-\tstatic int is_scsi_scanned;\n \tstruct blk_desc *blk;\n \tint i, ret;\n \n-\tif (!is_scsi_scanned) {\n-\t\tscsi_scan(false /* no verbose */);\n-\t\tis_scsi_scanned = 1;\n-\t}\n-\n \tfor (i = 0; i < blk_find_max_devnum(UCLASS_SCSI) + 1; i++) {\n \t\tret = blk_get_desc(UCLASS_SCSI, i, &blk);\n \t\tif (ret)\ndiff --git a/env/scsi.c b/env/scsi.c\nindex f376f731870..1787dcca92a 100644\n--- a/env/scsi.c\n+++ b/env/scsi.c\n@@ -33,8 +33,14 @@ static struct env_scsi_info env_part;\n \n static inline struct env_scsi_info *env_scsi_get_part(void)\n {\n+\tstatic bool is_scsi_scanned;\n \tstruct env_scsi_info *ep = &env_part;\n \n+\tif (!is_scsi_scanned) {\n+\t\tscsi_scan(false /* no verbose */);\n+\t\tis_scsi_scanned = true;\n+\t}\n+\n \tif (scsi_get_blk_by_uuid(CONFIG_ENV_SCSI_PART_UUID, &ep->blk, &ep->part))\n \t\treturn NULL;\n \ndiff --git a/include/scsi.h b/include/scsi.h\nindex c244120c283..2520a8b8fe6 100644\n--- a/include/scsi.h\n+++ b/include/scsi.h\n@@ -356,6 +356,8 @@ int scsi_scan_dev(struct udevice *dev, bool verbose);\n /**\n * scsi_get_blk_by_uuid() - Provides SCSI partition information.\n *\n+ * scsi_scan() must have been called before calling this function.\n+ *\n * @uuid:\t\tUUID of the partition for fetching its info\n * @blk_desc_ptr:\tProvides the blk descriptor\n * @part_info_ptr:\tProvides partition info\n", "prefixes": [ "4/6" ] }