Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp314019pxb; Mon, 25 Apr 2022 10:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8aaWSoF7fFGW1hSj/AgqrPe0/e3ngvI43HgjWty6xAbNSmwieL8Sz4cj0vWyuyn4J3546 X-Received: by 2002:a17:902:7789:b0:156:8b5c:606f with SMTP id o9-20020a170902778900b001568b5c606fmr18341703pll.100.1650907604758; Mon, 25 Apr 2022 10:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650907604; cv=none; d=google.com; s=arc-20160816; b=gLO4FnnbKwPgfIyWPq2REIduZLakVb6vc+l52fldb1DI1O50t2W+i1f30gecakoYXY rQarc8jLy4YGHTWrZBJymxrPMeih8y2rYGqsgpBQ25IGvqVRB9lWjdqWz0b4BCuV5epN 8nNH2OWQfD9koB4l1NUy/VhWvI7Eo/dNuF1qf3q/wY7wJo7VotwwM0hUwI8mR6kB7EPU jvwC6xoXy4u3LWcSWS92f0iYY58BG3bGi2zm/9fEbpSrpzgRrhRS9ijENxAwmW4fOWN9 8FBL85qNXhBBLK1G5j4R/1nu3abfmaOfGkI6UIaDncLA6GPPi/6awHGkD2DLodRiLl41 TSGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eiRq8qRkeZmK9FlwbB+/LMPbG9uXqkyTNIr9FDR7ueA=; b=X3vK5LPjuKi4FXtFDRb98Z+MS3ME5hRO9LN5a5s7mj2RBt+OfN6kYTi0FoC8CNF6JN 73dGicw/rZ0IOI91MEN/RBMxUsfzoTYdo82RuOZyV/gx4JxOcyrT5T3LndilZ5kpvTVs gTIpTsIcAWcLoWAKOXGKf2/68GppzY216GNekf2F23Aj9CLJxBQKS9ID9kZS6YOvgtMR paMqLUozagT7d2OfLzZiRjY/HzrLpgDu4WkBBSkDFHvpwLbuqPuvqLOR1CMobSHWEXNJ 2NAy6ou/QqFNpmkPgj9bPNVVYCOk0jhbSmyJqIScO+IyK2tScyrd5cl2wAOk55OSETAB wbrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jCoGipE7; 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-20020a6387c7000000b003ab1cc55f9csi5486179pge.154.2022.04.25.10.26.23; Mon, 25 Apr 2022 10:26: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=@intel.com header.s=Intel header.b=jCoGipE7; 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 S231922AbiDYMRA (ORCPT + 99 others); Mon, 25 Apr 2022 08:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbiDYMQw (ORCPT ); Mon, 25 Apr 2022 08:16:52 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD452193D4; Mon, 25 Apr 2022 05:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650888828; x=1682424828; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RcJmmFSAKdqn8rkcY+jzES/FkuNtJTKacj4WSDA1mlk=; b=jCoGipE7TF3n3TcKDqsZRuHsclpMm4YqjI722TktxxQiEfNJwYZh+WyT NjbCENSh+I9W1mRpuBKnsWNQkGMwCPzohaXdURI92J1iom7yyL8PTqMcH jRSz7mwB5dVQ9mB7cHgIHmVWDKVYqAioB8kxW9TtJM29OgHyY+m5ixlvb WYUM2gCVQdMa3dty1wdtQT9Mzxlni07F+RZda+RAISGW866iM2ehopRHc trRVYOEFEXd047pnAph5OUJ3rM4Be/ub9YJhMUv7BP99Uoe0uFcuyKhck 0Lvm+HWDG1bZkhtEgJ5OXb3ZSnTjZRaHLC/ylKbH3VCToJ00ck0sk1QcT g==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="351676973" X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="351676973" 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:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="704535997" 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:45 -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 2/2] usb: dwc3: host: Stop setting the ACPI companion Date: Mon, 25 Apr 2022 15:13:40 +0300 Message-Id: <20220425121340.1362-3-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220425121340.1362-1-heikki.krogerus@linux.intel.com> References: <20220425121340.1362-1-heikki.krogerus@linux.intel.com> 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 It is no longer needed. The sysdev pointer is now used when assigning the ACPI companions to the xHCI ports and USB devices. Assigning the ACPI companion here resulted in the fwnode->secondary pointer to be replaced also for the parent dwc3 device since the primary fwnode (the ACPI companion) was shared. That was unintentional and it created potential side effects like resource leaks. Signed-off-by: Heikki Krogerus --- drivers/usb/dwc3/host.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index eda871973d6cc..f56c30cf151e4 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -7,7 +7,6 @@ * Authors: Felipe Balbi , */ -#include #include #include #include @@ -83,7 +82,6 @@ int dwc3_host_init(struct dwc3 *dwc) } xhci->dev.parent = dwc->dev; - ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev)); dwc->xhci = xhci; -- 2.35.1