From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 1A0D9377E93; Tue, 11 Nov 2025 16:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879961; cv=none; b=U4GshyT7rSiLKD94Z4Zll5AbGOlGSBex/WETeXch8GuPtRk1udw6EORqd5r7ItPyWxlRbIOjBilFCG9jAV1JrwfmPQIhrU+N2qVh3OT6y3fq9Dv2E8V4GAYRpjhSlsMdbxVS/2x9aoXLXYPiyEcI/OY4A+pGzaVOjm0M8AAjTnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879961; c=relaxed/simple; bh=n21JxC+PX1CB9sFEWjSyHhZRgvxqQIKCXsnZMj5jQ5g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OF2AKoFNwpKE2BYp17WwhsPS2q+3y5S1zgxkS0jhbOF3iWl6235p2zIheariuTYYp2ZSgwYb2ub5RMdsDNqjxRWz/KSjyum5jsaKd+EGQN/4BmYaEEeRtxhBLRljxrli8f/4XNSIExXSXPeuqhBqt8GaKryq3miicEeBeXlSaRY= 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=FOQL980j; arc=none smtp.client-ip=198.175.65.20 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="FOQL980j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879959; x=1794415959; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n21JxC+PX1CB9sFEWjSyHhZRgvxqQIKCXsnZMj5jQ5g=; b=FOQL980jxHXZaJPip1GmIOxeES7wRDcp5j8+9taYosGv75ptz+G6zrMA h/vpylrx/6dnLdef3BUmHjk6mijWIWwytvetTefpxllEiIT6QpD1u5ZZF V06TsH4V/Q8CUr3ciLu8FaicRFS5ZoCgbHRUGox6NbJMXC9J8Nxe/tOD6 1NYj+VE9llL+lc7wZhy0cEN0O3ieAKQlylEbOZN8nWthPn78G+Rru6UPa Phgncz2SLbNW0VQO+686NxmtDMtFd7m29394Ojv71gGAuhQTUrUf00tqi 1SGvNwXG0py416haOVFiNiGFl+kOUbjXTeCaoEit9XQJ79EkCumU5kfg9 Q==; X-CSE-ConnectionGUID: mtGWuR4jRUSN2rFrL5tGXw== X-CSE-MsgGUID: yuH18ebBRJGJX+/6bcrzbA== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="64647258" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="64647258" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:36 -0800 X-CSE-ConnectionGUID: Bv1dFJReTe6BgsPFmYhpbw== X-CSE-MsgGUID: H6esjo8CRDKTya+62MwoYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="194202544" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa005.jf.intel.com with ESMTP; 11 Nov 2025 08:52:34 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 6C5B097; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 1/7] ptp: ocp: Refactor signal_show() and fix %ptT misuse Date: Tue, 11 Nov 2025 17:52:08 +0100 Message-ID: <20251111165232.1198222-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" Refactor signal_show() to avoid sequential calls to sysfs_emit*() and use the same pattern to get the index of a signal as it's done in signal_store(). While at it, fix wrong use of %ptT against struct timespec64. It's kinda lucky that it worked just because the first member there 64-bit and it's of time64_t type. Now with %ptS it may be used correctly. Signed-off-by: Andy Shevchenko Reviewed-by: Vadim Fedorenko --- drivers/ptp/ptp_ocp.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index eeebe4d149f7..95889f85ffb2 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -3250,20 +3250,16 @@ signal_show(struct device *dev, struct device_attri= bute *attr, char *buf) struct dev_ext_attribute *ea =3D to_ext_attr(attr); struct ptp_ocp *bp =3D dev_get_drvdata(dev); struct ptp_ocp_signal *signal; + int gen =3D (uintptr_t)ea->var; struct timespec64 ts; - ssize_t count; - int i; =20 - i =3D (uintptr_t)ea->var; - signal =3D &bp->signal[i]; - - count =3D sysfs_emit(buf, "%llu %d %llu %d", signal->period, - signal->duty, signal->phase, signal->polarity); + signal =3D &bp->signal[gen]; =20 ts =3D ktime_to_timespec64(signal->start); - count +=3D sysfs_emit_at(buf, count, " %ptT TAI\n", &ts); =20 - return count; + return sysfs_emit(buf, "%llu %d %llu %d %ptT TAI\n", + signal->period, signal->duty, signal->phase, signal->polarity, + &ts.tv_sec); } static EXT_ATTR_RW(signal, signal, 0); static EXT_ATTR_RW(signal, signal, 1); --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 5ACF0377EBB; Tue, 11 Nov 2025 16:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879963; cv=none; b=s5sWDDgBvQTXTe2rYlk7lK5eIsGB4MK6DG6MlxPc4uZrLPX3HvfoS1f2Dx+lN/3bWs5jxlWizeCjAFp3uWzI9L3OAmkLRsSCDMshywJEeotrDtzIJRmzcEODFqsp1tQfwKcqpjE8K19kLZVNHnZ/MHhS9ck3pMeosI7xuvO+sDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879963; c=relaxed/simple; bh=Irrh/WMb2YZkLZ9X0VUJAWMO052t7dNADxKM31U8lOQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zy5HZD0xuaTA0vjq5tDvGVSerw2wkS5KiMP3ttNQcnCqqg6bj/YrcL3hKc1yHCHglZeJVkQ4P8blxUFCTfaCo3AFoa2Bh7vnO+YgszWhyTVkoR9v2CWOXNE1bLc1VFk2KpqheU4Ob2oR6UKhsB4prb0dLcmnWDdTpKnbjYjP/3w= 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=VcxKMTdr; arc=none smtp.client-ip=198.175.65.20 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="VcxKMTdr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879961; x=1794415961; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Irrh/WMb2YZkLZ9X0VUJAWMO052t7dNADxKM31U8lOQ=; b=VcxKMTdr6fuuE5k6WwsnLWLfpjk4k53eOFVohaZHuVL7WPPNxOvx2R/y 2hL/2YqZz2NidXyXOTjkhXmZ5q3fpwp17pOLRzQEqM7moucY1RbvpzdKE IIwjEY9TSvAbd5iCGkntVIMK2Qb+YCApKLh5rKDdaSR89V64uCfIeIruV y4aarfKZH6BpTTJuK1qjok1v5fj0XqsreAYFjdqoXDqQu9G05WR0X77bX bgPKPcuHO1WxsiANjB6aryJL6FnwAo7kUM5yU+4uFbri0aFzcQEB4zT18 LV9UwH+AaLQJJbspUS6vdNbA/90OfrrqARYoLpFg9mLkp0x7HRvspY/V1 A==; X-CSE-ConnectionGUID: wWdOofY5TWW6I5EXFGqXOw== X-CSE-MsgGUID: Iqh3RYYsRfiKEz+7ATBwrg== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="64647272" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="64647272" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:36 -0800 X-CSE-ConnectionGUID: 7moGsZunRyO9WGPELpD3Bg== X-CSE-MsgGUID: v6pu9y1QTb6FxQKdsQ49FQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="194202545" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa005.jf.intel.com with ESMTP; 11 Nov 2025 08:52:35 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 70E3898; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 2/7] ptp: ocp: Make ptp_ocp_unregister_ext() NULL-aware Date: Tue, 11 Nov 2025 17:52:09 +0100 Message-ID: <20251111165232.1198222-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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's a common practice to make resource release functions be NULL-aware. Make ptp_ocp_unregister_ext() NULL-aware. Signed-off-by: Andy Shevchenko Reviewed-by: Vadim Fedorenko --- drivers/ptp/ptp_ocp.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 95889f85ffb2..28243fb1d78f 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -2225,6 +2225,9 @@ ptp_ocp_ts_enable(void *priv, u32 req, bool enable) static void ptp_ocp_unregister_ext(struct ptp_ocp_ext_src *ext) { + if (!ext) + return; + ext->info->enable(ext, ~0, false); pci_free_irq(ext->bp->pdev, ext->irq_vec, ext); kfree(ext); @@ -4558,21 +4561,14 @@ ptp_ocp_detach(struct ptp_ocp *bp) ptp_ocp_detach_sysfs(bp); ptp_ocp_attr_group_del(bp); timer_delete_sync(&bp->watchdog); - if (bp->ts0) - ptp_ocp_unregister_ext(bp->ts0); - if (bp->ts1) - ptp_ocp_unregister_ext(bp->ts1); - if (bp->ts2) - ptp_ocp_unregister_ext(bp->ts2); - if (bp->ts3) - ptp_ocp_unregister_ext(bp->ts3); - if (bp->ts4) - ptp_ocp_unregister_ext(bp->ts4); - if (bp->pps) - ptp_ocp_unregister_ext(bp->pps); + ptp_ocp_unregister_ext(bp->ts0); + ptp_ocp_unregister_ext(bp->ts1); + ptp_ocp_unregister_ext(bp->ts2); + ptp_ocp_unregister_ext(bp->ts3); + ptp_ocp_unregister_ext(bp->ts4); + ptp_ocp_unregister_ext(bp->pps); for (i =3D 0; i < 4; i++) - if (bp->signal_out[i]) - ptp_ocp_unregister_ext(bp->signal_out[i]); + ptp_ocp_unregister_ext(bp->signal_out[i]); for (i =3D 0; i < __PORT_COUNT; i++) if (bp->port[i].line !=3D -1) serial8250_unregister_port(bp->port[i].line); --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 A16A93730EC; Tue, 11 Nov 2025 16:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879961; cv=none; b=jlTdDW448BPA5E5c1xguEAlUbhxXbvmRf9IjYgEfh9SO31rp8Abwgw3l5QIL6GzgAaDC3xcnXAHUEgnrX3dwSJIMyXTG3hcBUP6uNCyz6beZozQexBLBfo/+Dva8dMJQUNIi+DkcIk2qkbnu12R/0XDmNuJm4UCMkGD+rb4rj+w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879961; c=relaxed/simple; bh=QS3TFWuwHYfnFtUUf2G1VSXpVmg82xEHmr0g8k6jmuw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PwOUhR/Oxb1D/I6Y5tkYODf1XmxO90/rNET778BTVL8zYn4DF+2SqVycgU2k1qYEhbYwAI+7tgzWdiafvEl1WxDj2KYzAkWe4cfV6S4p32YHjICysQvnkWFNT5M5kkcmhY5zMewKsZ4RgrE2F/YIuLs51Dl5JVIl1HNqYw7gY/I= 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=kokgp7Ra; arc=none smtp.client-ip=198.175.65.20 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="kokgp7Ra" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879959; x=1794415959; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QS3TFWuwHYfnFtUUf2G1VSXpVmg82xEHmr0g8k6jmuw=; b=kokgp7Ra4KLFqiTFAmbXXhm7B30TbZLmLwaptOIXvVTnnBYYV+zef94F 1yigHdppD8bqLomBesWOZOox2UFzuucGYloKy37+IUWSvy1bdaaWTvXBr LQVaULiYwNzgak5mUD5kLz8kKdSQBNFkLcT7SadDqblZJ3SuiuAn+QPAT fPDnguGHFYAkG2X8Iab/oEb0HE7MA/DbA5FoqLuzp1lNcQLya16+rzzxP 3r7PQ/opgFgod2DaIgoZJLtZGNnCfV65ZEVQBSLBWpfVC/huUQqUdOT3A Csxt9JqdWPhOdM3+jwETqdpXWNE+muwzlQHeL21QQxjrn+mIdSqe0jlOi A==; X-CSE-ConnectionGUID: WNC8yBgbSCCLHUUwWkP0Vg== X-CSE-MsgGUID: bZEZ1S51S9OYHtFIxwJBzg== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="64647241" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="64647241" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:36 -0800 X-CSE-ConnectionGUID: BGLcAh3ITSGWFpZ05p/Tag== X-CSE-MsgGUID: RgQ7KHTuR+SBeIWZf20zgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="194202542" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa005.jf.intel.com with ESMTP; 11 Nov 2025 08:52:34 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 7575F99; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 3/7] ptp: ocp: Refactor ptp_ocp_i2c_notifier_call() Date: Tue, 11 Nov 2025 17:52:10 +0100 Message-ID: <20251111165232.1198222-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" Refactor ptp_ocp_i2c_notifier_call() to avoid unneeded local variable. Signed-off-by: Andy Shevchenko --- drivers/ptp/ptp_ocp.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 28243fb1d78f..1dbbca4197bc 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -4872,16 +4872,6 @@ ptp_ocp_i2c_notifier_call(struct notifier_block *nb, { struct device *dev, *child =3D data; struct ptp_ocp *bp; - bool add; - - switch (action) { - case BUS_NOTIFY_ADD_DEVICE: - case BUS_NOTIFY_DEL_DEVICE: - add =3D action =3D=3D BUS_NOTIFY_ADD_DEVICE; - break; - default: - return 0; - } =20 if (!i2c_verify_adapter(child)) return 0; @@ -4894,10 +4884,17 @@ ptp_ocp_i2c_notifier_call(struct notifier_block *nb, =20 found: bp =3D dev_get_drvdata(dev); - if (add) + + switch (action) { + case BUS_NOTIFY_ADD_DEVICE: ptp_ocp_symlink(bp, child, "i2c"); - else + break; + case BUS_NOTIFY_DEL_DEVICE: sysfs_remove_link(&bp->dev.kobj, "i2c"); + break; + default: + return 0; + } =20 return 0; } --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 F19ED1D6195; Tue, 11 Nov 2025 16:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879959; cv=none; b=Iu7aZbTO66vmvXj2ZdD5dbN/LViugzKR4SzDf+VNllkQcl61VAui746ooYMSnr6YIWU7hNM72I+ZSkt/URelm7p4369xCCgEnQxUgq+n8kynwMdk7Lnt+v5l56LNe/aI2I1D8ZQAvY7hT+INN6kt+rwF2WqotupZLvodo7J5zjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879959; c=relaxed/simple; bh=gMn0a0EVTO2keC8r5bAdD/NVSv2VYQzw6KrPmUQjum4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TNY073ox8xCOaHxObjJp0u7CJPmHH5jXsOiWLoAcCdhSOsAybBViHZvN+IyUVo8FCGZ8yDY9u3wxJkr/2tW90FLpiswASnWSTbzkAwn2OroTo2hRzmp39eBvmiqhUHpR6uTNraOSLXdPGuRmI28Dk6AqHV1lUTP9s8AquOZk3oM= 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=Ixoxb+Mr; arc=none smtp.client-ip=198.175.65.20 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="Ixoxb+Mr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879957; x=1794415957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gMn0a0EVTO2keC8r5bAdD/NVSv2VYQzw6KrPmUQjum4=; b=Ixoxb+MriwVmvtz/tiEFCSfQZAGiNLKR9t+55YhZLjjZS0dppcTQBfTP dLR6ktUl9j+sg7q8QlifD/YSfl1GGt90k75CuVhZGUFVUFEjQvNOSMgD+ 1X02iSn66cn7yfkc2o/Ydeb04ry6pmkvbVTo36OG0qQ9gfdBrFyGIevNh nv6aKuQj+R8QrtYJ1rdLTEAndAI6os4yKkW6LAgUCkRsdvKlaz2omt3+N wEU8tDZrYxlOkEFo1czOMOcqppZAU9hDMc1GaoRWTnHVeJfUEjyEw75dg mIkwgeJAc7hL/W/tw/FIASmMPTfVRI8E9nS+ddaj/1IGe1MWgmTHRQ1Ro A==; X-CSE-ConnectionGUID: t+9RrdfdTzyckgfNlPSxvg== X-CSE-MsgGUID: tSDiH/VqTxOQNl5AtDCdEg== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="64647249" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="64647249" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:36 -0800 X-CSE-ConnectionGUID: fQR50bBYQCGE2TBwk18Taw== X-CSE-MsgGUID: euX1PPzyRB+tdkNDo0/iig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="194202543" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa005.jf.intel.com with ESMTP; 11 Nov 2025 08:52:34 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 79B859A; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 4/7] ptp: ocp: Apply standard pattern for cleaning up loop Date: Tue, 11 Nov 2025 17:52:11 +0100 Message-ID: <20251111165232.1198222-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" The while (i--) is a standard pattern for the cleaning up loops. Apply this pattern where it makes sense in the driver. Signed-off-by: Andy Shevchenko Reviewed-by: Vadim Fedorenko --- drivers/ptp/ptp_ocp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 1dbbca4197bc..67a4c60cbbcd 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -4821,8 +4821,7 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_= device_id *id) =20 return 0; out_dpll: - while (i) { - --i; + while (i--) { dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->= sma[i]); dpll_pin_put(bp->sma[i].dpll_pin); } --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 5913A377E95; Tue, 11 Nov 2025 16:52:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879962; cv=none; b=Iiroxzmca8DLOkeRAeQ5b06BqilWqTFX5WZsOtKulhYXa/Im9QWPpXdmF3JjEZMK4+8eMicxg2kB3vw91Ik36TjFB8EhIn4CQ2CJnEhKG/yhGREkEdUf6wPlMSFB2bpYquvhp6a5cYWIUEBjHgJD/oQNxFuihyya0aN/rp2hYVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879962; c=relaxed/simple; bh=+mGRztWv8Nj0pIs9FKNvN2RogIeRUEerQvdBRdeidr8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tPi1Y9N+L14P5rOn0Xdyw577Z5t5KG72qbxUKjogwY3eGzvl8j7Ti4alBWjfNpwAnERcjj7KkiFBjAt1T4UJBhvbKCCeKsfUx2xh8YhMa6asrLWfmvb4/MCesPx+JuZ2c4mUImFGc48kX+MTWhAsTAUFksh3DGMlh/ABb+se8j8= 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=cnai+Czy; arc=none smtp.client-ip=198.175.65.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="cnai+Czy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879960; x=1794415960; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+mGRztWv8Nj0pIs9FKNvN2RogIeRUEerQvdBRdeidr8=; b=cnai+Czy8OLJ5knLNu5OBv+2ekgJiHk7OUr5zSsa45VXSZGgv+q3+6a4 04uWCB2lrKrY9raUvtXy4aGzL8m4jIchyG06Mb6p8byChfy7Ht58J2wWc EepfROwXbSipQGJMTcZ8AwjkB1VYPAUkcS5RQzk2npIjMSRUHoSD+7aE1 YcioA/3tzvL6yfQ1hVQ8BkP3sKxtJ+A2exlISeN8bvT5JKCVNWYU1gXVO e/40vzhtg6UrbZpK/JtgFm7AThpOvFhu0lUCBGfpsYGcQfKw4Yf+sxCF7 qhOkYti+oSVaiHlaDFlEH7Ph9Mdnuk3S4jxEKSItFJk5ABvIrb0VZx8mv A==; X-CSE-ConnectionGUID: mq6Qb1Y2QnKyFn9UwD60uQ== X-CSE-MsgGUID: tXxOD7lgSp2odWCdFXtGyA== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="76049265" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="76049265" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:40 -0800 X-CSE-ConnectionGUID: XUmvPO34Q86uSgoPcELyxw== X-CSE-MsgGUID: 8knKY+ElQkeNWe6LEoQ1JQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="193112859" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa003.jf.intel.com with ESMTP; 11 Nov 2025 08:52:38 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 7E2499B; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 5/7] ptp: ocp: Reuse META's PCI vendor ID Date: Tue, 11 Nov 2025 17:52:12 +0100 Message-ID: <20251111165232.1198222-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" The META's PCI vendor ID is listed already in the pci_ids.h. Reuse it here. Signed-off-by: Andy Shevchenko Reviewed-by: Vadim Fedorenko --- drivers/ptp/ptp_ocp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 67a4c60cbbcd..4c4b4a40e9d4 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -25,8 +25,7 @@ #include #include =20 -#define PCI_VENDOR_ID_FACEBOOK 0x1d9b -#define PCI_DEVICE_ID_FACEBOOK_TIMECARD 0x0400 +#define PCI_DEVICE_ID_META_TIMECARD 0x0400 =20 #define PCI_VENDOR_ID_CELESTICA 0x18d4 #define PCI_DEVICE_ID_CELESTICA_TIMECARD 0x1008 @@ -1030,7 +1029,7 @@ static struct ocp_resource ocp_adva_resource[] =3D { }; =20 static const struct pci_device_id ptp_ocp_pcidev_id[] =3D { - { PCI_DEVICE_DATA(FACEBOOK, TIMECARD, &ocp_fb_resource) }, + { PCI_DEVICE_DATA(META, TIMECARD, &ocp_fb_resource) }, { PCI_DEVICE_DATA(CELESTICA, TIMECARD, &ocp_fb_resource) }, { PCI_DEVICE_DATA(OROLIA, ARTCARD, &ocp_art_resource) }, { PCI_DEVICE_DATA(ADVA, TIMECARD, &ocp_adva_resource) }, --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 9D2E71AA7BF; Tue, 11 Nov 2025 16:52:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879962; cv=none; b=ITM7NcN9AjVE+SJMrrhN4NuiAw/tvngbnAL+2CpMjynuwvSOYf6CxWYX3swCVpCQWSboSzjdPGxJf5WsCXDkz2NY2VIccCx94zIE7FSXiyW0vsn0jiMVIIcIEBUu2ejDRTNpD8PP7W2+s8AgiXJ83XH6Z6JPpiZv/J2XV2quJjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879962; c=relaxed/simple; bh=aazcxWLrKHyY7rbPLqqqaWDYNKAua34+BWSjNQwtzlg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bHP7Rf9pohdV5+TXN2Hx+TuT27kOY5cKUmlFfgoJMuVqK5Ql2bRDEVZIOpU0UKSTOrSX5olveG66DpP4I26lhchWNggjqQqEUYip/P7viE84ZQLPLFy/VWJamXj0CEqIuPRL7xn5/6deu6kl8x0ARELmCQh7fKq7d9sQAlqxIwQ= 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=SPz64imb; arc=none smtp.client-ip=198.175.65.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="SPz64imb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879960; x=1794415960; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aazcxWLrKHyY7rbPLqqqaWDYNKAua34+BWSjNQwtzlg=; b=SPz64imbLAXDYSVxflEXgL4fmWAcKqzEWh2bdUXiz7++YjmQwj3nWv9U UwHkMx3LGyhPPd+pL6buEy4Qwcv7n/EXrC0tq1LmVv8E7k8+f//SDH9yp 83zK6EC+B0K9Ra/Ml2P+LQz+a9oVorKRzvZE0Ysulg05t0aEzfBPU8ps+ oeQb/JG0AI8IvYlVHQkPp6xRXt208q26/Y3N2Nul66pJJUWifcrRMTMVe G5JtBCqNUAOLheKR1oA2exwyz1aw/z0G7D8gME8qfMhWgCdvIvsEmjj0z 3ZkKJREPUdQapFmK/GEe2llSS43YuKZpexNbtqBrQOUYz1tBGf3yybwR4 w==; X-CSE-ConnectionGUID: G7oPcq1lT1anAZzWV4veTA== X-CSE-MsgGUID: weWh5couRLGQF47JBFIBEA== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="76049256" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="76049256" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:40 -0800 X-CSE-ConnectionGUID: E96FJg6bTqKaqOC8SqhpLg== X-CSE-MsgGUID: LEr3mtVAQKie8tVgyvTT4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="193112858" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa003.jf.intel.com with ESMTP; 11 Nov 2025 08:52:38 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 82A229C; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 6/7] ptp: ocp: Sort headers alphabetically Date: Tue, 11 Nov 2025 17:52:13 +0100 Message-ID: <20251111165232.1198222-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" For better maintenance sort headers alphabetically. Signed-off-by: Andy Shevchenko --- drivers/ptp/ptp_ocp.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 4c4b4a40e9d4..984293a2a696 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -2,28 +2,28 @@ /* Copyright (c) 2020 Facebook */ =20 #include +#include +#include +#include +#include +#include #include +#include +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include =20 #define PCI_DEVICE_ID_META_TIMECARD 0x0400 =20 --=20 2.50.1 From nobody Sun Feb 8 04:11:57 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 4CA49393DE4; Tue, 11 Nov 2025 16:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879964; cv=none; b=uRPdcyzFFMyltnAxwu1E//uqIForctapTXm9t/7CjDwaOpKaYH2sJNBqUxW30AMmCk4ac921B71ZYJxNy1MTA61lwigdXa3m6OJppI4D+G+3vQPwJdwek3qxZEzFdMfANRBQYNXWGOi6/sqmvTZ1LcuSbX1aX8pYRdjnVo0K9NM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762879964; c=relaxed/simple; bh=CNbIw9fNzTPV1RkVKp4DE66YjQbF8SqInj7PpgPBGEc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LMBvOo9UK3N02U4j7ck52+/YHXu34MW4uumi4IIVskqf1Jub6i/MqUaqmLuqhjCB7EHB3xAhpQ/c/o8YYirV5VILIbaynKgUQEcVPvq1ojv08ya6olbJ0MuJFPSuX5iuJqAXX1qMJC8dhP3AHLfojrGGoNRbU6mmdGMXliaTLNY= 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=Oo53m6Jr; arc=none smtp.client-ip=198.175.65.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="Oo53m6Jr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762879962; x=1794415962; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CNbIw9fNzTPV1RkVKp4DE66YjQbF8SqInj7PpgPBGEc=; b=Oo53m6Jr8TNEkq6SMDH6KbKk+lItpt9TE9g/PGwjxrQbXFLipCjYQ6w2 oQPreMYMMZdHJ0QSScgr99fayQrWdBwMduFbjCpxc8gNCPTa0ZIhCOdqX xMiW23tdxHMrII8QQ85hPFmVvYM6tA6lF76kvYF02KxFKvWWWjug2VByC PFo5vfOEUTs3hfHuYOoxa3JyQ9UPO+vXWaraOc/a/RvuSPHMjGD+Da0lB z81dyXnuinCQVMSYL2N0vhPvhEFxSv0quGzUVl0mM04O7EgtkJ4IllQNR eH4PjJHa6WGVMNECH3bDkTTTB+yU6WA1CiNWipM93SezNHx1e1OS/D4tH A==; X-CSE-ConnectionGUID: gb2HY82GQCiDEnetdTGo7w== X-CSE-MsgGUID: n9ECiYVFRU26Lz9kp0wODg== X-IronPort-AV: E=McAfee;i="6800,10657,11610"; a="76049278" X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="76049278" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2025 08:52:40 -0800 X-CSE-ConnectionGUID: 6JGWJySLSmOq6t4wa7aCTQ== X-CSE-MsgGUID: jEloUee4QJexVjRb9dIPqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,297,1754982000"; d="scan'208";a="193112860" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa003.jf.intel.com with ESMTP; 11 Nov 2025 08:52:38 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 8747C9D; Tue, 11 Nov 2025 17:52:33 +0100 (CET) From: Andy Shevchenko To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Richard Cochran , Jonathan Lemon , Vadim Fedorenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Shevchenko Subject: [PATCH net-next v1 7/7] ptp: ocp: don't use "proxy" headers Date: Tue, 11 Nov 2025 17:52:14 +0100 Message-ID: <20251111165232.1198222-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251111165232.1198222-1-andriy.shevchenko@linux.intel.com> References: <20251111165232.1198222-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" Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko --- drivers/ptp/ptp_ocp.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index 984293a2a696..4b18f1e5ae9a 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -1,28 +1,53 @@ // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2020 Facebook */ =20 -#include +#include +#include #include #include +#include #include #include +#include #include #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include +#include #include #include #include #include #include #include +#include #include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + #include =20 #define PCI_DEVICE_ID_META_TIMECARD 0x0400 --=20 2.50.1