Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5167433imm; Wed, 12 Sep 2018 02:02:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYJg30pZxBF1Jz2OSKlK3cKouF4LdDM2p7DDOuew38lY7hoyuo1yBVHgZTCIFAyD0Dw+OFj X-Received: by 2002:a62:205d:: with SMTP id g90-v6mr1058800pfg.253.1536742928853; Wed, 12 Sep 2018 02:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536742928; cv=none; d=google.com; s=arc-20160816; b=h98Pvk9BdyEZnBM9xXdELkI0k1VzzT9RIZCYwnP3MwLP7q8TLALF7ll3A5VZDwZ2yM Wc6FZdszMhS3tuFHZ2VmIcGbKKnID+dTjMIO+kv1LGE/FAxaFd2B/t442AHx4+xeAfoO fz1sih4fuG7hQaKlO2yYvk6f12J0NLwCip7X9jmmHL8mWnTelCnqpUEgdG8qeI0MON6S Qxfvi8uFmPwSih/0V8O4SiAsd8QWwnHEgjDCXCqZbMvUlmtisInUS638DclCVqJrf984 dH/z2Hd2BX81F7kPGOew2hgyq9kPLd99VOmm3EjfrsQK7mj8elc0ix2GAa2TX1BhzJu0 fZsw== 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=K54Zs19nJk94qX2E/44EfVLi6jGk83NCZ+kszwsuwYM=; b=No6VmGynWQ0KzLAyFEmLIEHBjFtrrcuNzaY0D6kWpZ/aWu87XtxYYGMxEGItJliRDQ S4t32Sr3+EbRA+N14GNHcIrlQ0DD+EnSbnv0xthtHTc3CuASf5ls3DyBc+fo8BgBJcge 9nX0tqmT5S6NXPeBVb4eJ1qjpQeiPDXFSMJueLZUW1Pcnydb8hZevjhKss5oCzOJwSxZ 4kwKIMRc6hq08r1jwlKDCKkHLSKFKADNR75vRReF/xKq5/G4sUFGOmVJshQ+AT/7v1qB DLuE5JudZSYiFLR2++XCsutl3hqMUDPdL4p3x0M3ykAL2oo0XnUzOsjf8rzVKXv5Hp4Q 8NQw== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si433613pld.322.2018.09.12.02.01.54; Wed, 12 Sep 2018 02:02:08 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727968AbeILODa (ORCPT + 99 others); Wed, 12 Sep 2018 10:03:30 -0400 Received: from inva021.nxp.com ([92.121.34.21]:47162 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727409AbeILOD3 (ORCPT ); Wed, 12 Sep 2018 10:03:29 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3C50F200126; Wed, 12 Sep 2018 10:59:54 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2E6C6200123; Wed, 12 Sep 2018 10:59:54 +0200 (CEST) Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.81.110]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id A3CEF205F0; Wed, 12 Sep 2018 10:59:53 +0200 (CEST) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Stuart Yoder , Laurentiu Tudor , Li Yang , Roy Pledge , Catalin Marinas , Will Deacon Cc: "David S . Miller" , Aymen Sghaier , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/12] bus: fsl-mc: add support for dpseci device type Date: Wed, 12 Sep 2018 11:59:26 +0300 Message-Id: <20180912085937.22489-2-horia.geanta@nxp.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180912085937.22489-1-horia.geanta@nxp.com> References: <20180912085937.22489-1-horia.geanta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Horia Geantă --- drivers/bus/fsl-mc/fsl-mc-bus.c | 5 +++++ include/linux/fsl/mc.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c index 5d8266c6571f..4552b06fe601 100644 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c @@ -188,6 +188,10 @@ struct device_type fsl_mc_bus_dprtc_type = { .name = "fsl_mc_bus_dprtc" }; +struct device_type fsl_mc_bus_dpseci_type = { + .name = "fsl_mc_bus_dpseci" +}; + static struct device_type *fsl_mc_get_device_type(const char *type) { static const struct { @@ -203,6 +207,7 @@ static struct device_type *fsl_mc_get_device_type(const char *type) { &fsl_mc_bus_dpmcp_type, "dpmcp" }, { &fsl_mc_bus_dpmac_type, "dpmac" }, { &fsl_mc_bus_dprtc_type, "dprtc" }, + { &fsl_mc_bus_dpseci_type, "dpseci" }, { NULL, NULL } }; int i; diff --git a/include/linux/fsl/mc.h b/include/linux/fsl/mc.h index f27cb14088a4..5160f06ffbac 100644 --- a/include/linux/fsl/mc.h +++ b/include/linux/fsl/mc.h @@ -405,6 +405,7 @@ extern struct device_type fsl_mc_bus_dpcon_type; extern struct device_type fsl_mc_bus_dpmcp_type; extern struct device_type fsl_mc_bus_dpmac_type; extern struct device_type fsl_mc_bus_dprtc_type; +extern struct device_type fsl_mc_bus_dpseci_type; static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) { @@ -451,6 +452,11 @@ static inline bool is_fsl_mc_bus_dprtc(const struct fsl_mc_device *mc_dev) return mc_dev->dev.type == &fsl_mc_bus_dprtc_type; } +static inline bool is_fsl_mc_bus_dpseci(const struct fsl_mc_device *mc_dev) +{ + return mc_dev->dev.type == &fsl_mc_bus_dpseci_type; +} + /* * Data Path Buffer Pool (DPBP) API * Contains initialization APIs and runtime control APIs for DPBP -- 2.16.2