From nobody Fri Apr 3 03:23:06 2026 Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C48D631328B; Mon, 16 Feb 2026 13:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.231.106.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771250044; cv=none; b=m3p661p4OMjZ+c1dEl7X6WsHGYPfa9vzG8vjjv/J8sEguumeNIT8KUDLB75vhH0IBfe6Xxlsj3zzZIiFThO0ZSCiKD+tireKhoF82RdvphMtXc5jD/uYGWZRsXSU0y8pcKunnmoFG+yjM3v9zUcXuXQoe5r8ZeOArc5wOjdq+cY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771250044; c=relaxed/simple; bh=d69qwrD+8/dMXAqCysUZlPuelGP4QG+qQfzTu87KLuc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=baZ+HT5nB6hpnlLXPdy7aRxVxydWoNdRkaoK6TSTQSX2rMgJ/8YKu10SjxGjKuhqFm6a3tIVVHTUeneBKsAMnWsMOjfzGDgxgTKcszsvuCsuRoUQDicRaMDecjMXJiZQHQKIAgsfJPcP732KC/nPT15ssJyRICEFLyfrRyGxLb0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gaisler.com; spf=pass smtp.mailfrom=gaisler.com; dkim=fail (0-bit key) header.d=gaisler.com header.i=@gaisler.com header.b=hjAi7u6P reason="key not found in DNS"; arc=none smtp.client-ip=94.231.106.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="hjAi7u6P" Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4fF44d1BV8z1Fbwk; Mon, 16 Feb 2026 14:53:53 +0100 (CET) Received: from d-5xj5g74.got.gaisler.com.com (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) by smtp.simply.com (Simply.com) with ESMTPA id 4fF44c5dn2z1FbwS; Mon, 16 Feb 2026 14:53:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=simplycom2; t=1771250033; bh=NNaOJdDimz9SOKPDxsvnp6aFkqqwnyPFi1SMS9Y4XX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hjAi7u6Poe5vOxN6b+YSFs/2bV4xXg9yVCJl5nMDlNX9tgl1nZbikzp1xdz19lX6w Gqh8tRN587jBGvLGvf3PSQNEHn7jBE6uhmTGLglkyeGkaNMdjXG3a2uzCLMCx+a7oW 7yiszJYh4+dKLuD6O420NyCezewhx8sh3tYhB4pGuMpKAEv8mfHkLNmESa6ZawIZMV w+hchojT9I/e98UZ6XBfJ0rLhq8x5eufCQ+21zkFkpdxeV6SjkCf5NOSAEV5zQEaJM Mz13A3mYtiC0cq2OD7G2QxnJZctEY8l8DhxmpXYULp6/nPnYHRZMmRPa6zd23eRNSI A0rlVhraRZ7Yg== From: Arun Muthusamy To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mkl@pengutronix.de, mailhol@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, Arun Muthusamy Subject: [PATCH v5 16/16] can: grcan: Advertise CANFD capability Date: Mon, 16 Feb 2026 14:53:44 +0100 Message-ID: <20260216135344.23246-17-arun.muthusamy@gaisler.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260216135344.23246-1-arun.muthusamy@gaisler.com> References: <20260216135344.23246-1-arun.muthusamy@gaisler.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Advertise CANFD capability for GRCANFD hardware by enabling CAN_CTRLMODE_FD flag and providing CANFD timing operations. Signed-off-by: Arun Muthusamy --- drivers/net/can/grcan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c index 72bdea6d27cd..b673c5a7a429 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c @@ -1770,11 +1770,14 @@ static int grcan_setup_netdev(struct platform_devic= e *ofdev, priv->ofdev_dev =3D &ofdev->dev; priv->regs =3D base; priv->can.bittiming_const =3D hwcap->bt_const; + priv->can.fd.data_bittiming_const =3D hwcap->bt_const; priv->can.do_set_mode =3D grcan_set_mode; priv->can.do_get_berr_counter =3D grcan_get_berr_counter; priv->can.clock.freq =3D ambafreq; priv->can.ctrlmode_supported =3D CAN_CTRLMODE_LISTENONLY | CAN_CTRLMODE_ONE_SHOT; + if (hwcap->fd) + priv->can.ctrlmode_supported |=3D CAN_CTRLMODE_FD; priv->need_txbug_workaround =3D txbug; priv->hwcap =3D hwcap; =20 --=20 2.51.0