From nobody Fri Apr 3 11:18:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 54AC138CFE6; Tue, 17 Mar 2026 20:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779429; cv=none; b=BsnItaYsAAkY4SHJ4Greefvq9j+Ts5FKChbtwZzY5mIIQLxjxWvhww69P2eyczMSBg5utR7yS/d+x/qg34d8C8ivFgouGVIyGnmLOS21MaHoLo3CM+Jpp1YKfxjoCRJNfO5hkWbIEAzR/gldjrpRAshwEFznFSAiy0njhxJSoHM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779429; c=relaxed/simple; bh=Voj+ack1teh1dnW09zwdJQRrs2brV0kRS+OfUhtRLCM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DqgxBNGmwyrdKijMY2ovuCfN465CZBguDn5Fobx+xJuIjqpWdalVk2XFC5iHNJGDMtuA7QLB6YO9pznjrD/WJbU0s/7E0lCMMaZPzuFUFAL3Eh5+KQ4ktHXqXfSKn6VG6w+A8JNieLIVFQ5PpgHyTRfDEun5cHNOUrYsHi78H5U= 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=JWig76wT; arc=none smtp.client-ip=192.198.163.13 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="JWig76wT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773779428; x=1805315428; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Voj+ack1teh1dnW09zwdJQRrs2brV0kRS+OfUhtRLCM=; b=JWig76wTyPyBRAZpF/hWzC7D2w31sovOYFMbh3rl7Hn2qzwVWho92rAO NH1zsRqXHIf/N70GyXi/TRjZFyclENR5vEX3OFyP5cPfln/Dj24dHjlPM oNVSOJ2bNiErt3Xq82zMW7DB8YKMeaRZiWeGU/acJyPe+WJr5wjUbUWhl CQNpZ3WLoUXVcJo9DVqaxgrK3/bt5CNN0riAJJ9EWOoppOFqqqHVNIJqf bzHiPiS90hrOog6+DGRsSX2LT04eQgN8rkUgN1ijKuH3DNyZbIDb+VSI+ vl6s5hmuMnT6kk4k90Ca+N+t5qFNTVDyd5gM5W4qwJTouFi/y3ahItAEZ A==; X-CSE-ConnectionGUID: DjZU04VmSJqh6qfeGCAWPA== X-CSE-MsgGUID: CckWMaNpTziI6z9W3mwkfg== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="77433976" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="77433976" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 13:30:24 -0700 X-CSE-ConnectionGUID: GicUGuPSQIqCZGcWtM+mUQ== X-CSE-MsgGUID: SGxzjw47Qp+H9jmqmA2fKw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="222434440" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa008.jf.intel.com with ESMTP; 17 Mar 2026 13:30:22 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 0552298; Tue, 17 Mar 2026 21:30:20 +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 , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v2 1/4] phy: phy-can-transceiver: Convert to use device property API Date: Tue, 17 Mar 2026 21:27:27 +0100 Message-ID: <20260317203001.2108568-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260317203001.2108568-1-andriy.shevchenko@linux.intel.com> References: <20260317203001.2108568-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. While at it, drop unneeded argument to devm_phy_create() which extracts device node from the given device by default. Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transc= eiver.c index 2b52e47f247a..80eece74f77d 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 @@ -152,7 +152,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; @@ -161,8 +160,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 @@ -187,7 +185,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:18:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 48A9E38A731; Tue, 17 Mar 2026 20:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779428; cv=none; b=qwe+ypFy876sV5HACqXVx7YOBR1xnOspVC39JVAA5nptCnV3FjmWCj8mJMLhQu7ftcNjHRaCOK+3wOvbQuupVLMToBTDozP7n+qeScbrRYb+h36ZCgM+l6Rafe24LUhq5jybKjivZRo70Xe7Sft9D1u5DfUqOIrvZkAj1l+/N+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779428; c=relaxed/simple; bh=Oq3l+I9h8bxaIHyJ/kIHrAomOtzhSbrAao5gin/3sdQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ob3SVuN1iWGpdiGyK5dUKwaGdHI3A4VwXRBh8UM9s0Mz9Mg/irt8CCbwraCxAzmsC0dk1JRFj3v2n+dn520P9mXz6nsT18FyAGrDEiawWjKy8E7w4/oq00DswrE6wl/+e/LU98s253Ebd3U4ei67GewAmjYbEHSzi/++kw6lixk= 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=F16QGDjB; arc=none smtp.client-ip=192.198.163.13 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="F16QGDjB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773779427; x=1805315427; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Oq3l+I9h8bxaIHyJ/kIHrAomOtzhSbrAao5gin/3sdQ=; b=F16QGDjBIEAV5zdPvpi+k3JSEBUCfgy3r2DDAqijkUfshoFyFONWLFkt rowfWvj8Ely9dWHyDI8RHyptuTnlRc9WMlI5DjNKACbVrsjuhta6I5xWA gcGh/P3hmB30NvqA6BMUQhsRO2IF6hyLeuUtK6WFEUGlJmPetvSY51JKJ 4jEYhzA0HtcG9VvqFCMES8ePgKDx9Cji0rSjbqDnyf8j/7uWdg8i4bSf7 OmwrRn0GfDDSGR+f4Wk1lAk/Qci+NGZ+yHpyuZx4fTc3H6wQz3GG+OHKr 3+x8xQ2OH5i3vtrubMsxa0152wih6WYQIiTHvGyw6uMHr/to8cXl4ugOw Q==; X-CSE-ConnectionGUID: o/lWcCvqQH+rH2APEmTntA== X-CSE-MsgGUID: zrApQoEwSxSGt6LlVaz+zA== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="77433972" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="77433972" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 13:30:24 -0700 X-CSE-ConnectionGUID: Xd0iMxh0TtG2dbBYlEslmg== X-CSE-MsgGUID: s1IOXLqmTaa7kjpD9F72uQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="222434442" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa008.jf.intel.com with ESMTP; 17 Mar 2026 13:30:22 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 094F499; Tue, 17 Mar 2026 21:30:20 +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 , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v2 2/4] phy: phy-can-transceiver: Move OF ID table closer to their user Date: Tue, 17 Mar 2026 21:27:28 +0100 Message-ID: <20260317203001.2108568-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260317203001.2108568-1-andriy.shevchenko@linux.intel.com> References: <20260317203001.2108568-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 80eece74f77d..aaed8d08fcf0 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); - static struct phy *can_transceiver_phy_xlate(struct device *dev, const struct of_phandle_args *args) { @@ -229,6 +200,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 { @@ -236,7 +236,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:18:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 E716F389E08; Tue, 17 Mar 2026 20:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779428; cv=none; b=P63dQlHA+ShN+JjrPSuhACNRUUN5Ca71LphON/zxzj6UssgulslJAHBrFwZ0twKcBk7vq3iVNEdcLNxtil7hPMnN34aFfTtwNm5JU4zJkmED4iiY8cyS408IHBUZ2MQli+Fq37QZ6frQTVi/gRcEF0h0ZvMxOY97dXvs6pbkUXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779428; c=relaxed/simple; bh=lNwToLZvGLue8q3lhdy0+QwIrdVuQNDe6ZwtKnIqxrY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ENjqi+ma6/L7vy+lOPLfTL65PHELJkc0HSer1BM9DBEUDqo298U1SGAsfFxtXqIKG+P1Z6VdzYSkrbVKqb1xgQSf8/PR31d91v0UI+kA7KAFJ3DS2z9B93l6Ne3uuvy1nChKsbNG2LLUxAfg0C0DzxcYqCmx9IoWnGLUseNgSJk= 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=nZ8fSkPX; arc=none smtp.client-ip=192.198.163.13 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="nZ8fSkPX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773779427; x=1805315427; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lNwToLZvGLue8q3lhdy0+QwIrdVuQNDe6ZwtKnIqxrY=; b=nZ8fSkPXrnziN9QM4nlOd/llasECJlOQ/Ygyh7qjtYzRtx8Opd3jcDX+ LIvz39hoCqI7qIPM/2H9hfLMNTqohBAa6pmXUG8ZL5WxlFNpx9FLUmgbl iO6rsx62L+rXNlret8p3N/9MLikIYAfaLfWNNsKuH6IAbbOOIVCG+M+xZ uvZPjuynDaLl60bZjQzVUi8H1pUNq7MPy2PQdDbX0OF+kaFyHDhdX5jh0 2DC4WhghhLUWaPXr2kTcWrur3IbLIX4vU1Q4EvGdvWMe3TfkopD1AGwSm HAfL+icMipTOBb3VUlwjJG7d3jnQxAgf9NlqF/fwO1fr93UWUcm5M8l07 Q==; X-CSE-ConnectionGUID: s8UxJvlpTNWK0gkeDYvdqg== X-CSE-MsgGUID: 8Nt/hmUSSb+m1a8PDh0wog== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="77433965" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="77433965" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 13:30:24 -0700 X-CSE-ConnectionGUID: hGu+BYrHQIObg31iB5dGog== X-CSE-MsgGUID: LSp8lOVzRw2rYHNNGwI0kQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="222434441" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa008.jf.intel.com with ESMTP; 17 Mar 2026 13:30:22 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 0D51C9B; Tue, 17 Mar 2026 21:30:20 +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 , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v2 3/4] phy: phy-can-transceiver: Don't check for specific errors when parsing properties Date: Tue, 17 Mar 2026 21:27:29 +0100 Message-ID: <20260317203001.2108568-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260317203001.2108568-1-andriy.shevchenko@linux.intel.com> References: <20260317203001.2108568-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 aaed8d08fcf0..21b0406d1a09 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -128,8 +128,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) @@ -148,8 +149,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, propname, &max_bitrate); + if (err) + return dev_err_probe(dev, err, "failed to parse %s\n", propname); + } else { + max_bitrate =3D 0; + } + if (max_bitrate =3D=3D 0) 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:18:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 6BC92386C18; Tue, 17 Mar 2026 20:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779426; cv=none; b=bpBGgWPdU99QUrQv2BsE86WcsYLHX2SsyDkbAyVqqkbaGVOFHsAoibwXGZL9O5wlaXVPBdc5bta1CmecWU2Q0OAZ5wqsh/B7jo3/PVHve1r9kDoRZJPdkbts+PilPxbgOSBBuhV8iaB0swZoFUSnCL2rqnxnbTIFD/r9d7UGSJQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773779426; c=relaxed/simple; bh=1oTSEU4Uqt28G1kfDw6s8yAthnq4oOe8zjR0wi9b7S4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eyLmhoW46cd7cInAVJ4vfiZHJLEsAedZZi3m0tagxGDq6zlPJ4HKz3vPT8BZGp5hM8xSByyYNACm5T/7LKou+heMMdWMRpNz1K+QgpKmsOLxR3t/nslI4ARwZQ1DTOAjBlGxGmwVxcbTmvzZ0RRjcvHau7BAvpmhsu7IvkF6RFw= 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=kchYytr8; arc=none smtp.client-ip=192.198.163.13 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="kchYytr8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773779424; x=1805315424; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1oTSEU4Uqt28G1kfDw6s8yAthnq4oOe8zjR0wi9b7S4=; b=kchYytr8RMh2Hr09+v5/9g/V9OYTCglmO5P8j6V+VsRoi6ENQV3LKRV7 dXmnn8TXHzNkB8Vqke2iX51c0U77zPeeSW03fGKtw6DaPqm7IvKsyVLv8 TrzKU9QljtWjafZHbGzsXvQCL5Iq1WxCIFLknBFWETxec65+1Nz6Z8KpP VRS2g9G5P5yC8c1lWWLSubNlT/IaKn7qnEXB9TpuDYleYQe7j7y2b1YR/ mfY8JWGeATZ2dDfPXktLoO6Kfs7zTKnK/xkcNnOUon3UAZXniq/1rflcD 2ut3ihyLUo6rO0DR6maE2Woj8yk067ODKPyJUg3H0k/0LCP2gs7//5fa5 g==; X-CSE-ConnectionGUID: e/Ng91PHS42iq5CzY4y8ug== X-CSE-MsgGUID: eELJEE3RRwWZ0u21LVnriA== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="77433957" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="77433957" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 13:30:24 -0700 X-CSE-ConnectionGUID: WrrQjR7JQ5KV8yJfGSa2fw== X-CSE-MsgGUID: US82iz2RSRGV6bD0XvMUxQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="222434439" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa008.jf.intel.com with ESMTP; 17 Mar 2026 13:30:22 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 11D759D; Tue, 17 Mar 2026 21:30:20 +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 , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v2 4/4] phy: phy-can-transceiver: Drop unused include Date: Tue, 17 Mar 2026 21:27:30 +0100 Message-ID: <20260317203001.2108568-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260317203001.2108568-1-andriy.shevchenko@linux.intel.com> References: <20260317203001.2108568-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 21b0406d1a09..8e250039c183 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