realtek: pcs: 6.18: fix neg_mode handling
Between 6.12 and 6.18, neg_mode moved from struct phylink_pcs to a parameter passed to pcs_get_state. Adjust the implementation accordingly. Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21181 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
48f90025a0
commit
af50e4d6c8
@@ -3823,7 +3823,8 @@ static int rtpcs_931x_init(struct rtpcs_ctrl *ctrl)
|
||||
|
||||
/* Common functions */
|
||||
|
||||
static void rtpcs_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state)
|
||||
static void rtpcs_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
|
||||
struct phylink_link_state *state)
|
||||
{
|
||||
struct rtpcs_link *link = rtpcs_phylink_pcs_to_link(pcs);
|
||||
struct rtpcs_ctrl *ctrl = link->ctrl;
|
||||
@@ -3995,7 +3996,6 @@ struct phylink_pcs *rtpcs_create(struct device *dev, struct device_node *np, int
|
||||
link->port = port;
|
||||
link->sds = sds;
|
||||
link->pcs.ops = ctrl->cfg->pcs_ops;
|
||||
link->pcs.neg_mode = true;
|
||||
|
||||
ctrl->link[port] = link;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user