lkml.org 
[lkml]   [2021]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net 2/2] net: fec_ptp: fix issue caused by refactor the fec_devtype
    Date
    Commit da722186f654 ("net: fec: set GPR bit on suspend by DT configuration.")
    refactor the fec_devtype, need adjust ptp driver accordingly.

    Fixes: da722186f654 ("net: fec: set GPR bit on suspend by DT configuration.")
    Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
    ---
    drivers/net/ethernet/freescale/fec_ptp.c | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)

    diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c
    index 7326a0612823..d71eac7e1924 100644
    --- a/drivers/net/ethernet/freescale/fec_ptp.c
    +++ b/drivers/net/ethernet/freescale/fec_ptp.c
    @@ -215,15 +215,13 @@ static u64 fec_ptp_read(const struct cyclecounter *cc)
    {
    struct fec_enet_private *fep =
    container_of(cc, struct fec_enet_private, cc);
    - const struct platform_device_id *id_entry =
    - platform_get_device_id(fep->pdev);
    u32 tempval;

    tempval = readl(fep->hwp + FEC_ATIME_CTRL);
    tempval |= FEC_T_CTRL_CAPTURE;
    writel(tempval, fep->hwp + FEC_ATIME_CTRL);

    - if (id_entry->driver_data & FEC_QUIRK_BUG_CAPTURE)
    + if (fep->quirks & FEC_QUIRK_BUG_CAPTURE)
    udelay(1);

    return readl(fep->hwp + FEC_ATIME);
    --
    2.17.1
    \
     
     \ /
      Last update: 2021-06-16 11:16    [W:3.524 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site