From patchwork Sun Feb 25 12:51:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 129516 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp2580463lja; Sun, 25 Feb 2018 04:53:46 -0800 (PST) X-Google-Smtp-Source: AG47ELss9VIg/W+hRtIAJ0uHV9GlIZ1qMHfPeJDWljhjo3RxiAvD6xC7pxyr9pH0/oYAhsFXi0QT X-Received: by 2002:a17:902:14b:: with SMTP id 69-v6mr2117764plb.209.1519563226735; Sun, 25 Feb 2018 04:53:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519563226; cv=none; d=google.com; s=arc-20160816; b=f68Fy0NAzgriCIUuT7Wy6uDV7vFvwosrhx51khjoi4vs1BvUSSCEp1amE8PA0AhnIH ZTRQXJGAm8/RSqhcPYthUudwNKdNg49sLIIQMrUjSUnCeKjUUJS9dqF/HHGwhQWsoc/p gCFNRIizHskZfo2W4nI2ZbPlPE770o79MBZSPc2fsoqA/CjlVXc3bv8mRABYhmQaotwJ LPCpj1JPDvy2inSBftG3p+h2ihbSlD0ZMH80Z5X3Z64vPkArK89JMpOZpWnmBWlKiz3J Tba7LJXAbdudecpaF/b/btxBvgnDuWHlKuIBoaDEifI25MN3lzqhBw8k3xQse0nGNY1O NLmw== 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:arc-authentication-results; bh=65pIqRKbRw+20wrU44CFgeNyqw0h56hCM46wiypcXro=; b=HFnWMQrEXuj66sOWjGvzqyRDKCuP6RiKqFeOvxy1FhNtMLQV2UWXdsAFphHxtwOcZ4 nwagFYRkBgzk2xb4pvMYl8RUv05opNM97RGzMyhtQba1hUEkuF+ow36h89fIljuqyj11 ji/XQKe+3lj8XM7t0jQ9oPuaf6mY8JutjXb1H5SbEpKxDTE74PLUTxhCicYIOWR6ZvJj 6U0/54+ZkaOkyet1S6N2BFX00g3Nu7d16+e7EE4Z+9Ckzya02p5BusHOVfGdEOv6/uco ppUIKz0KdJQnbaFSwI8dcG7DgIQX0vXEdvQud181LqaBd0TKSftTY6bbQ67ukRyjVKJl ndaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dtF3NZoQ; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si3537267plt.524.2018.02.25.04.53.46; Sun, 25 Feb 2018 04:53:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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=@linaro.org header.s=google header.b=dtF3NZoQ; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751712AbeBYMxm (ORCPT + 8 others); Sun, 25 Feb 2018 07:53:42 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46132 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbeBYMxk (ORCPT ); Sun, 25 Feb 2018 07:53:40 -0500 Received: by mail-lf0-f65.google.com with SMTP id r80so18425400lfe.13 for ; Sun, 25 Feb 2018 04:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=65pIqRKbRw+20wrU44CFgeNyqw0h56hCM46wiypcXro=; b=dtF3NZoQJrYGQyaIE0YhbNioeieJcFF0Vtj5Vk4Ve9m4vFUE+HiNflKrZFeSUeDrri 6AK7wxR0eTKGmopbj1Emr9OxQV49aoF30ec/Eu/eKI+b9zShBLa72HtTI7jEZy7pdzV+ 8ugotAPngMXGb0pmosmTSxWUdcQG1JNTJVOBg= 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=65pIqRKbRw+20wrU44CFgeNyqw0h56hCM46wiypcXro=; b=ApaCJS5DDiE4uT0uHSzy2qyfqBzE6GkK+o4cxjFVw6Ams5+ZAjsb1KU/GKlchf16LR cQNHd31yhnh3z6v3/upKFVnfNjf+BC6oRfyTkjKCRKt37wcXdgZ0nVFJ65brPxCO+na1 9odFK84sZdESlzEIK5+8algEOqz2vfYAcvMS9ZanlRjCrhbNRmvhZ2HxAZQjItnnfKic +ItroJRr2ME408VLQNG/W0MKHVXusGKUiyEubJLJkeRe+4ccPVEQR7lhp/Zs109IkvTE YBOBkXgPmDRj71MGCxIdHXC3tlFmIAzLepAu6ow4eH0AevJDXkGORFTE6RsHYWcrC2pb mydA== X-Gm-Message-State: APf1xPCoz6DsyVRYsl+t9bIfv+BdkzolUuyR7Pw1Q4QPr4DH7lM3wLzc cvxEMa8gNuUTrlUIuroWymLfcQ== X-Received: by 10.25.159.211 with SMTP id i202mr3500289lfe.123.1519563219511; Sun, 25 Feb 2018 04:53:39 -0800 (PST) Received: from localhost.localdomain (c-cb7471d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.116.203]) by smtp.gmail.com with ESMTPSA id 5sm1456574lfp.17.2018.02.25.04.53.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Feb 2018 04:53:38 -0800 (PST) From: Linus Walleij To: Andrew Lunn , Florian Fainelli , "David S . Miller" Cc: netdev@vger.kernel.org, Laurent Pinchart , Linus Walleij Subject: [PATCH net-next 0/5] Modernize bitbanged GPIO MDIO Date: Sun, 25 Feb 2018 13:51:27 +0100 Message-Id: <20180225125132.25275-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This kills off the platform data support from the bitbanged GPIO-based MDIO driver and moves it over to using GPIO descriptors exclusively. We are certainly not going to merge any more platforms into the kernel using platform data, and nothing is using it at the moment. The only concern would be out-of-tree platforms, and those are not the concern of the kernel community. They need to move to use device tree (or ACPI etc) like everyone else. This was tested on the bit-banged GPIO MDIO on the D-Link DNS-313 and works fine for me. Linus Walleij (5): net: mdio-gpio: Localize platform data net: mdio-gpio: Allocate state in probe() net: mdio-gpio: Remove non-DT probe path net: mdio-gpio: Merge platform data into state net: mdio-gpio: Move to gpiod API MAINTAINERS | 1 - drivers/net/phy/Kconfig | 2 +- drivers/net/phy/mdio-gpio.c | 151 ++++++++++---------------------- include/linux/platform_data/mdio-gpio.h | 33 ------- 4 files changed, 47 insertions(+), 140 deletions(-) delete mode 100644 include/linux/platform_data/mdio-gpio.h -- 2.14.3