Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2337646rdg; Mon, 16 Oct 2023 00:36:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRgyJUKpK8A5fSRErEPQSZNIxYcO3vFe8gO1iCyk6rbSNSMhJTVWHgAre/eP9iNYCXBpL2 X-Received: by 2002:a05:6808:4293:b0:3a7:4e0c:faa9 with SMTP id dq19-20020a056808429300b003a74e0cfaa9mr33784743oib.29.1697441805518; Mon, 16 Oct 2023 00:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697441805; cv=none; d=google.com; s=arc-20160816; b=cSq8pWwlUnC2BfvlQBYjELED1AqVy5UZByX+FqDMoyeyg2rezK355ibySu9tmeqok0 3JiQYKULEGTOFl0CMTWo4QYx+WIw+p4Avc10YtCIjFSBYrc4m/7POXVA2DKGsdTmEPnw ZDFteGq4E85hUNFKEh3zrC2cPU3J1eTw+bZaUvKibtb8JabhXXgshUUzNUyKVnJ2OeGU n5sLBbzt5CDk9+V5dht953nftVnEfStDOfkzlfva7PcHeIY8dvLNCatnkseTtEbE7dgV vi1MsKsWqjJzZGfGxvOWoRQ+M4KLEqdLfZY0kJxmlQ379882TdbI1Oy73UHsr/JfzbWx 5y3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=W5sTI1b2MESB7gMCaMCVhRQAJarvVq2SnKhZxnWdEek=; fh=nprCEB46onyacwhcJE1CQ2p0V9uPdFHHQUAZrsoHvsw=; b=mjYy8Zt9QkHA4Pf8f4QqEN0kc5CMfCPZ1Knxr32ijtrI890cAG/wTCuSfallKjtrO5 +/CI8k4+DagAZ9u3oElSFofjOJ8d7XOSBZ8jnD6gZoZrvGMIHlvunnPxg2UC97XsrA6a O/rHiPZJRYt+kJEnouhPDWXEgaNg2/JOuT6+uOnu0mJbPIWvSNd6bO5wxf4WLmEpuw2Z C1q7xZII3cx//eTajNv4yLoZMry8j2Hz9ZTM1qtyMfAI6DM4xYHlEbNRd8FWVB028W2K IxhajC2WEn3iMTeBFMhvRRScibSAMjNROd/nnqHslYgaJ5DcP/VTXnSRNbbqy7tL+rDx UPLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YfK3i/RE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e26-20020a631e1a000000b005641315d956si10195574pge.147.2023.10.16.00.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 00:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YfK3i/RE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 104078056A29; Mon, 16 Oct 2023 00:36:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232199AbjJPHgc (ORCPT + 99 others); Mon, 16 Oct 2023 03:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbjJPHgb (ORCPT ); Mon, 16 Oct 2023 03:36:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8674BE8 for ; Mon, 16 Oct 2023 00:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697441740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W5sTI1b2MESB7gMCaMCVhRQAJarvVq2SnKhZxnWdEek=; b=YfK3i/RExh4XIRto8Z23/ZI8AFuLZgzxIc5MIEvF0k47ouwxVsHtImRUYnBIlCEd3pLneZ 3XYb9vKJhagx+WMSvovAExkVCKAmbwI1OpyWdjOQ77c5wzGKKXikhCqr7Ey73Ps5BFMpbe NYgx9JYQUt3s3lKhfiU7q2GC/W5s2fI= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-520-zoIWxFMTODq1dkrLFOWdLA-1; Mon, 16 Oct 2023 03:35:29 -0400 X-MC-Unique: zoIWxFMTODq1dkrLFOWdLA-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9c4485166beso36130166b.3 for ; Mon, 16 Oct 2023 00:35:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697441728; x=1698046528; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W5sTI1b2MESB7gMCaMCVhRQAJarvVq2SnKhZxnWdEek=; b=L4BGR2fEsCDmaKvQXjWfSO6zxOqY1XgmMmlSCV844vRximysdGIlubRZXd5OhlPA55 DdpCRapJEHDduaWQw3q8xUYIZD1yPTahNyNIyhGF41t4ZQTi0u5Ky8/HH8EPVL6vQcU/ OJPKfaAwZzomVhvED618YrEPTSEq85ANz/ui50Y7/NfzYdvQkOHgs23PMzn9WedNqxM4 dBBUzABqqxN2uHE2HjBoFwXPrY5zpwoZ3dZPkmQtUVTPUBigRUS5nhTKTvuDr8KlwI5l 6GxdEmaVrFw7XVmq1OUem1vGi26K05QnLOWHkUZuyr/mBuhzttpwiaNatdNgjj9OLcg8 FDYA== X-Gm-Message-State: AOJu0YyygRB9MVAviJ51aeXtu49kN6NWo8UACvSVFs+2oGH4kak7smug 6KZPYtWGXXDYfC3Z6dlSGelVFw/cecr/P82IKiT0J1aQFluF2wUUrnYEVLieBzwni+Lv9g6y4PG szWkrA0SZ3wn7Ykt+43MWHlgw X-Received: by 2002:a17:907:608e:b0:9be:ef46:6b9c with SMTP id ht14-20020a170907608e00b009beef466b9cmr5011495ejc.70.1697441728147; Mon, 16 Oct 2023 00:35:28 -0700 (PDT) X-Received: by 2002:a17:907:608e:b0:9be:ef46:6b9c with SMTP id ht14-20020a170907608e00b009beef466b9cmr5011469ejc.70.1697441727791; Mon, 16 Oct 2023 00:35:27 -0700 (PDT) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id c22-20020a170906529600b0099c53c4407dsm3490401ejm.78.2023.10.16.00.35.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Oct 2023 00:35:26 -0700 (PDT) Message-ID: <9810930b-dd76-9b1d-fb63-87a7a6059d0b@redhat.com> Date: Mon, 16 Oct 2023 09:35:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v20 1/4] usb: Add support for Intel LJCA device To: "Wu, Wentong" , "Shevchenko, Andriy" Cc: "gregkh@linuxfoundation.org" , "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" References: <1696833205-16716-1-git-send-email-wentong.wu@intel.com> <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> Content-Language: en-US From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 00:36:42 -0700 (PDT) Hi, On 10/16/23 07:52, Wu, Wentong wrote: >> From: Hans de Goede >> >> Hi Andy, >> >> 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. Hmm, this sounds to me like _ADR is currently not actually being used in any shipping DSDTs ? Adding support for it to the driver seems a bit premature then IMHO ? Also HIDs can perfectly be re-used for compatible hardware in a newer generation so that is really not a good argument to use _ADR instead. Regards, Hans