Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6104761imm; Mon, 27 Aug 2018 09:45:35 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb3qGAMkJE09trkIkUq+NV35wSOaO4fL/Eg2iMLdv5meVleQDMk22qCI70/UEKkWmk8MTvi X-Received: by 2002:a62:6602:: with SMTP id a2-v6mr15217990pfc.159.1535388335102; Mon, 27 Aug 2018 09:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535388335; cv=none; d=google.com; s=arc-20160816; b=Q+RzcQaidQTdpHb0nMKsGrcUvqZcLPVOx7jNVoZ9UkBObyz1smGYq9ztMBrJGR4BJH fWsZ+Tt5Sg2yDDRvQ9j4/L9y+zzTmAjhIh0G879kKY8Bu3z0aTB7rSd5HPhQbZZscz0A EyJiD8DT9WPGs2ttoV+XLbAv7cSUDF9fnbsrvEuML2s2ms+UKv3TE53f/a15AudKJ8LD 0m+ulIf5Kp2xc42j9+Xu4qCT/EpClGuTcEKg4htsDScZw8m83lWeUxgBSJwkeDnwkz1B 5FCkNLuOguIrCGsm283opkkv5k5RaNcE81PXsBn3ffl/w0jjgvC0/KPkw7luiZdSP+cU nN3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:arc-authentication-results; bh=dErTLilOzMbUHvTphLbHQ+OvjVoILxhRpcB85QRbqa0=; b=FH3NxUaPp63FMBZD9Uh1oU7mJ/uGxMzIntvhe7TfiGnBAm+R8DKEe4LFeeL8YyIsfV s63IZM4n9mH/q+t7hFqF9IZl/0IgQPFgwVJsPGLFSblb12692JZ4y5LhszuZTXLp6pzT dvIi84v1tdG+YjFUXTRs/3wISLYwG00/pP/KGvqhjFhD/bM9gYwFhlBy2CxQ+4t0388U sWhK+hslQLnNOesk+S3p/8phsZIvD1XyCcyxGSpOzTWJBxgd1vVYJqA6ylCxY65Rbyem 9v8WyxTqMntnkNimjlBxSL9tNWSAbNgj8ODcJTbu4sAo3BlJEkwkn72WhdNYjgaRNExe dFlg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t123-v6si13784111pgt.578.2018.08.27.09.45.19; Mon, 27 Aug 2018 09:45:35 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727459AbeH0UbK (ORCPT + 99 others); Mon, 27 Aug 2018 16:31:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53386 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726995AbeH0UbJ (ORCPT ); Mon, 27 Aug 2018 16:31:09 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7RGhgbs010551 for ; Mon, 27 Aug 2018 12:43:48 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2m4mb2hyhq-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 27 Aug 2018 12:43:47 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 27 Aug 2018 17:43:42 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 27 Aug 2018 17:43:40 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w7RGheYG43122800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Aug 2018 16:43:40 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0808442042; Mon, 27 Aug 2018 19:43:39 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F001942041; Mon, 27 Aug 2018 19:43:38 +0100 (BST) Received: from d06ml001.portsmouth.uk.ibm.com (unknown [9.149.76.127]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 27 Aug 2018 19:43:38 +0100 (BST) Received: from localhost.localdomain ([9.145.66.122]) by d06ml001.portsmouth.uk.ibm.com (IBM Domino Release 9.0.1FP10HF192) with ESMTP id 2018082717433931-6095 ; Mon, 27 Aug 2018 17:43:39 +0100 From: Ivan Mikhaylov To: netdev@vger.kernel.org Cc: "David S . Miller" , "Christian Lamparter" , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] net/ibm/emac: wrong emac_calc_base call was used by typo Date: Mon, 27 Aug 2018 19:43:35 +0300 X-Mailer: git-send-email 2.15.1 X-MIMETrack: Itemize by SMTP Server on D06ML001/06/M/IBM(Release 9.0.1FP10HF192 | April 16, 2018) at 27/08/2018 17:43:39, Serialize by Router on D06ML001/06/M/IBM(Release 9.0.1FP10HF192 | April 16, 2018) at 27/08/2018 17:43:39, Serialize complete at 27/08/2018 17:43:39 X-TNEFEvaluated: 1 X-TM-AS-GCONF: 00 x-cbid: 18082716-0008-0000-0000-000002675E53 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18082716-0009-0000-0000-000021CFB2DD Message-Id: <20180827164336.8815-1-ivan@de.ibm.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-27_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808270176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __emac_calc_base_mr1 was used instead of __emac4_calc_base_mr1 by copy-paste mistake for emac4syn. Fixes: 45d6e545505fd32edb812f085be7de45b6a5c0af ("net/ibm/emac: add 8192 rx/tx fifo size") Signed-off-by: Ivan Mikhaylov --- drivers/net/ethernet/ibm/emac/core.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 354c098..3726646 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -494,9 +494,6 @@ static u32 __emac_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_s case 16384: ret |= EMAC_MR1_RFS_16K; break; - case 8192: - ret |= EMAC4_MR1_RFS_8K; - break; case 4096: ret |= EMAC_MR1_RFS_4K; break; @@ -537,6 +534,9 @@ static u32 __emac4_calc_base_mr1(struct emac_instance *dev, int tx_size, int rx_ case 16384: ret |= EMAC4_MR1_RFS_16K; break; + case 8192: + ret |= EMAC4_MR1_RFS_8K; + break; case 4096: ret |= EMAC4_MR1_RFS_4K; break; -- 1.7.1