Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2571987rdg; Mon, 16 Oct 2023 08:19:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5v046Kd5v5Unl2qedeE3rkDLVa4BB74xfaDzP54k2iOLTzDlSHsH3lBiQvBb7+mZFPQ6R X-Received: by 2002:a05:6a20:8f28:b0:159:e04f:e184 with SMTP id b40-20020a056a208f2800b00159e04fe184mr11381161pzk.7.1697469578457; Mon, 16 Oct 2023 08:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697469578; cv=none; d=google.com; s=arc-20160816; b=MmABbfWVTupLG7ouprkqe39oWpdqnf/zyq3Q0cp0/oCbPVBPT4yMZpZpWpcESN4zlZ Lc2tJP65zLImH7gJap0/RIjT4ofkZ+K6J38s3/ZSi7Mbph7uNrWGcuLND919VQFy0RDg 9Pf2u647dDKVcVi2Pz3H7ZDvcKE6qQtW8c6qnbDuF5Urg/Mw4ESs6uxLtym6v9ur5A8P Jj14xq8qfmHfoO3G0f9N55WHKfIR6iyxyWKTjJHsTPipq6xcR3wtS7CFxBT8+w562TQq 1ziawOEW5pv9D1RKFzeIJvJQQ6JnGHE1m1u34edGrTL0utavHSdWkXqNRih+Qd9JDJy0 Yhyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nGOq0zr4kewo3rBc5MW4DWQUobgyUsQRDK4fTZbm8dk=; fh=HThWqq+0otF8ocNLqGVEDdvr7rFCTMWAOl6aJjHdjdI=; b=dt7318DRV/E1wCGUvzA9PhiOOguivliJFku0jrsUTHkkqqaXkt+awKHTxTYxyeTVbT xKeByhtJxG3iDu/3UjK6Zqoovgq2UNQZpJyXiunAQZB8L+rp20KWzu30csUj174Oub8I 1RIrkEw7A9DPhdjt/GZ3nkmcafx0Su10kAlKHiVm8QFvnbWTgEjjIAPFNW6GxJ/Kx9Ly 0uGv+Yfbnqlf7fYdZmHxdJLIe6wWE/WwKh891IhCXiSpDZ9Xvb8Q7lXPkW7VlOKjZ6Qt oR7WzKckz/QUWCIlC4zr8q0BeH5xW/F1qryKnJ07aJT9ZGmqWDUWOZ+DBZUEqVidI1x2 71EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZxB+S+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m9-20020a654389000000b005ae598c71d8si6450693pgp.900.2023.10.16.08.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZxB+S+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 16DF780644DE; Mon, 16 Oct 2023 08:19:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbjJPPTX (ORCPT + 99 others); Mon, 16 Oct 2023 11:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbjJPPTW (ORCPT ); Mon, 16 Oct 2023 11:19:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C0B3AB; Mon, 16 Oct 2023 08:19:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEDEC433C7; Mon, 16 Oct 2023 15:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697469559; bh=IUlcckn2HIZvQSPS1Pli5AoJlsFWzcK+s4pdEgsn3uA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZxB+S+5f7TG2qX+o3J/cEJG0d4Mm5M/FeuKYss2zs0UgFfcz/wJaTx4+uNG3Djyf 5fGUnNNij/cz1JMpbR9gRBF0cOwhBWm3s4vmzOlp/EUQkA+JdogYu+8OxgmeIj4Myx PVNaWxTBU9KNC84846XlsI2shQg3JBG73yeWwBXE= Date: Mon, 16 Oct 2023 17:19:13 +0200 From: "gregkh@linuxfoundation.org" To: "Wu, Wentong" Cc: "Shevchenko, Andriy" , Hans de Goede , "oneukum@suse.com" , "wsa@kernel.org" , "andi.shyti@linux.intel.com" , "broonie@kernel.org" , "bartosz.golaszewski@linaro.org" , "linus.walleij@linaro.org" , "linux-usb@vger.kernel.org" , "linux-i2c@vger.kernel.org" , "linux-spi@vger.kernel.org" , "sakari.ailus@linux.intel.com" , "Wang, Zhifeng" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v20 1/4] usb: Add support for Intel LJCA device Message-ID: <2023101653-shiftless-scorebook-19e3@gregkh> References: <1696833205-16716-2-git-send-email-wentong.wu@intel.com> <6a87b43a-0648-28d4-6c69-e0f684e44eb6@redhat.com> <5d2e9eba-a941-ea9a-161a-5b97d09d5d35@redhat.com> <9a080d06-586d-686f-997e-674cb8d16099@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:19:35 -0700 (PDT) On Mon, Oct 16, 2023 at 03:05:09PM +0000, Wu, Wentong wrote: > > From: Shevchenko, Andriy > > On Mon, Oct 16, 2023 at 08:52:28AM +0300, Wu, Wentong wrote: > > > > On 10/13/23 22:05, Shevchenko, Andriy wrote: > > > > > On Thu, Oct 12, 2023 at 01:14:23PM +0200, Hans de Goede wrote: > > > > > > > > > > >> Ah ok, I see. So the code: > > > > >> > > > > >> 1. First tries to find the matching child acpi_device for the > > > > >> auxdev by ADR > > > > >> > > > > >> 2. If 1. fails then falls back to HID + UID matching > > > > >> > > > > >> And there are DSDTs which use either: > > > > >> > > > > >> 1. Only use _ADR to identify which child device is which, like the example > > > > >> DSDT snippet from the commit msg. > > > > >> > > > > >> 2. Only use _HID + _UID like the 2 example DSDT snippets from me > > > > >> email > > > > >> > > > > >> But there never is a case where both _ADR and _HID are used at > > > > >> the same time (which would be an ACPI spec violation as Andy said). > > > > >> > > > > >> So AFAICT there is no issue here since _ADR and _HID are never > > > > >> user at the same time and the commit message correctly describes > > > > >> scenario 1. from above, so the commit message is fine too. > > > > >> > > > > >> So I believe that we can continue with this patch series in its > > > > >> current v20 form, which has already been staged for going into > > > > >> -next by Greg. > > > > >> > > > > >> Andy can you confirm that moving ahead with the current version > > > > >> is ok ? > > > > > > > > > > Yes as we have a few weeks to fix corner cases. > > > > > > > > > > What I'm worrying is that opening door for _ADR that seems never > > > > > used is kinda an overkill here (resolving non-existing problem). > > > > > > > > I assume that there actually some DSDTs using the _ADR approach and > > > > that this support is not there just for fun. > > > > > > right, it's not for fun, we use _ADR here is to reduce the maintain > > > effort because currently it defines _HID for every new platform and > > > the drivers have to be updated accordingly, while _ADR doesn't have that > > problem. > > > > But this does not confirm if you have such devices. Moreover, My question > > about _CID per function stays the same. Why firmware is not using it? > > Yes, both _ADR and _CID can stop growing list in the driver. And for _ADR, it also > only require one ID per function. I don't know why BIOS team doesn't select _CID, > but I have suggested use _ADR internally, and , to make things moving forward, > the driver adds support for _ADR here first. > > But you're right, _CID is another solution as well, we will discuss it with firmware > team more. Should I revert this series now until this gets sorted out? thanks, greg k-h