Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3937917pxj; Mon, 21 Jun 2021 09:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9tmVqUNF3tF8x5r7OkvAZY+VGzL0pTFAXSKTWc1riKiAPra4vT0g4RCzfa627/l/qZXQU X-Received: by 2002:a05:6402:706:: with SMTP id w6mr10425968edx.176.1624293975681; Mon, 21 Jun 2021 09:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293975; cv=none; d=google.com; s=arc-20160816; b=VjNG1uRXu9MMg8lc8YpdwiPlISso9Hv4N3ps4iOcQ7UfnQejf7jhtzlq3mQPk02BnQ EA0ghU9hRBdVwnAhiPwLUKpzeMw3WXE5UxRnHKBgWnuEdaConlOfJUjO9OkltDVB1lxv y0UdUDXgJAs15KrkQZcUzALrbm5KcJvNuiZFlFK1gcz390CdTG+e3ayna0LwQMI1vO/Q LqM8cjIyw6jf5VBT/qQm2nDs0ONRBi46e1hiGsbTPJgzSFb3vnbrmf48nWU0Lx36cFOP L5B8rPZziEsGj0nB2VP7nkUxPVvn4YFAeQ3nLYGvwUpbYDCDKjJz9uPsSTfXBEBk2lr9 aJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lg6EMRoOM/w3afbsd9h68awMT3+eyclKxZDweMHcHxY=; b=zjfsf8vqfqrwMlJMDGsc0aslg5tjEXMMXj1NnO/GDH+qcR+s8G1ZNm3zbXx6i2vr6q B9Ykm9dWWLKW0k5lhr/FUTU3MLryd7ixBI0Jbeh+n0Rytyv47p5i7wHn7FdX1rRK+nqg T4Okd9HD6+mKehW6LFCxZqfsDvlhVKy57tUMhuslIZ/LrAUrvaS/E+Fjlyt9ztOKqq5u QHRAr8DqyF/6tYCgASk7aOcYrNPlUj355fdrl3h9DpNvilCft5TErpx4eeqkJNghbZzY qwxsRxDMrPeXMx3Na1Ju1rtQBeEIKsvTIhLqwdbafRMSWHKqFvwM7zQ+zLgQi4z3RMfI MWDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RsH3WVBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs19si11200240ejb.398.2021.06.21.09.45.52; Mon, 21 Jun 2021 09:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RsH3WVBj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbhFUQnl (ORCPT + 99 others); Mon, 21 Jun 2021 12:43:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:33480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233504AbhFUQj5 (ORCPT ); Mon, 21 Jun 2021 12:39:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 081906142E; Mon, 21 Jun 2021 16:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293016; bh=WljdLn6tRNJfLSvBbkYFZ/02+HzyG99SGElEelraxj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RsH3WVBj2RAkzma+o2wLmQ6fsMJ2Hwo0zIJwRWQIuVT/L+AHroFP9szIxSpqpi1Ko UzFJO9LO2ItmwXLNcS53K1ergrltco+/PlCAR1RXRArAtn+5zR5LoPCZoZCJtA0Aap IZkH4oBNAUikOMdKmG4k4t/VlOyLz2CGPImHKsII= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joakim Zhang , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 068/178] net: fec_ptp: fix issue caused by refactor the fec_devtype Date: Mon, 21 Jun 2021 18:14:42 +0200 Message-Id: <20210621154924.839715960@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joakim Zhang [ Upstream commit d23765646e71b43ed2b809930411ba5c0aadee7b ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- 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 1753807cbf97..ce8e5555f3e0 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.30.2