Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6108061rdb; Thu, 14 Dec 2023 08:29:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGf8mIL7sjSdPNg8ve+XKQLgd+PHkkbVI7YQ1TicSEpuZIwdBe+3srhTHfcT5QY4S/C/4Xq X-Received: by 2002:a05:6358:9da9:b0:170:55fc:34ba with SMTP id d41-20020a0563589da900b0017055fc34bamr9078211rwo.44.1702571379716; Thu, 14 Dec 2023 08:29:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702571379; cv=pass; d=google.com; s=arc-20160816; b=INcnPWHBm4ByBkPsr3wO/EmS2O161QcSsx3TyrDsts3+dT27x6papj6LUo1fRUK/KB 2yTqtxryYFaFkL7QeUdq0fX/EhqjING9OccWpMM3k3/2qXeu/CTh75VksyqfFeYCH07C xWLfUBRt1SdT92sZZToVC2DeiuNxsmCAd7Cu0u8PM3HNW1Vzdc/7VnISSoFibe7jLdrr 5pmisNRy39DwRQnLIP7PqXOGIiaqBReG9Q38NDWVQrcMapX17qWfMtdiug+JG8evsGch wwFLh3e1lCnGoth6fbfidi+2oeU7fzrpObj33nU4WlPysrVFNkn2BVxOSN8IVsanF25I P3hA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:cc:to:content-transfer-encoding :message-id:date:subject:from:dkim-signature; bh=muHjV9f8sp9Mu6KBzS8Xy1OTxafFikYrBtEJqQnGvj0=; fh=skg4aWcIne/NkBvGBSxiPFt6u1LkY77F5jj9Umi9ZmE=; b=neVBfbdXscmIRjgJqwDJYrDMpchYizHcUtBcXAat0xopiqFRpJj+qnmhjW7585dEOB /HsMNRKhspD1UAeAXNfDcOb75kG5kx3HW5c2szmM5RWCtf9A+y4nPMURZqwZzlmnMr03 Ao5CLwzu71ptwc8RBUScJg04b6vVAXtK35MJ77kHwgEvTXWBD0UBOu4kwHqSGg0R6ZxD p5rdv2yFpR9DBBFx/TUYbu9li+vWHeKFupD1h7HDgy5v4aKZK8xpT+zatW9aQq+lQ8VY ypG+9ZhoeG1XPzM2h4QyzPJHuVWwAXQt4TdSsysvyLdu2Am46drnrfU1ZzBTNewrSBj6 TiDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b="LfH7+GR/"; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j21-20020a635955000000b005c668a5a90dsi11117392pgm.290.2023.12.14.08.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:29:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b="LfH7+GR/"; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CB4EF81C9AF0; Thu, 14 Dec 2023 08:29:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjLNQ3Q (ORCPT + 99 others); Thu, 14 Dec 2023 11:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjLNQ3N (ORCPT ); Thu, 14 Dec 2023 11:29:13 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2082.outbound.protection.outlook.com [40.107.8.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D66B11A; Thu, 14 Dec 2023 08:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oO0F4TQC6v+YlYk1AvWLT+n+UxV91L2wQVsmp7qbG9KOZAOAma9qbikNDLXB6HGgebCW54DgN0Q26AUSZTM4nQtbNozuAJsXJcq3QKo4q2L4e7PcZ+D8/i901O+K20utbmc3qwhcQK3wt7RYgwFpcMKaQ/WtosAAV9E7z/zHnktOOgWhZjW6MLlCqfjYi0WCVuLCaMYOli+lC2aUdDyhpYZJweUdvvmeph7DUbt00qSDkC0nSnQqUyYL8rMsu7OvV9pMAzcxmpKdfAoWruWTtRiMrJnEyb50sacN3X5lsopo3xsqw9omdBcLZ2Us6rU7zeOve2vHPyli6Drx1w5N9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=muHjV9f8sp9Mu6KBzS8Xy1OTxafFikYrBtEJqQnGvj0=; b=Lc0r8dSRfv8UiVA44KYByPVxbMxOZ3uB+GgDUv9epj+R5JHpstTfKQrSifjP8O+qACpNzhiCfHd534r9QXu69wXWBxocPol7D+EXjAFCWfo4g6mZdD0hu+o9AcnuYfaA12aG2i8o3XkO+zAQfcCV+4H0OnARVR3h1jycqHR6VkZa5TkeAAV3484fk2j2zei5AntJDSJ8O0n6N/FIA5lrRVGtw5CUhrtSNw4ZbduS2uHK8uh9cn8+e0AcD9HBkUO3jcM5L4XapvyxcGSYbHm6tdGnpOsfIADQTZE5hfjIwQ9Mh9NCY+6wT5F0xHb4T1E4a/Z7mrA1ZYMPFKeSmAPIbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=muHjV9f8sp9Mu6KBzS8Xy1OTxafFikYrBtEJqQnGvj0=; b=LfH7+GR/D4Q2U1QK+4R5FjJcXG55bhQXEGxwhRgGrsCo1zoPbIBJDhs2VTuy3eJY6hDZLTFDYM8oROR8LoDoC+WaK8W4OpQrAZuO1FP3CAMamX/H2z28PU88bbWPXkcC5WJc9N5+L7GFEjyh6W1YRYyh+aUFrRla62Ve+FJUaaI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB8302.eurprd08.prod.outlook.com (2603:10a6:10:40e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 16:29:14 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7091.028; Thu, 14 Dec 2023 16:29:14 +0000 From: Javier Carrasco Subject: [PATCH v2 0/4] usb: typec: tipd: add patch update support for tps6598x Date: Thu, 14 Dec 2023 17:29:08 +0100 Message-Id: <20231207-tps6598x_update-v2-0-f3cfcde6d890@wolfvision.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFQte2UC/3WOwQqDMBAFf0X23JRkg7b25H8UKYlZa0CiJNFaJ P/e1J57nIHHvB0CeUsBbsUOnlYb7OQy4KmAblDuScyazIAcpUB+YXEOVVlft8cyGxWJVRJJ6ao 2SAbySqtATHvluiHv3DKOWc6eersdmXubebAhTv59VFfxtf8Dq2CcmQ6FLiUXphbNaxr739Ozo whtSukDtL/vYsgAAAA= To: Heikki Krogerus , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702571354; l=1676; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=dg1DUYN3nvxSvXMMUXgIDxESHY7y9Xr8sWz8SlSFvmg=; b=Y/DLiGZWbq/r+yNr2a3bjZ6TDnPIVmU+6DE5R7bjdDXCgR5SSF5RLVw0roOHHZ0BChYRsnR91 ftydvJwJv8OCx0UE0oIlE17tn1+IGl4O2S2Z54BKiJRwjjKsjkXrL94 X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1P191CA0011.EURP191.PROD.OUTLOOK.COM (2603:10a6:800:1ba::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB8302:EE_ X-MS-Office365-Filtering-Correlation-Id: e201e5cf-2634-4683-4639-08dbfcc1cf93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: asEpybDj39TJRbYpP0n9WIwRpDM9K3LbNa18kFpCd7YWDpqAEb5SJMz0a1UBE7d5EK9tixrs5zXY6xxr31Cfua1i44xzatkihgA19rgPLfZ2KedKbavPy1IiVSsUhCj6jxdvxTHXgN+90Z+muid6lJ5jwLNxip0WNTdAMXsRsvn9+XI+GS2ElqyMPLuFNB3CpFq5pAughgS199iewKjiLxX1EeRu/9B4ysg/sb9AXGEGzxlBOUvPsaTqn8YI5lraStWR7k14f8fInlTUcxx4wn9a+nITbcERjtKLAqWBpA6mVoFw2Gbk+GHukkLSmkWO4Y7iyXAb7J0rh+SWuUHpa3cj4u9YGhDAnEX900819qlCCrJhkBAzexSp0WX9Cjxef/xTe6nTSa3n7qjdv0nlGEjwP/ghPC9C8bXlcXNbktN3v/AxsXN4piE16O4h7bbu6ISdT5Q6Tqb9RxPiRRV/SAWVDt5Uj94mAp6Rw3846YtE+8LJlWtidnDQChEgzZEo5h1V6ew6MA/hUMDPbwv48cHLLfkz4A2LeHMIGMLmVY/Dp7fqyJgl4XLkNyEXE/pMlnON8s+iFX6tcgL+DKeh7SsswLkKc9KFRDiX0zMjYBs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(396003)(39850400004)(376002)(366004)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(52116002)(107886003)(2616005)(26005)(6666004)(6512007)(6506007)(66556008)(83380400001)(15650500001)(44832011)(2906002)(5660300002)(41300700001)(6486002)(478600001)(966005)(66946007)(8936002)(4326008)(66476007)(316002)(110136005)(8676002)(38350700005)(86362001)(38100700002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?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morempYSFUwSWlyaHdGbGNX?= =?utf-8?B?TjlUTG5WakdaajV2TkRvaXpQc3pxcmMxaFZFS3JkRXovT2l3amxVWlF6Mjdx?= =?utf-8?B?ZnhGZHptUDZSWUVkZUtJRjBaRGJhVFR1TnFySFo4bFNCSThrZlFlTFl0Z2V1?= =?utf-8?B?UE1CZmJ3V0UrQ0x3cDY2YUVPbndUUmVsSm0zS2N6NmNXL3B3ZnVEY0Z6bi9F?= =?utf-8?B?MEZRN1N1UXFxZStIUjUvZ2tpcnVyRnRXeHFUL0NnTlVkQ3JCbnBQdDA3ZHU1?= =?utf-8?B?aFhxdDJGYW9uRUJXY3BYOWoyNWhRNDNsTWZsNldQVm1BZUlya3NjR1NTQ2tO?= =?utf-8?B?SDE2MXRoMml5NlVzMUd6b1hsVmxraHJvTzgxcm1mOUxVazBWVUdCcjdjbUlD?= =?utf-8?Q?hMZRO7QqS5s3ra/1hqVug1g=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: e201e5cf-2634-4683-4639-08dbfcc1cf93 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2023 16:29:14.5521 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9K1Gx2yYhFofcAV+619ZIkvDAekhPO8OZJLiyRJl4L4i5OcQTNj4IFoj3fwH8Num0YkNFxH9v/P3i/b7qIDzmdpaZ21FT0uVyZ0V5HBQYJE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8302 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 08:29:35 -0800 (PST) This series extends the patch update mechanism to support the tps6598x. Currently there is only support for the tps25750 part and some conditional clauses are used to make a special case out of it. Now that different parts support patch updates, a more general approach is proposed. The update mechanism differs from the one required by tps25750 and it is explained in the commit message as a summary of the application note in that respect. Note that the series makes use of the TPS_SETUP_MS introduced in commit 6a4d4a27f986 ("usb: typec: tps6598x: add reset gpio support"), which is currently available in usb-next / usb-testing. A TPS65987D has been used to test this functionality with positive results. Signed-off-by: Javier Carrasco --- Changes in v2: - Remove probe defeferring mechanism and expect the firmware to be available (Heikki Krogerus). - Link to v1: https://lore.kernel.org/r/20231207-tps6598x_update-v1-0-dc21b5301d91@wolfvision.net --- Javier Carrasco (4): usb: typec: tipd: add init and reset functions to tipd_data usb: typec: tipd: add function to request firmware usb: typec: tipd: declare in_data in as const in exec_cmd functions usb: typec: tipd: add patch update support for tps6598x drivers/usb/typec/tipd/core.c | 150 ++++++++++++++++++++++++++++++++------ drivers/usb/typec/tipd/tps6598x.h | 18 +++++ 2 files changed, 147 insertions(+), 21 deletions(-) --- base-commit: 51920207674e9e3475a91d2091583889792df99a change-id: 20231207-tps6598x_update-632eab69d2ed Best regards, -- Javier Carrasco