Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp633387ybg; Thu, 19 Mar 2020 06:09:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuDt0yUyTWiIFusHpY7RukEORFQptCLdVXs7prXPBE1VPnIc3kkPIWhDPmc2WjJFe6ehG+t X-Received: by 2002:aca:b803:: with SMTP id i3mr2179090oif.92.1584623367796; Thu, 19 Mar 2020 06:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584623367; cv=none; d=google.com; s=arc-20160816; b=X0U4X6Gq46XiyNNKBpNhg00uz54RDp3+3qS4SwtNUMmif9TMhgmKElzqKV4vIwp/rj P6s4plLaPc3gPPNuJlXH/IFxsEPJCs5xQmGK6/QxxhJ94/qBk7wBJqm6ZgH6/1MLZMAz fFtagT0z7w4HaHzhfPu0M5VT+MN+DWkqEVoMe6ndZbo2Q4xSLL0pAZPqwEnaGdjgz2Yt l7MbOS3JLw/P/nvwgmoyqFI7oeLe732t4w0uB0+OZuzf7Z4kvlk7wXcOS8xxxINRUdvA Tg1y9iP1Qaci40ePs6WFAvkFBDrnU+7TpJVIFmX8Nn8tjxGdE+GhjLg8tHJId9LDTsYw APMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ujlc2IsOWg+zAT5/mB42rpJ480jl5EWOpyaI5ymT8dY=; b=a8USWSaT5u6+8OIcys/C+Fn3EaCFuKICC1AWcjYGLAa5649StO5c5Aw/2hg5GS0UlI 16OcY3W8XTDW+pWr82XpwmG24/fTKFzTz4erx7Tonw3P/qzTL22yTt3UpjRr1/Y63lIP hF5akA9rB4HRTD3ehvfH56CCADRCyW6ss3eu6yPVww4od31dEucJ6dfw6OMEyr+XoI/b C0lL0tqydIN8ekMThBXPetqTLXSv6wYQKHl4zBiR8oUua87KVk8saGH734BPSMuMx8Bp hge5osfKO4MM7lHRg5zWi0WsrvuHuZ+u3FccejZfodcwOSh/sTf3mALxUdBd/J9wfVuu OLaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si1185090otg.84.2020.03.19.06.09.12; Thu, 19 Mar 2020 06:09:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727995AbgCSNHp (ORCPT + 99 others); Thu, 19 Mar 2020 09:07:45 -0400 Received: from foss.arm.com ([217.140.110.172]:34986 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727982AbgCSNHn (ORCPT ); Thu, 19 Mar 2020 09:07:43 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DF1A30E; Thu, 19 Mar 2020 06:07:42 -0700 (PDT) Received: from [192.168.1.123] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAA7B3F534; Thu, 19 Mar 2020 06:07:37 -0700 (PDT) Subject: Re: [RFC PATCH 2/2] phy: phy-rockchip-inno-usb2: remove support for rockchip, rk3366-usb2phy To: Johan Jonker , kishon@ti.com Cc: devicetree@vger.kernel.org, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org References: <20200318192901.5023-1-jbx6244@gmail.com> <20200318192901.5023-2-jbx6244@gmail.com> From: Robin Murphy Message-ID: <233769c3-a44a-0ebd-7a2c-6fab17fb56f2@arm.com> Date: Thu, 19 Mar 2020 13:07:26 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200318192901.5023-2-jbx6244@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, On 2020-03-18 7:29 pm, Johan Jonker wrote: > 'phy-rockchip-inno-usb2.txt' is updated to yaml, whereby > the compatible string 'rockchip,rk3366-usb2phy' was removed, > because it's not in use by a dts file, so remove support > in the code as well. Here's a DT using it: https://github.com/rockchip-linux/kernel/blob/develop-4.4/arch/arm64/boot/dts/rockchip/rk3366.dtsi#L820 Please note that although DT bindings happen to be primarily maintained in the upstream kernel tree at the moment, it is mostly as a consequence of Linux being the source of most active development. Bindings should not be considered to be "owned" by upstream Linux since there are many other consumers, both downstream, and in completely different projects like the BSDs. As far as I'm aware there is still a long-term plan to eventually flip the switch and move maintenance to a standalone repo: https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git Things like PCI Device IDs and ACPI HIDs aren't even documented as formally as DT bindings, so by the reasoning here we could arguably delete the majority of drivers from the kernel... Robin. > Signed-off-by: Johan Jonker > --- > drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 20 -------------------- > 1 file changed, 20 deletions(-) > > diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c > index 680cc0c88..dcdb5589b 100644 > --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c > +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c > @@ -1299,25 +1299,6 @@ static const struct rockchip_usb2phy_cfg rk3328_phy_cfgs[] = { > { /* sentinel */ } > }; > > -static const struct rockchip_usb2phy_cfg rk3366_phy_cfgs[] = { > - { > - .reg = 0x700, > - .num_ports = 2, > - .clkout_ctl = { 0x0724, 15, 15, 1, 0 }, > - .port_cfgs = { > - [USB2PHY_PORT_HOST] = { > - .phy_sus = { 0x0728, 15, 0, 0, 0x1d1 }, > - .ls_det_en = { 0x0680, 4, 4, 0, 1 }, > - .ls_det_st = { 0x0690, 4, 4, 0, 1 }, > - .ls_det_clr = { 0x06a0, 4, 4, 0, 1 }, > - .utmi_ls = { 0x049c, 14, 13, 0, 1 }, > - .utmi_hstdet = { 0x049c, 12, 12, 0, 1 } > - } > - }, > - }, > - { /* sentinel */ } > -}; > - > static const struct rockchip_usb2phy_cfg rk3399_phy_cfgs[] = { > { > .reg = 0xe450, > @@ -1426,7 +1407,6 @@ static const struct of_device_id rockchip_usb2phy_dt_match[] = { > { .compatible = "rockchip,px30-usb2phy", .data = &rk3328_phy_cfgs }, > { .compatible = "rockchip,rk3228-usb2phy", .data = &rk3228_phy_cfgs }, > { .compatible = "rockchip,rk3328-usb2phy", .data = &rk3328_phy_cfgs }, > - { .compatible = "rockchip,rk3366-usb2phy", .data = &rk3366_phy_cfgs }, > { .compatible = "rockchip,rk3399-usb2phy", .data = &rk3399_phy_cfgs }, > { .compatible = "rockchip,rv1108-usb2phy", .data = &rv1108_phy_cfgs }, > {} >