From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
To: Jan Sokolowski <jan.sokolowski@intel.com>,
<intel-wired-lan@lists.osuosl.org>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v2 6/6] ice: refactor ice_ptp_hw to make functions static
Date: Tue, 1 Aug 2023 14:26:25 +0200 [thread overview]
Message-ID: <3d3a14cd-95d6-b400-fb82-8661862191aa@intel.com> (raw)
In-Reply-To: <20230801115309.697331-7-jan.sokolowski@intel.com>
On 8/1/23 13:53, Jan Sokolowski wrote:
> efactor ice_ptp_hw.c/h in order to make as many methods
"efactor" is a typo :)
anyway I would try to use different word (for whole series), as
"refactor" suggests that there are possibly some changes other than just
"+static" and "move function up".
For this particular patch I would suggest:
ice: mark some ice_ptp_hw functions static
?
Also, for whole series, you have to CC netdev ML when sending patches to IWL
> as possible static.
>
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 6 +++---
> drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 3 ---
> 2 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp_hw.c b/drivers/net/ethernet/intel/ice/ice_ptp_hw.c
> index dd2fad831924..fd19afaf9c85 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ptp_hw.c
> +++ b/drivers/net/ethernet/intel/ice/ice_ptp_hw.c
> @@ -295,7 +295,7 @@ static bool ice_is_40b_phy_reg_e822(u16 low_addr, u16 *high_addr)
> *
> * Read a PHY register for the given port over the device sideband queue.
> */
> -int
> +static int
> ice_read_phy_reg_e822(struct ice_hw *hw, u8 port, u16 offset, u32 *val)
> {
> struct ice_sbq_msg_input msg = {0};
> @@ -372,7 +372,7 @@ ice_read_64b_phy_reg_e822(struct ice_hw *hw, u8 port, u16 low_addr, u64 *val)
> *
> * Write a PHY register for the given port over the device sideband queue.
> */
> -int
> +static int
> ice_write_phy_reg_e822(struct ice_hw *hw, u8 port, u16 offset, u32 val)
> {
> struct ice_sbq_msg_input msg = {0};
> @@ -1089,7 +1089,7 @@ ice_ptp_prep_phy_time_e822(struct ice_hw *hw, u32 time)
> *
> * Negative adjustments are supported using 2s complement arithmetic.
> */
> -int
> +static int
> ice_ptp_prep_port_adj_e822(struct ice_hw *hw, u8 port, s64 time)
> {
> u32 l_time, u_time;
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp_hw.h b/drivers/net/ethernet/intel/ice/ice_ptp_hw.h
> index 3dc1d6e5468c..4e3c1382c477 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ptp_hw.h
> +++ b/drivers/net/ethernet/intel/ice/ice_ptp_hw.h
> @@ -144,11 +144,8 @@ int ice_ptp_init_phc(struct ice_hw *hw);
> int ice_get_phy_tx_tstamp_ready(struct ice_hw *hw, u8 block, u64 *tstamp_ready);
>
> /* E822 family functions */
> -int ice_read_phy_reg_e822(struct ice_hw *hw, u8 port, u16 offset, u32 *val);
> -int ice_write_phy_reg_e822(struct ice_hw *hw, u8 port, u16 offset, u32 val);
> int ice_read_quad_reg_e822(struct ice_hw *hw, u8 quad, u16 offset, u32 *val);
> int ice_write_quad_reg_e822(struct ice_hw *hw, u8 quad, u16 offset, u32 val);
> -int ice_ptp_prep_port_adj_e822(struct ice_hw *hw, u8 port, s64 time);
> void ice_ptp_reset_ts_memory_quad_e822(struct ice_hw *hw, u8 quad);
>
> /**
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
prev parent reply other threads:[~2023-08-01 12:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 11:53 [Intel-wired-lan] [PATCH iwl-next v2 0/6] ice: staticization refactor Jan Sokolowski
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 1/6] ice: remove unused methods Jan Sokolowski
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 2/6] ice: refactor ice_ddp to make functions static Jan Sokolowski
2023-08-01 14:05 ` kernel test robot
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 3/6] ice: refactor ice_lib " Jan Sokolowski
2023-08-04 21:08 ` Tony Nguyen
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 4/6] ice: refactor ice_vf_lib " Jan Sokolowski
2023-08-01 13:25 ` Przemek Kitszel
2023-08-04 21:08 ` Tony Nguyen
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 5/6] ice: refactor ice_sched " Jan Sokolowski
2023-08-01 11:53 ` [Intel-wired-lan] [PATCH iwl-next v2 6/6] ice: refactor ice_ptp_hw " Jan Sokolowski
2023-08-01 12:26 ` Przemek Kitszel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3d3a14cd-95d6-b400-fb82-8661862191aa@intel.com \
--to=przemyslaw.kitszel@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jan.sokolowski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox