From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FDD150C2B4; Fri, 4 Sep 2026 20:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788553369; cv=none; b=n0TlV/+roniCUnLFnyeKu0Z0Yqp+MPcCSdbFRACqV0dfsi5uMesObO4+XmYAy2iql/kRzWDEC7ygja70YoNVf2GuK2myTj+iCIZcSkqI0bWH9Zf5BOSsbjBCEuiEwjDfP8T78YEnPYHVUOSgqj623wB4FhkDH6cn0izE+NmVdkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788553369; c=relaxed/simple; bh=bw2W1qZcmf7Blll3N+n4993Jy+r1dnnoyRkosVN9X3c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rRSXrx/llNHPkw6Hs/hbWtUX9W9RXG4kLUE+Zx6LLvnMT/0a2BLS0vz3+fmTxk4fpeKSemQNvxlrHdZavKRFi6jxzqd74wAOAZUIMaeENkbPJD8DizwVwEi+JFU95EBUJDVD7fpY8ojttfl56C0YlgcgOhwNZyIah9f525LvDao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=k3g1n8F/; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="k3g1n8F/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788553366; x=1820089366; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bw2W1qZcmf7Blll3N+n4993Jy+r1dnnoyRkosVN9X3c=; b=k3g1n8F/aD/jpnFi9XnkXmKsQZETcxMRV9JNzg8lPgY+haI/5MBwTAwX aK1nqllu8W+9A16bfH9VnqyI7fm3ca3Jb2yJbTDQW/mqwexRvBa27mRgz D4W+0G987FVWiGsjL0CwA+/ZhlTcWqs3g/X2KK+P6CbehB/QXKqjWNQGP EJJLj19nsGclwvIlVRgOM3YFJ0617RtTD87VeFvni1IKimMKcLYLmcqKb Us8rjVKbHaCAtLP79AtKL3WAV9TagmTzVbxWqbIhEu7WCijVhDAruyhO0 AfliXATnh8i0BhEKKDy6Bpoz8+A/9rJxMIs/nggGMgRaZuPJEEe24l6RL w==; X-CSE-ConnectionGUID: nLj1Fk5kRE6CQ0pVY2BT9g== X-CSE-MsgGUID: DJzCqKjPRHSrVg4CSSXMSw== X-IronPort-AV: E=McAfee;i="6800,10657,11896"; a="88825203" X-IronPort-AV: E=Sophos;i="6.25,262,1779174000"; d="scan'208";a="88825203" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2026 13:22:44 -0700 X-CSE-ConnectionGUID: WwKLNACWRFaeMh5EWjuZfA== X-CSE-MsgGUID: 1blCz6W6S2mCem8ip/60xw== X-ExtLoop1: 1 Received: from ettammin-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.86]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2026 13:22:38 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id CBA3511F7F4; Fri, 04 Sep 2026 23:22:37 +0300 (EEST) Date: Fri, 4 Sep 2026 23:22:37 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Chen-Yu Tsai Cc: Bartosz Golaszewski , Greg Kroah-Hartman , Andy Shevchenko , Daniel Scally , Heikki Krogerus , "Rafael J. Wysocki" , Danilo Krummrich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Wei Deng , Konrad Dybcio , linux-acpi@vger.kernel.org, driver-core@lists.linux.dev, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , Alan Stern , Bartosz Golaszewski Subject: Re: [PATCH v8 02/16] device property: Add fwnode_graph_get_next_port_endpoint() Message-ID: References: <20260904084158.1341550-1-wenst@chromium.org> <20260904084158.1341550-3-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260904084158.1341550-3-wenst@chromium.org> On Fri, Sep 04, 2026 at 04:41:41PM +0800, Chen-Yu Tsai wrote: > Due to design constraints of the power sequencing API, the consumer > must first be sure that the other side is actually a provider, or it > will continually get -EPROBE_DEFER when requesting the power > sequencing descriptor. > > In the upcoming USB power sequencing integration, the USB hub driver > first needs to check whether a graph connection exists, and whether > the other side of the connection is a supported connector type. The > USB port is tied to a "port" firmware node, and this new helper will > be used to get the endpoint under the known "port" firmware node. > > Sashiko points out that the |prev| reference put is not done if |port| > is NULL. However it seems that the fwnode_*() and of_*() API design > implicitly makes the functions no-ops if the passed in node is NULL. > So this new addition follows the same pattern. I'd put this last paragraph after the '---' line. > > Cc: Sakari Ailus > Reviewed-by: Andy Shevchenko > Reviewed-by: Bartosz Golaszewski > Signed-off-by: Chen-Yu Tsai Reviewed-by: Sakari Ailus -- Sakari Ailus