Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp715270ima; Wed, 24 Oct 2018 08:08:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5eVyQGaZsxuQpb/V2JhKgDUDholNxPMvpyz1TVyPq8WG+tGu05r6PoN852xlEExt5/RqNXI X-Received: by 2002:a62:178f:: with SMTP id 137-v6mr2925221pfx.215.1540393697755; Wed, 24 Oct 2018 08:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540393697; cv=none; d=google.com; s=arc-20160816; b=Yok6pS4DHIn8g7rgx1+QcBi+cenS+xbexslMlbWvYNk6gHLVCtj7B3vb6KkUnwjkc6 0hyndCqZ7iTz2qa/E9dTT/PTBDmJMaGeiisGzfttGTQ99NLxLZKmllo2rWaO9C2VTB0P g2OGkp1TIpD+wVwPXe/qs8ROJ/6SnMqt+RoOXj3pGvHw2PqMCe/DrmjQ0VENvDR0EOlX vhzmf81hcSw4/9PrfDvz+93JTdDf0z8pBJA9erKKig/2+agS26uYl54C6EIkuxiE0MmE 8hV462tirHxSUiFTdubydjqBrK0EKLcb/ppp5gVqbHSayJMYUq1i4u4brhNnMdHAuWlG YzDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vaDQOzADUciI6F4nBqmEU4n8N77AlnEZ2tEeglG3C4o=; b=rjvsN1ysVN4cEbUm1xV+aUHcIbDA7TIGcG7ouqxEdUGtbc1xaRpt1NVY5k/0s65vCJ Rf9PXSKsz1nKoXBmmm9JcPme4g3pP9Y5KIvk9aR68IAAOX07Ez6cF7abNUDx1wVqtKMI mo6pq9Pdi0LbaDHGgo7qvah0YozEKNSPnUtv2O7OQxlQUy2+gHfy2P7qgdamHn72dLCM m/fmVcSL5M+633RLyiyV9sSE449CdOA0ClaHMG/Q3djVVnPVtARnaubvVsn5BBRNS8zw cW7AA+edGTk+uqabxsOwqKiBiIopd9bQV3XZ/D+R9RCV64GL0ovbwU8bMrufwdr5IWlh gKCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si691921pgg.489.2018.10.24.08.07.54; Wed, 24 Oct 2018 08:08:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbeJXXd6 (ORCPT + 99 others); Wed, 24 Oct 2018 19:33:58 -0400 Received: from mga12.intel.com ([192.55.52.136]:34388 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbeJXXd5 (ORCPT ); Wed, 24 Oct 2018 19:33:57 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 08:05:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,420,1534834800"; d="scan'208";a="102104674" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 24 Oct 2018 08:05:28 -0700 From: Heikki Krogerus To: Heiko Stuebner Cc: Guenter Roeck , Hans de Goede , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/5] driver core: Add fwnode member to struct device_connection Date: Wed, 24 Oct 2018 18:05:21 +0300 Message-Id: <20181024150525.11552-2-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181024150525.11552-1-heikki.krogerus@linux.intel.com> References: <20181024150525.11552-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This will prepare the device connection API for connections described in firmware. Signed-off-by: Heikki Krogerus --- include/linux/device.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/device.h b/include/linux/device.h index 90224e75ade4..a964a0d614fa 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -753,11 +753,17 @@ struct device_dma_parameters { /** * struct device_connection - Device Connection Descriptor + * @fwnode: The device node of the connected device * @endpoint: The names of the two devices connected together * @id: Unique identifier for the connection * @list: List head, private, for internal use only + * + * NOTE: @fwnode is not used together with @endpoint. @fwnode is used when + * platform firmware defines the connection. When the connection is registeded + * with device_connection_add() @endpoint is used instead. */ struct device_connection { + struct fwnode_handle *fwnode; const char *endpoint[2]; const char *id; struct list_head list; -- 2.19.1