From nobody Fri Apr 3 11:10:25 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 3C0C73176E0; Thu, 19 Feb 2026 20:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532956; cv=none; b=fKWHwK2BqfFkhs/LOk4ThmUpdPaMlD8aszfyp1nTkILU2g91zf35A+Vdc48J1ymPLe5C5JHCgDs4HAcuB1egZjt75n7Te2IlD3h8dtNQ7933OwKhAUm79kt1+q2dpMYFMq7WgYwMJ0dn9DazxBUi3YKJXBLg64v5ne6R0AYke7g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532956; c=relaxed/simple; bh=hd5cj1VyA/d0T/ntQwiii7GhLKEXsJXcwSYU99VWdng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P2hBC4cSJ3J0mcTB+UPjmZpGldEcnVhmqvcm44ool5QOPI3wZYGEQGLRnkuNC9wXFPJADpeVqcX5Gjkm+fu8AALjReAnb2Sr6SEeeL0taS3etmXyDPYGpPAYrEIiNGvoRHGxgNTL06fpPLum1txr75YYRwywZDhSCOoNN2aeSm8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CyNquUY/; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CyNquUY/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771532955; x=1803068955; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hd5cj1VyA/d0T/ntQwiii7GhLKEXsJXcwSYU99VWdng=; b=CyNquUY/+bM4EdqlDwhLWpSzq/m81LMwvuuURce/OODF1HlptpEQmXrQ jjnFJ5MkASqqfurKt0xMt0bBCtmzRJ7JXSTUcw37ZdKKJgPThdQWtPYl5 xP7s4Lt+lezeTAxo1r4NdVlxnFzOPWKn2IcZv1LVhftAypYoWiy8yWcxF LUFK0RT4DGSBxq/493k6ugJlK0Qp7Xwp3u3boENjhGVBSOsusIuiCL+xb 4K5tNWSazwLIh9LDH/0ylJvv1BjStS7uSvYaOnsrk6dkBhH5cA8vvKXjF T/E2eikdbmGkmJ6DZ3CrCxmKhjm9XAkD36xRQ0Vb/DmXchuiKjEsjYKDs Q==; X-CSE-ConnectionGUID: 1QD2piwbRcaSXispmPq0FA== X-CSE-MsgGUID: g5o+XwKbRe2/7ZtgZMG6qA== X-IronPort-AV: E=McAfee;i="6800,10657,11706"; a="72532327" X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="72532327" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2026 12:29:14 -0800 X-CSE-ConnectionGUID: E/tMwy0FQ+eY6JvUZmo1lw== X-CSE-MsgGUID: Q0hV3O4bSIi5mewv/TNg3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="219183206" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 19 Feb 2026 12:29:13 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id F387298; Thu, 19 Feb 2026 21:29:11 +0100 (CET) From: Andy Shevchenko To: linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Andy Shevchenko Subject: [PATCH v1 1/4] phy: phy-can-transceiver: Convert to use device property API Date: Thu, 19 Feb 2026 21:26:19 +0100 Message-ID: <20260219202910.2304440-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.com> References: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.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" It seems the driver is half-moved to use device property APIs. Finish that by converting everything to use that. Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transc= eiver.c index 330356706ad7..f2259af4af8a 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -5,9 +5,9 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com * */ -#include #include #include +#include #include #include #include @@ -130,7 +130,7 @@ MODULE_DEVICE_TABLE(of, can_transceiver_phy_ids); static inline struct mux_state * devm_mux_state_get_optional(struct device *dev, const char *mux_name) { - if (!of_property_present(dev->of_node, "mux-states")) + if (!device_property_present(dev, "mux-states")) return NULL; =20 return devm_mux_state_get(dev, mux_name); @@ -162,7 +162,6 @@ static int can_transceiver_phy_probe(struct platform_de= vice *pdev) struct can_transceiver_phy *can_transceiver_phy; struct can_transceiver_priv *priv; const struct can_transceiver_data *drvdata; - const struct of_device_id *match; struct phy *phy; struct gpio_desc *silent_gpio; struct gpio_desc *standby_gpio; @@ -171,8 +170,7 @@ static int can_transceiver_phy_probe(struct platform_de= vice *pdev) u32 max_bitrate =3D 0; int err, i, num_ch =3D 1; =20 - match =3D of_match_node(can_transceiver_phy_ids, pdev->dev.of_node); - drvdata =3D match->data; + drvdata =3D device_get_match_data(dev); if (drvdata->flags & CAN_TRANSCEIVER_DUAL_CH) num_ch =3D 2; =20 @@ -197,7 +195,7 @@ static int can_transceiver_phy_probe(struct platform_de= vice *pdev) can_transceiver_phy =3D &priv->can_transceiver_phy[i]; can_transceiver_phy->priv =3D priv; =20 - phy =3D devm_phy_create(dev, dev->of_node, &can_transceiver_phy_ops); + phy =3D devm_phy_create(dev, NULL, &can_transceiver_phy_ops); if (IS_ERR(phy)) { dev_err(dev, "failed to create can transceiver phy\n"); return PTR_ERR(phy); --=20 2.50.1 From nobody Fri Apr 3 11:10:25 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 C0F5E318EFA; Thu, 19 Feb 2026 20:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532959; cv=none; b=UZgZWeI+mySGvO9EPw4wtYMD3pjJDOWrAoIiT88ZNc/fCxJx/kn/jYmb89naEFa0N/mvhznOjjzdbB4VGX0tnAglWmTQCpkyMjznE2oCPoeJsJRa2rdtlb3picermxFcS0KXDi3EIe+uAVpqQPQiqjzdYTAhJ/kwA4jwPACEdL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532959; c=relaxed/simple; bh=O395g583JciclhAYkpkhPwswiSCKjgtzscqic/6jAKw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=shezwgB0ilZR3+kTY6bxO4mMhFkuO8rST4tNqzNIOXhRZYmQiv5PyVrarZjXSXKGxcwcq572hrsU/uS9lWv3wB1bEW2d3XTaHUPu1ZcSQx3SnW+gZcf7q5pg+8uXk7N7PGPEqDj5Lb6Wmyg04Ez4iN5nMxZpVEKmOCuuo5fWpCw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B3Zomwb1; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B3Zomwb1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771532957; x=1803068957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O395g583JciclhAYkpkhPwswiSCKjgtzscqic/6jAKw=; b=B3Zomwb1F5J/tDhTRL+byqr22jxjAcuaM0R2mHeKckq4cC6LtNbCrwKJ U8iU7FnqyCTqWU62o0gYihioZ883iBhX/zBKt7EukmdyLb7f68OGBwnIz 3+fR2uge0VJHkGZRGD5FV982UTOkseZZjHA1Tp0mEjkwU/AwVyQHR3UYq jWY9pc1uuQp17TDK97P0YZnVqyoBAbVZ3bmy+ZMVpLchUkkXMtBZCaEFf W7eZpGxSlGUGDTWXy3jEjAgKSCan1p5ZuSAJ05om3FYKNJa2AsuIefjC8 /jNBUZ6BdJi1mYryro3BECA9FcVuehvQN9xnnQjqR9UzouRnNXwJvZX0P Q==; X-CSE-ConnectionGUID: 0ko//MtySY6UNxMJ4I0cvg== X-CSE-MsgGUID: p8/mNKs1T060h1laAfuYHw== X-IronPort-AV: E=McAfee;i="6800,10657,11706"; a="72532342" X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="72532342" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2026 12:29:15 -0800 X-CSE-ConnectionGUID: HwgZ1UnqRwORsfJSozvKEQ== X-CSE-MsgGUID: OKz+UufCT4O4dB1lvn7Oxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="219183209" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 19 Feb 2026 12:29:13 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 035B999; Thu, 19 Feb 2026 21:29:12 +0100 (CET) From: Andy Shevchenko To: linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Andy Shevchenko Subject: [PATCH v1 2/4] phy: phy-can-transceiver: Move OF ID table closer to their user Date: Thu, 19 Feb 2026 21:26:20 +0100 Message-ID: <20260219202910.2304440-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.com> References: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.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" There is no code that uses ID table directly, except the struct device_driver at the end of the file. Hence, move table closer to its user. It's always possible to access them via a pointer. Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 59 +++++++++++++++---------------- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transc= eiver.c index f2259af4af8a..dd08faf46837 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -97,35 +97,6 @@ static const struct can_transceiver_data tja1057_drvdata= =3D { .flags =3D CAN_TRANSCEIVER_SILENT_PRESENT, }; =20 -static const struct of_device_id can_transceiver_phy_ids[] =3D { - { - .compatible =3D "ti,tcan1042", - .data =3D &tcan1042_drvdata - }, - { - .compatible =3D "ti,tcan1043", - .data =3D &tcan1043_drvdata - }, - { - .compatible =3D "nxp,tja1048", - .data =3D &tja1048_drvdata - }, - { - .compatible =3D "nxp,tja1051", - .data =3D &tja1051_drvdata - }, - { - .compatible =3D "nxp,tja1057", - .data =3D &tja1057_drvdata - }, - { - .compatible =3D "nxp,tjr1443", - .data =3D &tcan1043_drvdata - }, - { } -}; -MODULE_DEVICE_TABLE(of, can_transceiver_phy_ids); - /* Temporary wrapper until the multiplexer subsystem supports optional mux= es */ static inline struct mux_state * devm_mux_state_get_optional(struct device *dev, const char *mux_name) @@ -239,6 +210,35 @@ static int can_transceiver_phy_probe(struct platform_d= evice *pdev) return PTR_ERR_OR_ZERO(phy_provider); } =20 +static const struct of_device_id can_transceiver_phy_ids[] =3D { + { + .compatible =3D "ti,tcan1042", + .data =3D &tcan1042_drvdata + }, + { + .compatible =3D "ti,tcan1043", + .data =3D &tcan1043_drvdata + }, + { + .compatible =3D "nxp,tja1048", + .data =3D &tja1048_drvdata + }, + { + .compatible =3D "nxp,tja1051", + .data =3D &tja1051_drvdata + }, + { + .compatible =3D "nxp,tja1057", + .data =3D &tja1057_drvdata + }, + { + .compatible =3D "nxp,tjr1443", + .data =3D &tcan1043_drvdata + }, + { } +}; +MODULE_DEVICE_TABLE(of, can_transceiver_phy_ids); + static struct platform_driver can_transceiver_phy_driver =3D { .probe =3D can_transceiver_phy_probe, .driver =3D { @@ -246,7 +246,6 @@ static struct platform_driver can_transceiver_phy_drive= r =3D { .of_match_table =3D can_transceiver_phy_ids, }, }; - module_platform_driver(can_transceiver_phy_driver); =20 MODULE_AUTHOR("Faiz Abbas "); --=20 2.50.1 From nobody Fri Apr 3 11:10:25 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 CFE10318BB3; Thu, 19 Feb 2026 20:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532958; cv=none; b=R88kzyeRJ/+aWHe+U7BN4MmnHydEqfNk+1aiYbYlLw3BA9mfi6CNr1gjjXeuhONiWLjTM/QCd+F3QMH+c9lwq8tMYl4fPiPu64CcCcnx+akdF+bc0avq9pSTDXiAYZV3KopEXlXZ/dlN71LMVnpQD34D/f+OFeRsUVPixEAK5gk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532958; c=relaxed/simple; bh=UVb/lJOOJhogtTXNOnHshhDE7UWpEz6L/FN2AVGtFbY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CmeFtaAN58GWEJfdEMSNQJU5xiLXMgS0Q89y6g5INOw4SgmnTkO8kP9sID7jCYnjdDkKTTYh7PL6hReOf0aqPdZRREcw94TtSxM9bdPjiKTD5ZfPhmx9XWhcHy9n6NQYXqEBDWdKmXzIGoxVx1vFI8/ZDMGGdEDfoCWdfPQwq2Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=m2ZwsOgr; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="m2ZwsOgr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771532956; x=1803068956; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UVb/lJOOJhogtTXNOnHshhDE7UWpEz6L/FN2AVGtFbY=; b=m2ZwsOgrJjFafTPbXZyI0QRqZGjYe5QiOPVDGgZaK7cXmlcJ9DIv3Skr ZwHKSqTYcA4dynqtCIa/R6zMhg4tDyact1yP/FbFEycygLlH7BCKRRn53 JMbhKpwvtLcL/2QfbgQgaGlWOhYSPK/2BRNhJKPwkpNcSgB1feuPvTdt4 hZ6kztwwrXVhn9zMwPudvBDNYJ/EWbcsqWY4Oj1RoJ75uMFJZ4CxdDNAM tCm0XV1K7d4kJ+2kRpY2KnKQo/436LzYdfawuU2hevUQ5S5CIPjz03BA0 JoJYNpavQC1QrBKB1nRuQ0fhv4R54pYiPFhh2U2k+HwL+a1x/k0PvS8WV A==; X-CSE-ConnectionGUID: t2tI9dcTSHa6tVIX/XHKyw== X-CSE-MsgGUID: Lh7iJsupRbK0bUp1LSDuuw== X-IronPort-AV: E=McAfee;i="6800,10657,11706"; a="72532337" X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="72532337" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2026 12:29:15 -0800 X-CSE-ConnectionGUID: vaxD0SWIR6uxqp1QKPDpbQ== X-CSE-MsgGUID: RT6iERWuQCahA0gz9TWgCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="219183208" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa005.fm.intel.com with ESMTP; 19 Feb 2026 12:29:13 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 076F89B; Thu, 19 Feb 2026 21:29:12 +0100 (CET) From: Andy Shevchenko To: linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Andy Shevchenko Subject: [PATCH v1 3/4] phy: phy-can-transceiver: Don't check for specific errors when parsing properties Date: Thu, 19 Feb 2026 21:26:21 +0100 Message-ID: <20260219202910.2304440-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.com> References: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.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" Instead of checking for the specific error codes (that can be considered a layering violation to some extent) check for the property existence first and then either parse it, or apply a default value. With that, return an error when parsing of the existing property fails. Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transc= eiver.c index dd08faf46837..ebce48ef217f 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -138,8 +138,9 @@ static int can_transceiver_phy_probe(struct platform_de= vice *pdev) struct gpio_desc *standby_gpio; struct gpio_desc *enable_gpio; struct mux_state *mux_state; - u32 max_bitrate =3D 0; int err, i, num_ch =3D 1; + const char *propname; + u32 max_bitrate; =20 drvdata =3D device_get_match_data(dev); if (drvdata->flags & CAN_TRANSCEIVER_DUAL_CH) @@ -158,8 +159,15 @@ static int can_transceiver_phy_probe(struct platform_d= evice *pdev) =20 priv->mux_state =3D mux_state; =20 - err =3D device_property_read_u32(dev, "max-bitrate", &max_bitrate); - if ((err !=3D -EINVAL) && !max_bitrate) + propname =3D "max-bitrate"; + if (device_property_present(dev, propname)) { + err =3D device_property_read_u32(dev, "max-bitrate", &max_bitrate); + if (err) + return dev_err_probe(dev, err, "failed to parse %s\n", propname); + } else { + max_bitrate =3D 0; + } + if (!max_bitrate) dev_warn(dev, "Invalid value for transceiver max bitrate. Ignoring bitra= te limit\n"); =20 for (i =3D 0; i < num_ch; i++) { --=20 2.50.1 From nobody Fri Apr 3 11:10:25 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 E4A6D26D4F9; Thu, 19 Feb 2026 20:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532957; cv=none; b=gSQrXcjQ28k1q7JI9fnEdEJatiMaI91RToLaFzPUSwVCH6Xoc44HSHCJQXQkUUQrSa6Rn/vK+t81MNHhi0sUJFrUureEOuvYD6PBu0Ekl0FrxhC+TxRF1NClDoiNyRR6x+92TIiqLYIhAD1WdXYbT5g2/L/2/7Ve2J9C+sc2S5Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771532957; c=relaxed/simple; bh=7Yp0Zx6S5q5BQPxgAeuKyYhu3KCC6d9EY3eVALItl74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QwlKgvIrOzhjh0GgvKK2yC41YLMs4iKckqlD+QiSEFWdc/rEEtbBBKb6p2LItta8zBX6woAENivAX/cbHsAie0m8oYCHEaC2Lh00r51mM8nuGdwflcopl6MOZMsjJ8em+k4N5ZCA9w4LBJRtEdaNsjWNtdYfOVn2rYnzLklFB2I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=drT4bLNG; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="drT4bLNG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771532956; x=1803068956; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7Yp0Zx6S5q5BQPxgAeuKyYhu3KCC6d9EY3eVALItl74=; b=drT4bLNGNf3OV202BrwmjQiB7N0iV0B6t0e6HeoE4vqRl0vh998Puot8 gQDTRR9mq+YJxVf0ZF3jkf/8vc6Gbm9d9YKp+ahXrNp+oYgRy12hpVXOf ddPHgmdLCeOK+nSl31ii2griVREYB9Q4C62tJHHpekxfpaq/z4lx6a0lh 4st2cDCo9sj+pqmKFlIROKWdpCbOZmHa3ERCqI8mvQlA2ovw0jJ7+tpPc ELfL8i1YJvCMdiMY81CxFsmdvwjnssXM2skUGjECxc97FJi7P4Anz2xLu RmcDdjb4hXgrGdo5EO1tmgr1XYvYwRl92eRmXUKkfSed5Pb6X4mQ7YztL A==; X-CSE-ConnectionGUID: U9n/LOnQSDOKwHSNZqAvnw== X-CSE-MsgGUID: zocmtTK8TYC+8lZq1VWCVg== X-IronPort-AV: E=McAfee;i="6800,10657,11706"; a="71655723" X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="71655723" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2026 12:29:15 -0800 X-CSE-ConnectionGUID: rE357m9XRkqSjIVYVCKtdQ== X-CSE-MsgGUID: 8OdFyD4RRn+LKJWZM6YyZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,300,1763452800"; d="scan'208";a="214492051" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa009.jf.intel.com with ESMTP; 19 Feb 2026 12:29:13 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 0B5D09D; Thu, 19 Feb 2026 21:29:12 +0100 (CET) From: Andy Shevchenko To: linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Andy Shevchenko Subject: [PATCH v1 4/4] phy: phy-can-transceiver: Drop unused include Date: Thu, 19 Feb 2026 21:26:22 +0100 Message-ID: <20260219202910.2304440-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.com> References: <20260219202910.2304440-1-andriy.shevchenko@linux.intel.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" This file does not use the symbols from the legacy header, so let's drop it. Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transc= eiver.c index ebce48ef217f..ba40bad4ccb1 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -5,12 +5,11 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com * */ +#include #include #include #include #include -#include -#include #include =20 struct can_transceiver_data { --=20 2.50.1