Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3566227ybl; Mon, 12 Aug 2019 02:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeV5fG2IpHS89pQd7bFRpe/JHgvvhYk7bau4DzDCZGstzrbvagg7sS2VwJwHxLT4mKwhSK X-Received: by 2002:a65:6817:: with SMTP id l23mr29508406pgt.46.1565602848438; Mon, 12 Aug 2019 02:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565602848; cv=none; d=google.com; s=arc-20160816; b=G/RKdpPEFPK4+D61IFhVveAcL0ccA9tnoHSqtXDUqXYKWiiGSVBQQhdBSWcQ9z7rcQ QBH+O/afmE5hzpMIhygLqB9KO69BsnAJjxwetef19FmSJYWx90bYW9FtbV78bcG/CQL4 x4kPodeuvVTBQwO+tC1kCdpuR0W9Enu5gSx5nVA6RobRwvDgOY9ilijJApfnr19eEWUa IjY7lUuK9qVPh8/+P639rlnEIKn47PRLgtLSuWhieigwv3jhbvF/1F1fAzoIc4kxgKiO 6t/7OctDgULalqHRNXrdGSBC5paWROyDFJqwEM2haTxDDDwMW2rllYcBDcemLh2/qvFw wQJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=tT1UjdcHYpFjgCv9+Ho54IhCtyh2L9KYH47e8KNPbd0=; b=NGhOgt9M6jCiy4ES2ktXIw4VOYifX2pBBWE4ONPrPZUqbpjzMZJNoo8Y/7rvBNq1pz T1b0JsE0pqcgaZISPZSpIkM3hF80w3cMz7bkOi/VO9UiAiN2rH/WQz7mNdnbq8i/gDws erka28+mHpzutXR82oowfG16hXmAEX/0ihjRI4uQh1pEgyDQeMjZ+dC3uCCLQUFuH4w0 azaMYxBKQNmviyqFGkcxNGkWp00jnUNVqv3VQ1vbmc/l19NTrWMUazoyttzKjBNbGbWP dLv4jCzu5cKGlPUlTp/ZdZoaT6aVaEoT1icJPjzrkE1LOowFStnZI8l6YE8ZU83bNmzp c1Qw== 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 66si6864285plc.428.2019.08.12.02.40.33; Mon, 12 Aug 2019 02:40:48 -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 S1727525AbfHLJjo (ORCPT + 99 others); Mon, 12 Aug 2019 05:39:44 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57624 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbfHLJjh (ORCPT ); Mon, 12 Aug 2019 05:39:37 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 992A62002FB; Mon, 12 Aug 2019 11:39:35 +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 8CF8F200112; Mon, 12 Aug 2019 11:39:35 +0200 (CEST) Received: from fsr-ub1464-137.ea.freescale.net (fsr-ub1464-137.ea.freescale.net [10.171.82.114]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 42EE8205ED; Mon, 12 Aug 2019 11:39:35 +0200 (CEST) From: Ioana Ciornei To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: andrew@lunn.ch, ruxandra.radulescu@nxp.com, Ioana Ciornei Subject: [PATCH 08/10] staging: fsl-dpaa2/ethsw: reword error message Date: Mon, 12 Aug 2019 12:39:16 +0300 Message-Id: <1565602758-14434-9-git-send-email-ioana.ciornei@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1565602758-14434-1-git-send-email-ioana.ciornei@nxp.com> References: <1565602758-14434-1-git-send-email-ioana.ciornei@nxp.com> Reply-to: ioana.ciornei@nxp.com 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 In the current state, the dpaa2-ethsw driver supports only one bridge per DPSW object. Reword the error message so that this information is much more clear. Signed-off-by: Ioana Ciornei --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index b69b2b7be972..28da109aef5e 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -1119,8 +1119,7 @@ static int port_bridge_join(struct net_device *netdev, if (ethsw->ports[i]->bridge_dev && (ethsw->ports[i]->bridge_dev != upper_dev)) { netdev_err(netdev, - "Another switch port is connected to %s\n", - ethsw->ports[i]->bridge_dev->name); + "Only one bridge supported per DPSW object!\n"); return -EINVAL; } -- 1.9.1