Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5396674rdb; Wed, 13 Dec 2023 07:34:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMinqH6m+fPgkPb3M3bA24+p7zmWMNqL2gBLbAnEKXew+Max3OqPy4COzpohJRcMHrj+vp X-Received: by 2002:a05:6a21:328b:b0:18c:eae:bd86 with SMTP id yt11-20020a056a21328b00b0018c0eaebd86mr4790327pzb.32.1702481694928; Wed, 13 Dec 2023 07:34:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702481694; cv=pass; d=google.com; s=arc-20160816; b=ekktdMH+aACNY85MEpjwhaqfMjJi4ZqNhzrKcEQhAF/OPBTTY/Y09TZOqvj5Fz13sh nHYy/T5itKT14NJUEu7qMZhkL5Oer9UDq5bN4B5n0VewBHWNvGJj8faE9ZlyzHFwkrnx w2q24Kx8Nz9Q23p7rcYLrTFvQS+hiDlzukg0sq6Dc6+577By8xaCvVufiOcrvIHK2AFc /Wg+ESe2XxfC2Y3bac3zi47DAH7+Az9wDYorOJEAwfk2eqGGeK8FzafIbr5iAPghxuou 7csp+LxlepUdmf/2L4+lxPCYhhH/EetCvq1m1IaX4FEkxcuTdkItEd9sEdcRb5i6OVip gYsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=Oi5QWdYREGBDf4+0LM2jGZv3eRqwhA6HxVQtYWqtO9Y=; fh=QnJ8Q/8qAqkBJysEgQ1ALvz8UaZ+8saX7wEEuGbX/Fw=; b=xDSR6qFT0LQ29Zx/yRh+LlgiLuqO34CLGu3mGwoisLbwiq247HCae2+02fBDcTEF9b HWNF2hr0JYTTerd6QKmXvrm/30/Pz4bStu8iC5/a5LpZ5n/vIDDX9GJEbf2/I3vysb3w JAWe7q6EXLBAUDsP89bS/8/R+GPEkdRQ/2Y/dx9wMF2wXRIq74KZu+aW2fBFs8KKNsgk FA3Ye1iokjGDvTw2s4epMIcNYygiU3Vog4bHq4fB1O3y2FkUwHxdAFu64LucsM8XHS8A AkMk2nCAagSiReJW1LroC4LtTlm8EawiuXgSbloZklOgyk4YGlz+uMxGyLnw0CWbbPho Ma9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=qfgBGbL5; 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b4-20020a170902d88400b001d098d9fb92si9580057plz.170.2023.12.13.07.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=qfgBGbL5; 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 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 0C7FB8098AE1; Wed, 13 Dec 2023 07:34:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442151AbjLMPef (ORCPT + 99 others); Wed, 13 Dec 2023 10:34:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442310AbjLMPeW (ORCPT ); Wed, 13 Dec 2023 10:34:22 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2052.outbound.protection.outlook.com [40.107.241.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B3021985; Wed, 13 Dec 2023 07:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FGDdULdeDaT+1Znnxw5mpQl+w7ShuoYkLfT575q/anVnfXKe8dv1najhSjaqKCHnLIPDh3o/KAAiixktcKpAR8buNr8JLQrG40HrbgNr7Cv7adAu4X1ofMK+bHOdsWoNGXCuJKsnkGIV6Eglbyh/ZbKxaJMGQ52b2eyRINi1azCWwnXstZY3K3o/jPoyrtA1IDTomNgCH5zQu/znN1prpFXh9JSzcapIZSlGhfUCRf8qTeantLgvfxVZiqtg6c5H6wVsjc9NKJF2p4TLyFymmRcDKyxK/TUOk6xGaO7KPYsVaQMsWtcQ44KbsH4+5/YlMHQq6K4UfGisixFV0Viwew== 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=Oi5QWdYREGBDf4+0LM2jGZv3eRqwhA6HxVQtYWqtO9Y=; b=hRaTAYHUyBmPYDyXUCMvQ7IdryBb+4MFeglXnRVo/waGJohKU0qQPjPbC7u+4mS433/Urdrxz7TDbgfFwAWn8z9Q1i/CeYHHBB9GXrVGTLHItfi7gUdNw9z+4vAkqlJW22adoQxyNTwy3sxoN7Rf7NseTJq7orAwVQjmuOrx8lqbID4bvsxXI4P7fSXtUDqKgPWqav96a+3684T5dSZLTtWQPptBWYMB2wz2/mpH9++6l2FXv9ULaNdnrsA5V1QTOzGfqb31KwhhWIqgSp1OUmCbR7WFFlpc57PJHQSJD5uR1I/NkvkSo6DdPR05Owjsga/EhFdn3aMZku/lkWjpLw== 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=Oi5QWdYREGBDf4+0LM2jGZv3eRqwhA6HxVQtYWqtO9Y=; b=qfgBGbL5Sq0wqi4FKmlXLSiB0+UDUaZUdJ/BbV+XCMcyKeqgJpnbYa5szJA175WDnFCwk0omcyEa8BJMI3v0Dhbre7F85nCVPFFrJvKUxdUoUUq6s1pyuPx7yZC5I6YsP46hX5LJgIuHcyWr7sOMVds+wq7G+rUhljIFYu3Hq8Q= 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 DU0PR08MB8907.eurprd08.prod.outlook.com (2603:10a6:10:47f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Wed, 13 Dec 2023 15:32:12 +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.7068.031; Wed, 13 Dec 2023 15:32:12 +0000 Message-ID: Date: Wed, 13 Dec 2023 16:32:09 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] usb: typec: tipd: add function to request firmware To: Heikki Krogerus Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231207-tps6598x_update-v1-0-dc21b5301d91@wolfvision.net> <20231207-tps6598x_update-v1-2-dc21b5301d91@wolfvision.net> <196acb44-fb0d-45b6-a9c3-b5a289a41917@wolfvision.net> Content-Language: en-US From: Javier Carrasco In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR04CA0122.eurprd04.prod.outlook.com (2603:10a6:803:f0::20) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB8907:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c2c6400-3384-4508-4593-08dbfbf0ad0c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Du50s63jaPQR0dBKHi6HVdwrF/ag98t1LERIr9x0TWwNf5DXftJEBvwnDEBug0zN6xX2EVP6Bnc5s0GARG1CDrZ9808w423J/N1B819XWrN2zBN0jXQT+028syavEj3j6KS1GzZyxqtROhZkVfJMYhx0cshw1aDFCM3vDVbJPL3GtrkCCqQKmwJEYPItZr+PHOi14dI3Fcs25Acnk0VEppDnbLc91L4a30UyszWozsiUouy96xLWY4gBNZT0FUeAzJohnfi3I9pqjOkJaW70V3nwPCnjvC8hLUmQdZ11rMmh6Yx+FdYj9h/K4F3WfJBT0ffJdJ14Xf+a0eheFeATjAImYriGUmBk5R+OOaRINqFWd/z5SoYpWZXf34im6PrBWu6f90n+CEnTGqBNCCNEL1hPCo0Rio+aqU5p4JgYkIUGMfyncnxZD+Q4bWRJVbAOCQzMHq5GjUKWMvW62jbsSg9xYdFPAS7EHVz50g0cPKxY2XOhA1wCXHS46Syo2pDjEvoTQ1GaHwXyfqowgJDUpqmmNHupkWiul1VfpHl64/h4SC0b+g7oU779JkAOPciF4XBj2n3pJOBoJkBw45B/rw5v905QKJg4a9CDDLAekBhy5Z576Z0zOJVL2ov75po/nJNQaOc5dr22fkB2/8h0RA== 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)(396003)(39850400004)(136003)(376002)(366004)(346002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(38100700002)(83380400001)(26005)(2616005)(36756003)(86362001)(41300700001)(31696002)(31686004)(6506007)(6666004)(6512007)(478600001)(6916009)(66946007)(66556008)(66476007)(8936002)(8676002)(4326008)(5660300002)(2906002)(44832011)(316002)(53546011)(6486002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MU5IYkVKRHlRRC9DdUtXa1c0aEpUN0xGdkx5OVhmbSt0UU9NT2xEdXJENFpu?= =?utf-8?B?OWVGajBXRm5UOWljRmJ2R2dONHFDek5XOStLaXlXbUhUT04zS09laGtySk1G?= =?utf-8?B?YUUxY2Q5N2ZhRjE2bWY4SEJuMGFEbTBTNVpTVXJ6NVVJVEVKM0NvRVNWcmlw?= =?utf-8?B?RktKbTA5cmI3K0d0akNOZWVUMnNYUGV1RWVsSlhEdWc1a09FUTZPbE5NeUIx?= =?utf-8?B?R0kySEFQZUx1Z2s5NFJTOGpRSEpjcVZPbUtlcjlwdTdUbGY3d3BHYnIvR0NR?= =?utf-8?B?Uks0ZFNGTnpyRmp4WmtBWTVTMHF6N29aZXplUEI5ZWtsVzhUUFZuSXdJcHBP?= =?utf-8?B?NWFkb1dOcGo3U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MVdROUxTMlBtUENi?= =?utf-8?B?TlE9PQ==?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 5c2c6400-3384-4508-4593-08dbfbf0ad0c X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 15:32:12.0079 (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: +SvcyiOBUwalTCgfGq5wOwCg8pYmrBQg8pfVFVRdr2iIG2oT0/MBaxG+A1fOPuGfYE09qU4ZgpCTSRV8RFzqHe5dlVWFtHkvRvFuOPSUpM0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8907 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 07:34:52 -0800 (PST) On 13.12.23 16:15, Heikki Krogerus wrote: > On Tue, Dec 12, 2023 at 03:41:35PM +0100, Javier Carrasco wrote: >> I wonder why then there is no general solution that does not force the >> driver to be built as a module. > > Why would you need anything like that? Are you saying that even if you > put the firmware into your ramdisk, the driver still fails to find the > firmware if it's statically build? If so, then there is something else > wrong. > The firmware is always found unless the file system is still not ready, which is the case on the system I am working on. If the driver is built as a module, the issue is gone as expected. My point was that there is no limitation to have the driver built-in and no documentation to reference, so anyone could stumble on the same issue. And as you said, this driver is not special in that sense, so other drivers might be facing the same eventuality. Am I missing any existing documentation for the fact that the firmware must be put into the ramdisk or the driver must be built as a module? Or is it only based on common sense? Anyway the next version will not have any probe deferring and only return an error if the firmware is not available. Thanks and best regards, Javier Carrasco