Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp811999imn; Tue, 26 Jul 2022 09:57:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vez4NOO/+7Tjornj5N/Mnn59wbPYtibA1zcpcHaGFjEc9UAxVQYkL4VI5YDiWeKUg8XOhm X-Received: by 2002:aa7:d358:0:b0:43c:a918:7e53 with SMTP id m24-20020aa7d358000000b0043ca9187e53mr131111edr.269.1658854656228; Tue, 26 Jul 2022 09:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658854656; cv=none; d=google.com; s=arc-20160816; b=N/YMV6Ca7g8zMy9Nj2fG3oqAGxraQbifgJpFSlPdN+vRnoSnJxiSpyD/yPoCy58ddX tXFgvAmN3kyNU/iddIZLS+0KmvuCFFHpP22RP0YK7tFY4alrBpAduL8T64jHm0UypNyC TeyVbUFVrNhXci7ZRyTmF40KwlKh25Hb3OvznRF7RzcNak5py8er1M/xB4GLJob4lzTj PodGYsX1h5j9PD9edCaz2WHO1Wmxn/GcEp+yLV7dLVTK8yKosDZCh/6xehwhxe21fbdV wSw+j1h2CChc+AuFWunRQS5XhM8DNqkzA7Qz1QeZbnCzW/GgD9MZ3zWKOlEeBwhG7R+D ouOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yatLlbPycdFw8wIENuYy6U5zb3pxVwzEiJQ0zzMa1qs=; b=fHuwdXw5e/0Facsgr3dLYL++yonbKudT/GaMA2lAiqFQrxJfmdXMnQfdU7W4RMkzZ/ rJfdZPCQp9AfTCHhns9tC16rjuRO3r8Xwp030vqUlel9jrFturxTyKmCDFzjYwSvcfyk uTviXlnKwbletZ3vvJbGW0aUVf2/IOuiFiRFx0WwO7vEkjyK/G+F0tBCLaRQ9J+e9Sm2 elDr3NqTFKExNZDVhu0DOLc7lJAwcxekD+aykTyMm8onzPl+DdH6FfVGVO1n7G5p2XfA lMA9p3e+V+eaypfhT3I7O6wtsZGNORxxuobC1V72ZQT9VOnk/L6OAYpLB9gaT34Xw/0m LksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MBiWps94; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a05640240cd00b0043bd72d2e87si13792853edb.492.2022.07.26.09.57.10; Tue, 26 Jul 2022 09:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MBiWps94; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239573AbiGZQui (ORCPT + 99 others); Tue, 26 Jul 2022 12:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239577AbiGZQug (ORCPT ); Tue, 26 Jul 2022 12:50:36 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FC5027FD1 for ; Tue, 26 Jul 2022 09:50:35 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-31bf3656517so148993107b3.12 for ; Tue, 26 Jul 2022 09:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yatLlbPycdFw8wIENuYy6U5zb3pxVwzEiJQ0zzMa1qs=; b=MBiWps94nweIVeUVjHCgTBxfJF7VluRqwUFUVKge1oip9SKL59IkTVcTgIf/Z9Fdwm ZdA5FKGri1nX2C6TE+jIfmvkIQ5Umfnd6PAeRva8PJJT9p9ZfoiZds+/6NTzNRjvL8Hx GKx3upNhgMQM01nB3q0yOrnUAigkcLXqqPGMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=yatLlbPycdFw8wIENuYy6U5zb3pxVwzEiJQ0zzMa1qs=; b=g23nXRLxQumM6S3sWPtvnx8PXd6HOV/zw4x8Ne12ox+5oe+fO72ryDQ+rCo6P6z210 yf7uYrbk94KKFPqNJuXQokMQCYEkGx9Df82hFV0BEK/T8yDPxeTd2Jjx+/svNgqmu7V7 7wdiMFRKjrrvKXxnKEe2Mh6kgOkMSKc+Uh/03jvkSPfOj62RXi9K+sLF8q/sQZCbJ3hZ aZjOqiFUZ+d9ZHbmPNbzoYW905p3lM0Y1xQrBwo3yS6UHqnGpU+9krN5vGJyakuDU3DW wMbGDOZiRVqMhrKEHBXBTEYxfvYF1eC3FdB1Z9N0vQ16NTIC52XTOy+Zk9LiQ7cbbvK9 ImJg== X-Gm-Message-State: AJIora/0c3+RWUzCbzeZE90raRYy8AxSgtKJuLKibDafrZKlURayi/V5 IKa0CzrbaLMp4UH1KwzWw6tc/snjmb0U/e/zFiM+U4h8tcQ= X-Received: by 2002:a0d:c787:0:b0:31b:a963:e1de with SMTP id j129-20020a0dc787000000b0031ba963e1demr15027224ywd.283.1658854234250; Tue, 26 Jul 2022 09:50:34 -0700 (PDT) MIME-Version: 1.0 References: <20220725203129.1973260-1-nfraprado@collabora.com> In-Reply-To: <20220725203129.1973260-1-nfraprado@collabora.com> From: Prashant Malani Date: Tue, 26 Jul 2022 09:50:24 -0700 Message-ID: Subject: Re: [PATCH] usb: typec: retimer: Add missing id check in match callback To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Heikki Krogerus , kernel@collabora.com, AngeloGioacchino Del Regno , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI N=C3=ADcolas, On Mon, Jul 25, 2022 at 1:31 PM N=C3=ADcolas F. R. A. Prado wrote: > > The fwnode_connection_find_match() function handles two cases: named > references and graph endpoints. In the second case, the match function > passed in is called with the id to check for the match. However, the > match function for the recently added type-c retimer class assumes the > connection has already been matched (which is only true for the first > case). > > The result is that with that change, all type-c nodes with graph > endpoints defer probe indefinitely, independently of having a retimer > connection or not. > > Add the missing check, like is done by the type-c mux and usb role > switch code, to fix the issue. > > Fixes: ddaf8d96f93b ("usb: typec: Add support for retimers") > Signed-off-by: N=C3=ADcolas F. R. A. Prado FWIW, Reviewed-by: Prashant Malani