Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1999910pxk; Mon, 14 Sep 2020 01:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkEKoUp/s6BV9MPc5IAxqUA+DjiCgbCCWhIt2Ni7yUpkueL/1Ah3tyZOWd71AME6vgkD4y X-Received: by 2002:a17:906:7013:: with SMTP id n19mr13527781ejj.388.1600073601323; Mon, 14 Sep 2020 01:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600073601; cv=none; d=google.com; s=arc-20160816; b=lrbVz+8DZQwhx/ZeGdEcocmJNMf/CPsjuk03QWFMzanTH5X+HbaB/C9E3QPoE3llOA pGdUJ1e8E+0tprHxHraDRSnRrEa9tWUdLN6PxssnMFCuinwtESAks5dT2ANxi6ycbxBP VVWikC7FRf+WySSrutezcPvdJ5FIabSlJV9wbShBw4YPZ+O7BTXyIyLmxmmeOD4ZmB4j oqDhxxeGlKwI5woPuQVrxrhNXPq6vKphfIM2XFs7pyjBGjJoiN670xeiLx4rwtJb9VOb bLcQt3+R73fUS+OKAxfWjSkANTu6mU94pe+OHoKZE5pc9fYHwCmGjLoPFy0Sml6DPtEx QvuQ== 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 :dkim-signature; bh=6RihlPiUoKJ5dO8u5VgwLil1hFKYQdPZrQdkm6dxH7U=; b=rBMLDt/8/6PV15md6pqtXUZ38egbIlQWN/Yc/RJDv9tvXZxdN1tgqw8IeeyN0ONfbQ RY3DUUam/mfC2QpffduADwvcroyIsjEPAU2gKevREdqk9XkD32FsANNHXpM5pXDxwqP7 a6Rw2ij2YPbQuX/2ECwVOH+uN1qYC5b6t0dYLzp4/PDZD7xJS4WWygt/lSYL719B7OU+ n3f3M1XHWkAmhkrOalMg7jpszS5t3Rfl3Wj2VIJrgNQJrWTF+fq4jlpGuOVEZvNzFxmT AFEWaa773wZTT1LEd04WSGebI7xxmSbf3YkWeqaUG+mMH6QBNryfzd6M9p13fiA9dmZ1 j+hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=OGWWk4oU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si6588294ejj.110.2020.09.14.01.52.59; Mon, 14 Sep 2020 01:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=OGWWk4oU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbgINIuq (ORCPT + 99 others); Mon, 14 Sep 2020 04:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgINIuK (ORCPT ); Mon, 14 Sep 2020 04:50:10 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E17A9C061352 for ; Mon, 14 Sep 2020 01:50:08 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id s13so9806939wmh.4 for ; Mon, 14 Sep 2020 01:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6RihlPiUoKJ5dO8u5VgwLil1hFKYQdPZrQdkm6dxH7U=; b=OGWWk4oUqeZhemDzsBit+3ybTzgLDKa8+inPhCSBdmqT0VzUjdt473bbAx3PXD/Me1 eom9s9PKN5pOuPDzFY8AmNEoCYJLd74DOxySWtNOyilvYNdjkPP9vo2ruWNm2vZzzLwc clrzILcPcXnV9H59MtGhVLK9Q3XhKSWhFpes4vKRRbtz1Ujtg943pwlv3IOxo4PawCsA wFlI3O3k5pELJnuaLXjy1AocjNWv277s1Z7ijKfV7B8NMJefnKlW5XwzMPckNmVoAcDa MHjzDGi6vpv4Pd0z8TG8BIYNFAwiOvw3crmxTlPMJ8DAudVkWC6dooPf1kpLi9WwgHfs KZ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=6RihlPiUoKJ5dO8u5VgwLil1hFKYQdPZrQdkm6dxH7U=; b=KLifQo18nGoAdrk+aOQpio0rFLUDdQh5YYDnPUmmV++FmmQ3q268Eb9+g0CRM8MGT0 P6v9RnLZMlV4XNjr06zjUBzlrwcYoT8CeQBp6BNkC06fqgXznL/jQatPGnY9wgbbPt7s s5rYaUVkm2+RIQAkyAgNczzF2kOYG00E9VllYPRy5GJBEBxH25Npa8yvIIoB2BNR7xIB rhAGzR8hyXwNwCnpfDD3xQugyiOiqGfHE3IPfluyPIacR4lMIlUUsDGJIJ/KROwUteb+ 4Cgl5ifb2YDiST0WOKfjOypUK4voxGkliwVsVLpbVIUzy/Yf2heQ5Gx0O1S3rKDOSMH5 8zqA== X-Gm-Message-State: AOAM531U0DLi9TmzibiAPoPvGjdjc8TTlbln0ebTG6XYivcYE0G0x0MH /ScdVftlkunu8+7jMSacVM7v6pEMqwWs+Q== X-Received: by 2002:a1c:750d:: with SMTP id o13mr11267961wmc.54.1600073405221; Mon, 14 Sep 2020 01:50:05 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id q12sm18980386wrs.48.2020.09.14.01.50.04 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Sep 2020 01:50:04 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Srinivas Neeli , Appana Durga Kedareswara rao , "David S. Miller" , Jakub Kicinski , Marc Kleine-Budde , Naga Sureshkumar Relli , Wolfgang Grandegger , linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 1/3] can: xilinx_can: Limit CANFD brp to 2 Date: Mon, 14 Sep 2020 10:49:56 +0200 Message-Id: X-Mailer: git-send-email 2.28.0 In-Reply-To: References: 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 From: Srinivas Neeli Bit enlarging is observed for CANFD2.0 when brp is 1, So change brp_min value to 2. Signed-off-by: Srinivas Neeli Signed-off-by: Michal Simek --- drivers/net/can/xilinx_can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index c1dbab8c896d..f4b544b69646 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -259,7 +259,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd2 = { .tseg2_min = 1, .tseg2_max = 128, .sjw_max = 128, - .brp_min = 1, + .brp_min = 2, .brp_max = 256, .brp_inc = 1, }; @@ -272,7 +272,7 @@ static struct can_bittiming_const xcan_data_bittiming_const_canfd2 = { .tseg2_min = 1, .tseg2_max = 16, .sjw_max = 16, - .brp_min = 1, + .brp_min = 2, .brp_max = 256, .brp_inc = 1, }; -- 2.28.0