From nobody Tue Feb 10 01:30:38 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 3BD7443DA59; Thu, 22 Jan 2026 12:10:58 +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=1769083862; cv=none; b=GDeYB+pSRQpwhAOwpMv6Pkmv/fEaneO9v3sKvzVx601oRpF3GKAwjfn4Cfqa6NlCZ/i2vQ9HCfq1Ym4K1lX7KhfBr18HNGnYGBYwUii33SXShYTtywzchdguexUm1oDNhoq/KgOA7BP4YRVtN55nUlnvcVd1n75cKk23PdUrPcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769083862; c=relaxed/simple; bh=vA7Bn/T3MRsg5KZ3x1qZfVZ2mW8VIC/LyFcEFlwEwvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CpoM+FUkWzuw3SNm9GXeMpWLNBMXB1Lig5e+AygwSDtfp8Gdy+M2gHNbA2TUIwYDtU4lxg3YhvOvWJwulhBsxid1xCVNz+BYjzOmOjqSV7Yw3qvxCVEQznl3pXO0SW0UE2cCnESV1C+xTroyqMFlnRihMDYUni+9d1oA4M8pS3I= 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=APk/YhVs 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="APk/YhVs" Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4dxfzG1Ck6z1FlXv; Thu, 22 Jan 2026 13:10:50 +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 4dxfzF5ZxWz1FDXb; Thu, 22 Jan 2026 13:10:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=simplycom2; t=1769083850; bh=pEzKnxcYuoOsnjOFZzfSF3b1bjVYx5kW8HBT6p9Mnqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=APk/YhVsH8MD6neQqao1VBk08TH1qmTT7PFXxwv9WR7LI/XndpYVMnAIMK2RHJci1 C1VQpfqbe+wQC6KetoTxy8uNfK1BoN9jlpUpSgOpPWSFgUeUy6/wleu4OCpUwNEuQm KmR7BamKQKbtdsE8aMQlzsqxGsiFDJVc5t9MJMeqvXqEIREErgD1ReUkoA/p/4IjUP ADgZWBVrvGQ5FYr3LD0l4dt9jEFggPf2byXJ+EbLK0k1HfzJkV3Utml53kJSP95mwo Os3+V3AO7GhZ9Dt9I6lbyE871OgX2hqb++SzFoq8HuZGZf36dOkouSj8bXCggxIvaR CLvM0ZBdMuoig== 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 v3 12/15] can: grcan: Advertise CANFD capability Date: Thu, 22 Jan 2026 13:10:35 +0100 Message-ID: <20260122121038.7910-13-arun.muthusamy@gaisler.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260122121038.7910-1-arun.muthusamy@gaisler.com> References: <20260122121038.7910-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 e99a8c2bffc6..9fc18064fab1 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c @@ -1656,11 +1656,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