Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3057887imm; Mon, 10 Sep 2018 10:19:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZanIEViJHwrJzV8c9kOEuQDA2mAUfrC7I1b0WMo6eUBEaWWP7WhK2UP0KG1n3jO6Yhh2da X-Received: by 2002:a62:5543:: with SMTP id j64-v6mr24619337pfb.188.1536599941539; Mon, 10 Sep 2018 10:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536599941; cv=none; d=google.com; s=arc-20160816; b=ayd6Sp74dVZzwFsD0KS4T6TVa7Pk52yoFpj7Lz6ue6Tu/asWgh0XQr7gpLsroM6njM ayHfTcjDGcjJpLlFS/lfjCoco5I33bFlVoC+RI6+uBpauaVt4iFEMpNmZOH59yeyfpJF Hy5GRAFX622BrGZlKEJ+UEQP0Jf8hfI+AtPNV/M/5mvZIvJkcx4KauXUn8BgFMPRPxwq 1PxGml64Gx4HAuc0nXdJc5JwbGyTAstmAwnvax9XbRmvTTYff6G6GYwSF6lVachAgXVq WjnKXZvHTbN4rXliKnW210Ydk9o5chqhblsgWYyUXh3N2Qksz2sZW3oHOppTAoMIE2qn xmzA== 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=HuKp5ISM392DvaeY6dMy07F9ir1eeb2Iudi/9FCkBZ00uTbjnuW2aajSE6UxG9i2NB PFTB2ALidEznwALqQVXukqUvBy/R4F/UXpck+YF9sxdmvgsDt+cr6ZtXWJZBYb7W3U5f XX7IxsPApHygS3Qr47/UzuMoln71qBUqWAiNKRhPVbymvUo/1MfTmifTPznsDzANQRlr YfBOGcFKZ8g6aGwUf4fER4h8lNaFPrmfwIVfeLr/2ZPHQeApGWNQnbRpVWBXpp7Kh9TK YU6acKpRqy8wey1RIJhPfwqrP2Xn01hvOqVZ0EO35ruYErRG4ON/vB32om0/W6Ycf9S7 i+CA== 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 w26-v6si17588974pgk.372.2018.09.10.10.18.46; Mon, 10 Sep 2018 10:19:01 -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 S1728357AbeIJWLc (ORCPT + 99 others); Mon, 10 Sep 2018 18:11:32 -0400 Received: from inva020.nxp.com ([92.121.34.13]:59502 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbeIJWLc (ORCPT ); Mon, 10 Sep 2018 18:11:32 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ABBAD1A00C1; Mon, 10 Sep 2018 19:16:26 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9EB9D1A003C; Mon, 10 Sep 2018 19:16:26 +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 20B7D2060B; Mon, 10 Sep 2018 19:16:26 +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 01/11] bus: fsl-mc: add support for dpseci device type Date: Mon, 10 Sep 2018 20:15:40 +0300 Message-Id: <20180910171550.5659-2-horia.geanta@nxp.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180910171550.5659-1-horia.geanta@nxp.com> References: <20180910171550.5659-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