Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp706970rdg; Wed, 11 Oct 2023 03:21:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH3GgOwnZ/IREo76QgMGQNUQE2HREhWg19G0c0CARHoCcEtR+KVUx/8azfq8m2yGcNx601 X-Received: by 2002:a17:90a:3d0a:b0:27c:ddda:e7c4 with SMTP id h10-20020a17090a3d0a00b0027cdddae7c4mr4886018pjc.29.1697019714035; Wed, 11 Oct 2023 03:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697019714; cv=none; d=google.com; s=arc-20160816; b=CbgCJtYjPje2eD9dQN1z+7tTJG+a05nZpe9wZFTyMc6sQCvg1waqSgB6ISUdI2lbyK J9SJHrbAYCBkQiVi7HuyQ2tATw/jLO5PXFMJrDDYPyDOK+Ya95mKIjKxMU+AnhrEUsVb SNon9N4aV+fu31e3qldbjfA6jTL+YSfWCfXsD5x4XUOFoEtXZCzuTV0djA7smoFhwOlJ tRz+g5gFwDvj2pv+vcHmesANEu9reEyL1xAPXN3GRWRAAbXVBNRrG+W0+IJnjy9KNHGO SrGxAwkR3otk9pUFeeIgtxIxC1oNQC2MhU9Y87JE0tffg1h9COFIx1rhS3KcP7rcgxvg ECYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Cu3XkSha1PfJKk5pLzEKUebcFdWjNIZZQZbHH7TFxZw=; fh=J9DjeQsXdDomeLOAwX5FX93+URhtVyOdwzxsiE+yCvQ=; b=1JS4zNDS2kzLXFF/XWKHnsCfw6D9lUgNl+2LJOv+xHzMurVAdrgBx9vER1WQLVKdE3 1C5qVoGOkog5KAPLGM5dPWjCHL4yLf7HKnhVwmvfK0+A+7wp32/erokYhK2OL/y0/nL/ owyGnChzivLbIQx7/B+K7W/2R7A6HF/HPlwdIgk3c6dPD/LuhOH1Kv4+6/fbFSZHwSyt wyO/z56IVd0tPZpzFAU1cW6oD0D4pNmqsmpG51MKWQpxtjOC2wWjXxsOVX3pI4Lhae77 +MEldG7mREnLvO/tT8aChfGtgZfszpUv2n9AIcXXCzb2tTLHslFG9bc1wDLwnxzQ5x7F Z1Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VIeWU83b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s11-20020a17090ad48b00b0027cf284c86asi2944094pju.56.2023.10.11.03.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:21:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VIeWU83b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 67CB58020932; Wed, 11 Oct 2023 03:21:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231556AbjJKKVd (ORCPT + 99 others); Wed, 11 Oct 2023 06:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbjJKKV3 (ORCPT ); Wed, 11 Oct 2023 06:21:29 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D616794; Wed, 11 Oct 2023 03:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697019688; x=1728555688; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/cYWT/4fm7jXsKnDZ4BU0yY6cJwahfXPWVnGMGjbcsM=; b=VIeWU83bLvIUuBBVheASpygqGR67OfO2po2QRufat1UAd7c771nPnieN qke+mncSsVYK2FsIruJRW+jU6K+XLX6bd7Zndjjg15/5+YWvJyJL/axyv TDovcmIDnajM4mJC3s8Yq+C8kOaNr4eChcBEGbrh38srpMuVamyvn8wrQ 5+SUKrUW7toVZHTzGzIAucFQT3Id9Y+y3SsHVJHaK/h/2Y2t1t950ISAP ltHUsxBHyZhDNvTR8+lpJD6XUUoZDorRVxGf5QAhqGUL5zzlXwvKlzKjM osi32NGu6DUWogmTLWZ4uAjnXvCKBdxUE0sn0Sk3SRm/5hgGiab5I5AMJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="415673273" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="415673273" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:21:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="897579128" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="897579128" Received: from unknown (HELO smile.fi.intel.com) ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:19:39 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qqWLB-00000004an8-1jYb; Wed, 11 Oct 2023 13:21:21 +0300 Date: Wed, 11 Oct 2023 13:21:20 +0300 From: Andy Shevchenko To: Wentong Wu 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, hdegoede@redhat.com, linux-usb@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, sakari.ailus@linux.intel.com, zhifeng.wang@intel.com, 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: References: <1696833205-16716-1-git-send-email-wentong.wu@intel.com> <1696833205-16716-2-git-send-email-wentong.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696833205-16716-2-git-send-email-wentong.wu@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:21:50 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 02:33:22PM +0800, Wentong Wu wrote: > Implements the USB part of Intel USB-I2C/GPIO/SPI adapter device > named "La Jolla Cove Adapter" (LJCA). > > The communication between the various LJCA module drivers and the > hardware will be muxed/demuxed by this driver. Three modules ( > I2C, GPIO, and SPI) are supported currently. > > Each sub-module of LJCA device is identified by type field within > the LJCA message header. > > The sub-modules of LJCA can use ljca_transfer() to issue a transfer > between host and hardware. And ljca_register_event_cb is exported > to LJCA sub-module drivers for hardware event subscription. > > The minimum code in ASL that covers this board is > Scope (\_SB.PCI0.DWC3.RHUB.HS01) > { > Device (GPIO) > { > Name (_ADR, Zero) > Name (_STA, 0x0F) > } > > Device (I2C) > { > Name (_ADR, One) > Name (_STA, 0x0F) > } > > Device (SPI) > { > Name (_ADR, 0x02) > Name (_STA, 0x0F) > } > } This commit message is not true anymore, or misleading at bare minimum. The ACPI specification is crystal clear about usage _ADR and _HID, i.e. they must NOT be used together for the same device node. So, can you clarify how the DSDT is organized and update the commit message and it may require (quite likely) to redesign the architecture of this driver. Sorry I missed this from previous rounds as I was busy by something else. Greg, please do not promote this to the next before above will be clarified. P.S> Using _ADR and _HID together is an immediate NAK from me. -- With Best Regards, Andy Shevchenko