From patchwork Tue Apr 9 13:55:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787213 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp228555wrs; Tue, 9 Apr 2024 06:56:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXF970ktbdD9EsRsA6NRcY+et62onwe/adpvKfZTxDTzWrpQ0qOUMGQoX46bq9aaMRNa15clg0cT8WjXBx/4cmx X-Google-Smtp-Source: AGHT+IH0U1dpw1j1Jccz4n2OxRHv1a19mxsDE/XI02FmYY13MlM+Zuw7NQHpq3NioNnAgKPlnOpK X-Received: by 2002:a50:9547:0:b0:56b:d013:a67e with SMTP id v7-20020a509547000000b0056bd013a67emr2693659eda.18.1712670973646; Tue, 09 Apr 2024 06:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712670973; cv=none; d=google.com; s=arc-20160816; b=vcDlGYhSvM2AjuxQ1e8XzjejMJUiu73O7f2oIH81o+ksuwwjxdWAwnNq8qyYdHRh54 q9deDH2y3d/zIHeA5KTiqgKJDLsVDo0HEhyTMdUVGhg5bV/UL2KsaHSqQfU7jw1l/Y70 kEwY1zrnEk3t2sGjeDX/PbB5j2wftmOBKBkkv3BoOJAObJBHmupw9lH32N7sjIuiSq0p An71uwPVWHWZmo2trJ3ysFNvL6wnbm0TCt6Wjhe20/DwUGJ7mASNQBeHppKJ5IC28zPu O/pd0yHMFSn63o3rkIGah2l3Va1+cgZPIlE/BbHLrRzyG28Yy9p6MKQOrQFyWdthP0YW 41/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=Ol8FHjgOvg5909rzUtg0MZ2pEFXXhfdpW4w/MWR8IX8=; fh=gPPCCFBJKvr+nUKE11wvultpwFZ0+Hgc/iyZILN+ko8=; b=lJn4wEAUVOW9m+60pki+eRg0wPCc+AwXnW2jKXYiOmLlmiiuIgqnoPCf3yTBSG3XGs P7r6VNX8Wtx+lumxs2dQ1/KNtszFSd4eWPrlMsVVhZv5u1rH2IBZdm3B4UxYbL7oimB7 xwo2V37IRDR4YOU4Tmfubb/YY+YEyFJRs4GCVSuNVTec9kEm6Eug6myBMqxnbh8pDPwL Ab5lMGr00ihaBX23U3yiEO/MMWJGyWlDMfs/YZ9gHQB3xuNqRPSXg0ogcVwxdq+gQw+c 8JMGuGSAcqdGqupUVwbwjJ9oFiBdg8a4X0bQCrdSQNKt3/F7GaBS4VTjvvISXd6Oq0Wg PmaQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ms+csGYV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id h16-20020a056402281000b00568b4af7206si5026202ede.482.2024.04.09.06.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:56:13 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ms+csGYV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A1BE879E2; Tue, 9 Apr 2024 15:56:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="Ms+csGYV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F79787FBF; Tue, 9 Apr 2024 15:56:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 6288887E86 for ; Tue, 9 Apr 2024 15:55:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so938889966b.1 for ; Tue, 09 Apr 2024 06:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712670956; x=1713275756; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Ol8FHjgOvg5909rzUtg0MZ2pEFXXhfdpW4w/MWR8IX8=; b=Ms+csGYVDJRKNIOAkFBBL/aUSIvmzpn0QIAQj7+1I/yQIzVCfI5/EQYKh7sx8kgq+R w7vpLMUdAsAjQpN1wTD33EEncOZAJIIoqdr79DMut/AOHJuXVkD9ynMEjEfARreCbYN9 hmv8f18RjBQbM1oVRDOOOW4tyABCzPOAK4WgU5QhUTWCgTMy4Pu3iGqxrpvOJ1qOj+al 03656dMrZH/HYH8eVHLZg34kR28pSWS1v6k+I7LYmsO6drekP6Oi2uJBPjupI9dNisvB fU63R8ETCe0F/qpplm/FgZHJ16/VljOggeTJCyKrwdUxR0d4jnSr2T02/dBbwmDXP+NW 8XGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712670956; x=1713275756; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ol8FHjgOvg5909rzUtg0MZ2pEFXXhfdpW4w/MWR8IX8=; b=TthAtNXt5hZSkqDRXtn1Z22nYMFybS0U05KYgaOD4bH6GUxqhTgsd7OSE77bo5USSQ dZhsYXLGJq3hIVl7EqNX1wUQhYfI00mHsVdv67MZYpSoAW8y2swEhOUTMrAnpNsxMS3x qRWlhfanrKsguGS8M0kUsYeyZ6IHbcInSnxV8ajKqQrnSoKxK6YP0ddirdI0qHda6OuC dJ+YEDqSjlMJuZDr+nLMvZi7t1FIWlALRiNPctVC/CaVTuXM2Jvfr87ICE2I8yYyWWNm 1VoZx97lgFMvPpR9129qrHB+JfddvV9OQha5RqquHxRhZ/MbdLU5dkjzo+ZeMvh9ifHw qlYw== X-Forwarded-Encrypted: i=1; AJvYcCVcYGJxcfB4uLWuUrNPvluodYUutZlSk/4/B/bH2m4GHOdpQEsR8LptVmanOx/DON7cx1LmfslwDJ3AOnHfwsLVI2DoBQ== X-Gm-Message-State: AOJu0YxGE6up5eLlnHg8Le/TgDfgnaGwwNx7dI4etsiPmk9On6Fk2pyS CCD8ygNKg1b+PQ/ee10hgk6LDuzQI1+GiEs4rOLXqXaYQp1LQ3Hxtwdqu7S98lQ4So2+K4hwufb 9 X-Received: by 2002:a17:906:37d5:b0:a51:985d:949e with SMTP id o21-20020a17090637d500b00a51985d949emr2524538ejc.2.1712670955817; Tue, 09 Apr 2024 06:55:55 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id t1-20020a1709067c0100b00a46aac377e8sm5720612ejo.54.2024.04.09.06.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:55:55 -0700 (PDT) From: Caleb Connolly Subject: [PATCH 0/2] qcom: capsule update prep (DFU scsi + GPT part type flags) Date: Tue, 09 Apr 2024 15:55:51 +0200 Message-Id: <20240409-b4-dfu-scsi-v1-0-3e1441a60376@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOdIFWYC/x3MMQqAMAxA0auUzAaqFCVeRRzUppqlSoMilN7d4 viG/zMoJ2GF0WRI/IjKGSvaxsB2LHFnFF8Nne2cdZZwdejDjbqpIHnX2xCIBuqhFlfiIO9/m+Z SPuDGc3pdAAAA To: Tom Rini , Simon Glass , Lukasz Majewski , Mattijs Korpershoek Cc: Neil Armstrong , Sumit Garg , Ilias Apalodimas , u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1123; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=elBZjamn5BzarEP1pWrBFHW5++Xjm9e4xrUfyQ6BqVo=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFUjq8HZaEcf3jXlgMcWmt/RCfO6x5KSz6Mu6v 97RQeWm632JAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhVI6gAKCRAFgzErGV9k tmbND/9BEEDsXlYRq5jTNKQZdC8QJBw5ucAf5nSRrQAurk2J2tu5xlswDxyZLyRts3QOLsQRn4h osnj9usxHvQyt2lcyZHZpXfQW96po83MBfOJFfDcMqflgHGicLevAK9JLX1j1Z5h+DhyBAtOyaX CN7Ekmnvg3MIMBy5kIhloI/bCT3N+kbeKNG5S1uVJx/MIm7Zk+19/A2p4mbxk99D9VpWjB6HbIH Fg9pfnOJoR1g/YjJT5Qv+9EqcMNVb9T99inEsoQ9fNXhZe9F2gZO0jPafCqRiBbWgG9KB513LVe KDtYuaU2qKDRgvC8UWGrBgh8vd5MiLskrxJhyOtmM7KD6hP8f0FikSbQQuBb5V3ssxDJ580pp81 9lymcPZvdR65sBwj6L2rxouvaE7vaLydotVR6Ic3Bc7fCEfDkwRhIk0NGQpQ4Bd2+GuoL/ymH3n pvQM9X9ziGgC2Rfb0PHR17mMcDA/BsKJb4LZQ/9ZgXUx0BxiJUPZdYOu19qwaRM4teG/x3zTMfq dnamWJHeZX0ZO6g4IEtQzB4TjHo/DyjOFtyeQs8kn0HgQW2bJLwS96lCcXZvVa4tbGhoxDn0oW0 LWZOWKqdB6alhaUI+r82pXUXr+kjYyn3eZq3P4LwxyPP1zkEW9dItwCtG3KJ5UogXb7YGfJzBqk 3l54QMk561wPu1Q== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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.8 at phobos.denx.de X-Virus-Status: Clean This series adds two missing features necessary for Capsule updates to work on Qualcomm platforms. It introduces a DFU SCSI backend, necessary to support capsule updates on devices with UFS storage. It also adjusts the partition framework to export the GPT vendor attribute bits for each partition. These bits are used on Qualcomm Android and IoT platforms to encode the A/B slot data. They are used on Chromebooks for roughly the same purpose but with an entirely incompatible encoding. --- Caleb Connolly (2): dfu: add scsi backend disk: expose partition type flags disk/part_efi.c | 1 + doc/usage/dfu.rst | 31 ++++ drivers/dfu/Kconfig | 7 + drivers/dfu/Makefile | 1 + drivers/dfu/dfu.c | 5 +- drivers/dfu/dfu_scsi.c | 437 +++++++++++++++++++++++++++++++++++++++++++++++++ include/dfu.h | 26 +++ include/part.h | 1 + 8 files changed, 508 insertions(+), 1 deletion(-) --- change-id: 20240409-b4-dfu-scsi-9d460ff99796 base-commit: a96a91644cdd9d58596908edc38b5d934d99fc34 Caleb Connolly