Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp565456pxb; Mon, 25 Apr 2022 16:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO/EA2cikQDVb3JcTkejySxf4D///4aJ6iuN2SjYB6yYvFRaSmiDUwXzyc5hSSI6iSrlip X-Received: by 2002:a65:6cc9:0:b0:399:26da:29af with SMTP id g9-20020a656cc9000000b0039926da29afmr5727307pgw.489.1650930189585; Mon, 25 Apr 2022 16:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650930189; cv=none; d=google.com; s=arc-20160816; b=BZ+gog2oRT1fjtd9upuJnTBS6MiXL8CskzOanZ/vo1yaj2Uw5SF8cJ5oIe/EV/HWW1 /ePaylt355mGIxW7SX8KM+40zPxBfEfY7u6qDUoOPn1ro+yJJAcCZyiIBjkX0tq45El9 qDxoVl6Q1J5HMHLQChmgP3VPjifxuc1dV/Sk13hQgHHsghI2FvfQu16n4NKFnJA60fxf 6YMtOm3kDqY6cqfF2RcErh4z+ZwE+5rDhFkUzjFpHMAnAocBn+EKyuNZs7ZnmhXcrk8N p2A5gYNcAszVC71nZ5P4qujpdL9tiqWuFzXp1TxGlE1Aeai8bGrHHZDj9jtBSHSFZ3ke dCtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vXIbminvOTBU1N5W4e+Lv0BmLJbh+TVM+O9POjLLKnE=; b=Hlem3Oj6tHqjdlD21Q3CfMMpDeabu1coM9uWAuw9i/6f2Dty40pnu5ZtV5aiOhqouZ bMBeG6wrE07/9DeskNRGy1PDh2eJoCe9tUK+yb/KU7ve97jvkp9voEWRLZw/3RvuakI3 dRDJ6nvM25HK1/nEOH0WxoA5R2+PuML/8aSJsj/C8zSVBFb8QdS1EwtFRvtt3Ume8oHi kYo1Yizlh9d/ftNRd7hVScag5s3PEqvCbw7y2th+ptfy7R8AKmxon6lDdOunWaxC/r/F Wca5N8tjI58BpD+crTQAQJ9ggno2PlucRDZTIh27AECJSfuxM1M5bUWD67VsS6Kc3Dy8 pNTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hSM8cdsg; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i190-20020a6387c7000000b003ab1f09b880si6005228pge.694.2022.04.25.16.42.53; Mon, 25 Apr 2022 16:43:09 -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=@intel.com header.s=Intel header.b=hSM8cdsg; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236013AbiDYMQt (ORCPT + 99 others); Mon, 25 Apr 2022 08:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbiDYMQr (ORCPT ); Mon, 25 Apr 2022 08:16:47 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC006193C0; Mon, 25 Apr 2022 05:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650888823; x=1682424823; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=77eSWG+vDqvLpGLGigGNMWXsWIkml9QManZaZRRQdps=; b=hSM8cdsgwHD1l/KoGlkdXeONo9nJpRaLvPvYgIMsO5NuFgO/LJDiY0HB sYP4Yc6/fzIGjIIVkiGx9e27YqGtslGvcvwg2ozK1XFbma1bZVTs5Twp/ Z7gtJ1osI0YlU0gEl98szmZvDBhtZHBSWSjE+UH+9ZNPx9O8RnScZnQEy aA7TSTdYy1P7T2i1UIzz+eT/jNWRFW8d2djJhXOxYGyN/d5vIDSVk37If Pg9BoufDFOT9S0qSOliTAazqyEz/KRyOSg6uy66z39FQju2qtrj/iiiIN mQ+4AANIktsTmiiAofZae7u8l5Kfu+VCLH3jY0QsQhqdtu+0o/5RI2qAL A==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="351676963" X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="351676963" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 05:13:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="704535982" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 25 Apr 2022 05:13:40 -0700 From: Heikki Krogerus To: Greg Kroah-Hartman Cc: Felipe Balbi , "Rafael J. Wysocki" , Mathias Nyman , Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] usb: core: acpi: Rely on the sysdev pointer Date: Mon, 25 Apr 2022 15:13:38 +0300 Message-Id: <20220425121340.1362-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Hi, Since we have that sysdev pointer, we need to use it also when assigning the ACPI companion for the root hub. That should remove the need to "manually" assign the ACPI companion to the controller device in the xhci glue drivers like dwc3-host.c. Assigning the ACPI companion in those glue drivers is very problematic, because it screws up the fwnode->secondary pointer. But as said, since we have that sysdev pointer, there is no need to manually set it. sysdev pointer should always point to the correct physical device from firmware PoW. thanks, Heikki Krogerus (2): usb: core: acpi: Use the sysdev pointer instead of controller device usb: dwc3: host: Stop setting the ACPI companion drivers/usb/core/usb-acpi.c | 2 +- drivers/usb/dwc3/host.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) -- 2.35.1