Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp874083ybb; Wed, 25 Mar 2020 11:14:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsKV9tYYRWdSczhViw0TqXLO2nrpxe7jRPWKF3Fb8enp1TzLyByTp7i7bvlagdVkBGj9Sm6 X-Received: by 2002:a05:6830:118d:: with SMTP id u13mr3252523otq.41.1585160094151; Wed, 25 Mar 2020 11:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585160094; cv=none; d=google.com; s=arc-20160816; b=SgRc9KxqssPsVX0RU46tK1BvPoY/9wVcM1FevNMYEzpK7ZNiH6mSIrrCQlOvduJFqc gwM1a//T5j6VY+pi3nsUWbcWy/kaY8r9EZdTseuo2HPqoayXS7opD4AvwUxGib0Di8Lz HlyYFbpA3WfByWaUPB5za7DKVb+It+0DgquTWG7xiToGK2xzxZCvxJxNjMl8jJ8wjIfb DYGE9J7prsDgksFeYN1NsOlf33pi6qx50s8Kp3Un/fb+ZY354pqIkXaZJdqp7JEBHh6m GLv+7+dqCTJd+3hE503c8xArrp7aeQ05BVk08RJd1wXB3MsjHXNKZTPHejQDn5fDLIOt czbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=BlUfBdbKLhRxMxTSsuT+ab6HxEoROd1o/+3/SBIv3Ug=; b=IWPRLvxQFK6b1ZxGekrujU8HUYo9ueoql7cBsuCo/UTKvwNPw0n0U5y7hYFxlyouCv idLMuvBAYkjThxcxlGwhtrJO7F0bo3eJdjgM6eApNVurpb2syZtYsCTaeSQoWyXzwD1D Etk7k5GbHgs4wq4fTY6SxsFyTiSHNZ6/g1H+1UqQNLLBXr0WpJgNYd9OHI3DdfotajHd NesPwXDs/kzrb+B2xko3uWPizrG8fB68NO4CMoavcFyF57oUYLGhHvyNXspJO2um4Y0H s80Uml5tWNAs2veRvxKkl39wf91Ax7m7l9NWmqKbOGZCbtls4tAVt+OlvJk+nErDD/AM B19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=PUFK7JiN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si117897oiz.209.2020.03.25.11.14.40; Wed, 25 Mar 2020 11:14:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=PUFK7JiN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727792AbgCYSMB (ORCPT + 99 others); Wed, 25 Mar 2020 14:12:01 -0400 Received: from mail-wr1-f100.google.com ([209.85.221.100]:39063 "EHLO mail-wr1-f100.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbgCYSMB (ORCPT ); Wed, 25 Mar 2020 14:12:01 -0400 Received: by mail-wr1-f100.google.com with SMTP id p10so4398406wrt.6 for ; Wed, 25 Mar 2020 11:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowbird.group; s=google; h=from:to:cc:subject:date:message-id; bh=BlUfBdbKLhRxMxTSsuT+ab6HxEoROd1o/+3/SBIv3Ug=; b=PUFK7JiNhpsF2FlrU1Q9bh39ZOI6jNjKfa1GMbgqJOjXFoLTg980Q//l/B6dZdYmJr Q1n/bHLR6DCJwHRCcp3BW0q89P7eAy5h4MF9FUYE3bExSkbjn2vd24AHhQdrIRCXrREv SpufX1YryF2O6P0vir4uhGB4YqI+QvrD9nz60B5wFNvz4GcgLupvRBOEUivlYPd/tnxy eBgUgyW0yvic953d8u1LD/EtN3S6kyu1SEP8s5pr4SQD2LQWXOGQFvzm6lJyriiCDoUI i5w3ehwOpqYOIiPZ15f9MOlMWpaQStee/VI7tF6cry9oQ4/dRn77iFSq6Ueh5CrsRkYp KNNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BlUfBdbKLhRxMxTSsuT+ab6HxEoROd1o/+3/SBIv3Ug=; b=DDFXJ4w5KZMfsclrzLmQ1o08vq4MI+IZSo2miZXejA8lZHWGpKDrXhgtQ/LHVUSCPe O/b4SBQVvgRUJS3aYBr1wWAKfaPm51GKoytZexB94LCDZqNOAjLFyC6zBMLQe/KLPxn7 InmKacGeEQAoGviYeRGNRi4obEsfIsfMRXSuluteBbKaeDlfxf9uPeaJrl2KF4CCLeDW 4Dmpa3gjFhLBEOb2cnD0bIDoVVD89ARZUuTR1AIYrgQ1JFkWPaoMuzf4EZFVLb1k/fwd 0udISgNkCg0jq6TSSloQu2vPqQQnrATwEcM9wl0hw4bod9RD7piiqrTmt36efbWbwRPS lR5Q== X-Gm-Message-State: ANhLgQ2iKL8FATNBU+pbD5clbHkMG/opejbuujdGi6p0y/crVQ+L2TEg UwI4GmHakeu6sMmxPqmjxzuaz415LjC6Vme2Uhw1FTxGabk4 X-Received: by 2002:adf:e34c:: with SMTP id n12mr4466668wrj.97.1585159918373; Wed, 25 Mar 2020 11:11:58 -0700 (PDT) Received: from mail.besancon.parkeon.com ([185.149.63.251]) by smtp-relay.gmail.com with ESMTPS id a140sm2717wmd.22.2020.03.25.11.11.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 25 Mar 2020 11:11:58 -0700 (PDT) X-Relaying-Domain: flowbird.group Received: from [172.16.13.190] (port=39524 helo=PC12445-BES.dynamic.besancon.parkeon.com) by mail.besancon.parkeon.com with esmtp (Exim 4.71) (envelope-from ) id 1jHAVR-0003Oy-P3; Wed, 25 Mar 2020 19:11:57 +0100 From: Martin Fuzzey To: Fugang Duan , Rob Herring , Shawn Guo , "David S. Miller" Cc: netdev@vger.kernel.org, Fabio Estevam , linux-kernel@vger.kernel.org, Sascha Hauer , NXP Linux Team , devicetree@vger.kernel.org, Andrew Lunn Subject: [PATCH v2 0/4] Fix Wake on lan with FEC on i.MX6 Date: Wed, 25 Mar 2020 19:11:55 +0100 Message-Id: <1585159919-11491-1-git-send-email-martin.fuzzey@flowbird.group> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes WoL support with the FEC on i.MX6 The support was already in mainline but seems to have bitrotted somewhat. Only tested with i.MX6DL Changes since V1: Move the register offset and bit number from the DT to driver code Add SOB from Fugang Duan for the NXP code on which this is based Martin Fuzzey (4): net: fec: set GPR bit on suspend by DT configuration. ARM: dts: imx6: Use gpc for FEC interrupt controller to fix wake on LAN. dt-bindings: fec: document the new gpr property. ARM: dts: imx6: add fec gpr property. Documentation/devicetree/bindings/net/fsl-fec.txt | 2 + arch/arm/boot/dts/imx6qdl.dtsi | 6 +- drivers/net/ethernet/freescale/fec.h | 7 + drivers/net/ethernet/freescale/fec_main.c | 149 +++++++++++++++++----- 4 files changed, 132 insertions(+), 32 deletions(-) -- 1.9.1