Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1816667iob; Fri, 29 Apr 2022 13:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVLWN8tuiJlhwgsxu3BRRjYt3b79DnyGVOEJWu54hGt6ZTk7sCaefOzosFJtBrom7l+bBn X-Received: by 2002:a05:6a00:164c:b0:50a:472a:6b0a with SMTP id m12-20020a056a00164c00b0050a472a6b0amr913291pfc.77.1651264666961; Fri, 29 Apr 2022 13:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651264666; cv=none; d=google.com; s=arc-20160816; b=KeZE9ILgZqjHhJ38SdNKJphjNMwRqTjy1N7foKxvbjnk4AIw8SqSHkLaMls8s02YqG ap3i54EXHCyGdT3MQIptySS5viv/WWIXQLho3Ug0bT9v+PqcNJqFK87o53Xc4lB45lzI lgtDHzMCFUg6Enp2hITk60zUw6I7quKEgJvo5XVwjCnV0OTl0upUNhinNkN7F5kJ77yt YnSiiilAM0fqKKXDjsLM2Nbp61AjCbPCt8wgQND5YZFzsYDA3dIg1qpFPIUsxzjeXJ+7 1Tm9TrMlsRjbo4ns1whFvgljGZXsdmo1ynwsZH+ySGXjcFsi/Vnn0vNJyhsxdfeV4oG9 Sz5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AK0opkaQ33+z/69oRWBiqlwlTBqFBYezZDCc2NUQjJU=; b=Zfl7ir/ztoNdFQSJXkgEwL379BW677RX+G9GC2i7YOc1ksBif9szQQOaJMcz6mUs0k UV3Pr0h7qveYcNbUbcQ1nHBmgnwgXDiHbmx76N7OQQ6KsNsJPE8qLY5IhVt2wJuDYctz 7bhcbSuG9qvGCBS5I8s6x6PqljTHmpRCaK40tvdppKR1QFk1Iqy5ldzOzUewVRP1tqmD KlAW00GYEhSWmQp6+abLKXLb7aXA8XAyNoyr9XDQqQgFyR4rBJJGcZRmRypldjGkriiB vQZDV4oHHS3jcsOXSL2ZJwu7BuIv4eby4xqd+vmekj2r+9/+bz2aJ//uwJymoyQZaPrK NGfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FsJjSFgh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k76-20020a633d4f000000b003aaf7396dc9si4374126pga.601.2022.04.29.13.37.31; Fri, 29 Apr 2022 13:37:46 -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=@google.com header.s=20210112 header.b=FsJjSFgh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351118AbiD1Si3 (ORCPT + 99 others); Thu, 28 Apr 2022 14:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351108AbiD1Si0 (ORCPT ); Thu, 28 Apr 2022 14:38:26 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649F21C10D for ; Thu, 28 Apr 2022 11:35:10 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id y21so6527474edo.2 for ; Thu, 28 Apr 2022 11:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AK0opkaQ33+z/69oRWBiqlwlTBqFBYezZDCc2NUQjJU=; b=FsJjSFghCOFVlM+in5VediqEFhRGeoGmwi2peza2ZaLm+9pD4jTYGuix/b/dpuZ7NA YgiULt0vntSK/uG4A7sFE4PqXJVeQNeYcNnzVbNvV/F/LQia8LWc8IvKQNQLqsCJyxya aU8l6o3INW0tkpuM5rGPva/IbjdDNLllG0dsPar/R6FwPSoyzVmGAXS7qJjOu61Kz2cs gs6GVGiuWhgodWYELBHXVjJhUrDXlXCfdqB/a2FwQxqYQtbGYLUzdhG4EzmCqbntmj8f VYAhGiTVuUJn8HNgfNaFg9N7E9/Lw/y0YeIQC/UC2bjyiv10KUj23v9cNMsPaZXtc1He 9BKQ== 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; bh=AK0opkaQ33+z/69oRWBiqlwlTBqFBYezZDCc2NUQjJU=; b=xNMWIj2Fu1ehYhZDAi5XjdIWHPKOhZkCQSy432W16PfBXuoagTEVySBZ1rac/OiSRD nBRWElQYezdYFKatL3VeiXosFnONF/Tms2n49888Cj51InNA5vTG/QQSqLGi+SmlhICa 15UqFdJ1pOMkPt4Hr5MKGeyCtH6yys5dhWUtjQ/tEVtY51qhLZOybRZthqzl3LJoSHDc b6uXyJDlIt/lSzQz9aCJ7YkF9uTiVOuvCwZ/nmzPvcYVDkr/pz1tSggB45HYqkxIaNYd tOmmP/LGPaH4CIT27m0+bpKioNXlbaQghItWyqUEiW/dzvcgN7qXV6AaQOtcBRky1Zai IUGQ== X-Gm-Message-State: AOAM532R98As3PCX7zrvver2h2oslZPHOS9jpNjE8cCZ5vSrS1VRGu4D 2lbTX46/zugAvceExOLCWnOlhvm0ypN1q1GJ2UC55Q== X-Received: by 2002:a05:6402:26d3:b0:425:d67e:9880 with SMTP id x19-20020a05640226d300b00425d67e9880mr29352477edd.210.1651170908674; Thu, 28 Apr 2022 11:35:08 -0700 (PDT) MIME-Version: 1.0 References: <20220418175932.1809770-1-wonchung@google.com> In-Reply-To: From: Won Chung Date: Fri, 29 Apr 2022 03:34:56 +0900 Message-ID: Subject: Re: [PATCH 0/2] thunderbolt: Link USB4 ports to their USB Type-C connectors To: Mika Westerberg Cc: "Winkler, Tomas" , "Usyskin, Alexander" , Heikki Krogerus , Benson Leung , Prashant Malani , "Ceraolo Spurio, Daniele" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Tue, Apr 26, 2022 at 1:51 AM Won Chung wrote: > > On Sun, Apr 24, 2022 at 2:12 PM Usyskin, Alexander > wrote: > > > > > > > > Currently, USB port is linked to Type C connector, using the component > > > > > > framework, if they share the same _PLD fields from ACPI table. Type C > > > > > > port-mapper searches for devices with the same _PLD values, and > > > > > > aggregate them as components. > > > > > > > > > > > > When there is another device that share the same _PLD but does not > > > > > > registers a component, Type C connector (component master) would never > > > > > > be bound due to a component match entry device without a component > > > > > > registered. There exists some cases where USB4 port also shares the same > > > > > > _PLD with USB port and Type C connector, so we need to register a > > > > > > component for USB4 ports too, linking USB4 port with Type C connector. > > > > > > Otherwise, link between USB port and Type C connector would not > > > > > > work either. > > > > > > > > > > > > Due to the nature of the component framework, all registered components > > > > > > are shared by all component match despite the relevance. MEI subsystems > > > > > > also use the component framework to bind to i915 driver, which try to > > > > > > match components registered by USB ports and USB4 ports. This can be > > > > > > problematic since MEI assumes that there is a driver bound to the > > > > > > component device, while USB4 port does not bind to any drivers. MEI's > > > > > > component match callback functions should handle such case to avoid > > > NULL > > > > > > pointer dereference when USB4 port registers a component. > > > > > > > > > > > > In summary this patch series > > > > > > 1. Fixes MEI subsystem's component match callbacks to handle a > > > component > > > > > > device without any driver bound > > > > > > 2. Registers a component for USB4 ports to link them to Type C > > > > > > connectors, similar to USB ports. > > > > > > > > > > > > Heikki Krogerus (1): > > > > > > thunderbolt: Link USB4 ports to their USB Type-C connectors > > > > > > > > > > > > Won Chung (1): > > > > > > misc/mei: Add NULL check to component match callback functions > > > > > > > > > > The Thunderbolt patch looks good to me. Do you want me to take the both > > > > > patches through the Thunderbolt tree or they can go separately? I need > > > > > an ack from the mei maintainer it goes through my tree. > > > > > > > > Hi Mika, > > > > > > > > I would prefer the two patches to go to the same tree since it can > > > > cause a crash with only the second patch (tbt). Would that sound okay? > > > > > > Sounds good to me. > > > > Tomas is MEI maintainer and should ack MEI patch > > > > -- > > Thanks, > > Sasha > > > > > > Hi Tomas, > > Can you take a look at this patch series and give an ack if it looks > okay to be merged into Mika's tree? > One of the patches adds NULL checks in MEI: > https://lore.kernel.org/all/20220418175932.1809770-2-wonchung@google.com/ > > Thank you, > Won Hi Mika, Tomas has given an ack on the first patch on MEI: https://lore.kernel.org/all/0136fcb26ca8433899593208af4351c9@intel.com/ Should I resend the patch with an additional "Acked-by" tag? Or could that be added as the patch is merged into the thunderbolt tree? Thank you, Won