Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3376239ioa; Tue, 26 Apr 2022 02:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiYC5QmcBPZud1OAGNjuQyEZQa9Ra17D8/etCP3pfUSVqaaKO9tKf266qu4WUgH5mTh+B9 X-Received: by 2002:a05:6a00:10c7:b0:4fd:9ee6:4130 with SMTP id d7-20020a056a0010c700b004fd9ee64130mr23716304pfu.84.1650964664858; Tue, 26 Apr 2022 02:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650964664; cv=none; d=google.com; s=arc-20160816; b=ulaQR69k0CmEhrWpnYZ1opoedJxDx+cP3O4sTXQq+XdSiD6GdyNxT5aKXkE+/uIwlr jL4VHbzri7Vs7lyT29/dsbQd1fbHJiaTQfYKIIWfz+XZg7vkLDkfc80kCwxU5jRZwMZo pFBgmti8sSRQ5icRfnjBj+8q/ch0Np5kvZ8DHGbPhx4ZxnN8i7a7/wv17ZYqeRU4IgS2 jN0iub9HBvhE5hvssx9IJXeKNd7astXeSbzCwH4UxB6EhElxakesYZeYcOEPxyE1mGGv c5ibpigb2hLae0kW5KopbemqnI/89Y3S1gUCKVGkRoQuKA7gltUEg6g4nQfWtBiR0gxn XUiA== 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=RVn0XAxtnd65jKhU3aVzeHZPXVY5Iu5LmxmiFZBmeMI=; b=yGvXEFWF/GWoe9h/cyAVTT8FZzH31MSrglWArbF/iChyrQe8cOvjvhDAromfZo3j1e ZLiBDWxaYg5vDHyZbBpEFWxQUDleIFmLoru+IdYef84lmxBe7JKxtcypF67Shvu1e8yw bOA+tLuGHFLV2PWxAehMySpLixbib5vfNIeK3rw70FQDRCvIgDNmRYuhnDwRUvnhg7wi 9PxszWj9r/pKgcDe6RlbUvsLBL5jVz+u1XmW5G4h7L9RM5gcYFOo7Kxyac+FIydu5KXo Xxcoa+o2ivGXUFx+gfg9TvA0uLjuiAYr5bIm2xrH4HP8yZxAsmkhRlg0/Fq0gR9mtoUp sfZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=aKI2gT3D; 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 s11-20020a170902a50b00b00153b2d164cdsi17869052plq.213.2022.04.26.02.17.31; Tue, 26 Apr 2022 02:17:44 -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=aKI2gT3D; 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 S243632AbiDYQy7 (ORCPT + 99 others); Mon, 25 Apr 2022 12:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243644AbiDYQy5 (ORCPT ); Mon, 25 Apr 2022 12:54:57 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939071A076 for ; Mon, 25 Apr 2022 09:51:51 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id dk23so7477003ejb.8 for ; Mon, 25 Apr 2022 09:51:51 -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=RVn0XAxtnd65jKhU3aVzeHZPXVY5Iu5LmxmiFZBmeMI=; b=aKI2gT3D6RfE3L21yDbuQnslhT9dUbLhrVHcZP7oawLgG5j81UaG248Q9dmuQteVhi Nmp/ZQNjhRHl7QKim92lXxBkWlswi15VTDRxeSTeow+qi+zZpkERwOAVbU0jUZcFThK3 G0kJ3rZ0mLigt7uhPDeNqd4Pn2mhcRpCc7eoIuXWbM46bVAPSG2uwQOR7rs1Ed8EXenO LgeZw8u3onJzTFWUvIftJy1mnJCwXIMQADG601BD2b3C4SxCTE+9213/FYyiXtAVBF8c qSbHbNhIqP/8k3+6RD9qmkM11TFF7l6tVnXSRGj9R0cH58yQyfSSToFTNZkXt3U/7uv9 9G6Q== 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=RVn0XAxtnd65jKhU3aVzeHZPXVY5Iu5LmxmiFZBmeMI=; b=r1nqMzTwPui4pI7sDQJrfrHETebr0eeDlOtFpR6zUIGXuFKo3u/JiERrTk/vWpw5jH L4coZS8LUkvrr+ET980dR33UfWJQ5cdhZ9gL6YJQbZ/RpPbA5c6M+84nYHsRrPOhz8KE 5USEspHTonB1PhxQGAScrJKsXpTvXBtOjGESjf1c4Irn7raEZkNyxmuVih0offYJwtsO EA6T95fJgKT0p5WrRr/dmk7CPB/jWyDiTQ96Df54gTCAnfY7w4YDKDp+PvPzAf9ObhcI n5PY1J9uspfe4mRg4KtvzSdOZWP/xupyZXWBC9VsKrNIql+Q4AwAYrMphXUdnx/3cyfC RoWQ== X-Gm-Message-State: AOAM530rkG0ctAT9zxjtIGQgm/DewOnj8hR50x39qAnMn1hlAmDGuChc 6RV4gSqH3On5kqC7Lws4TZUoiPvmVS9UtcngfB/VAg== X-Received: by 2002:a17:906:9b85:b0:6e0:5c22:f0df with SMTP id dd5-20020a1709069b8500b006e05c22f0dfmr17026932ejc.114.1650905509908; Mon, 25 Apr 2022 09:51:49 -0700 (PDT) MIME-Version: 1.0 References: <20220418175932.1809770-1-wonchung@google.com> In-Reply-To: From: Won Chung Date: Tue, 26 Apr 2022 01:51:32 +0900 Message-ID: Subject: Re: [PATCH 0/2] thunderbolt: Link USB4 ports to their USB Type-C connectors To: "Usyskin, Alexander" Cc: Mika Westerberg , "Winkler, Tomas" , 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 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