Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp995167imm; Wed, 11 Jul 2018 15:02:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMfXyINMVz3gprHmmfj6dwX0XbbfWDSYP40RAIlaPB0h3t7JTUWCJzVWqaBcLm5+QdFk4u X-Received: by 2002:a17:902:6b86:: with SMTP id p6-v6mr334255plk.75.1531346540042; Wed, 11 Jul 2018 15:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531346540; cv=none; d=google.com; s=arc-20160816; b=wHVRczkTYJAir+Gwtf7/GEXel1CtjhNhFhWxUCKutj+Rc4KPKbst4Mi0t9VbVGsiSS spgp4u5BqLa7QZ/+xOAnJEAOuVkth4JfB7vzF3fMV1j9HAapx8WEkbVA6m8YxM4dvtQr m0XTwxi4jJs8Hz66nYrKQ9YgANX27SYatmxUQAnvMMzXv4bCJaR/L3okc3nI7r8bzd1F 8jgXG4G1hyQyKe+v3yTigfD5IopnkUVZlYmLggkLbarkYt3QdvuQwVzD1rBfp8KIb3cE +oEeAsPEqimXkS4I0x7MN1mNtoE+mPBZciYHabyOZR2EOVelfMoK7ww2hQwOA3AnVO2I C3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hTcOWitApQwEo71NdEHxoZ70HKLinz+1IbNAkKb+r4E=; b=zK2APnPThe1sLKzcDsZwyVssS5XhoVcTED7tSUlr9h9q3+/866N/QST053vPNVr5MW w2FR8QJ9trsliwKOSgKoGz6OhW7g52pG67ADwM5woebn/65moCksjLroHFfR2j50zosk beD2jvXBJpYBAJ/+t3dWBe7geLDC6BG380nH+7nhMVLqfqu7XAl7IYfm1yKDf7M4N0RG fYjbXSwoDjSjB1RNLoZhMMe0tBOaXAx8Vwyc79xYUlu7HhKaFlvq1V7der0NgY40/7rP eApKVMO61wFafTdFD0jAhc9SH0vKSq9h4fVevSnTCH8uLj0zTFJbOVerrxqTvIPm0dJU aZSg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si20469698plb.204.2018.07.11.15.02.04; Wed, 11 Jul 2018 15:02:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389414AbeGKQMR (ORCPT + 99 others); Wed, 11 Jul 2018 12:12:17 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44806 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732433AbeGKQMR (ORCPT ); Wed, 11 Jul 2018 12:12:17 -0400 Received: by mail-oi0-f65.google.com with SMTP id s198-v6so50212914oih.11; Wed, 11 Jul 2018 09:07:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hTcOWitApQwEo71NdEHxoZ70HKLinz+1IbNAkKb+r4E=; b=eSm5jJIUroy4CRkJ5h4xB8ZM8ON0lBx82UVhtb56e94wmlK8VO0JWpLT7ypk7sHHJP sINdxmZMDb+heut1PDP7t0sPeuhoSH30hDvvGNZL/lKnJwadPmYitQ5HUyehEJ+05s7a efvE1nCo004zeEo9an75+3IoyA4XsWC2R6+hwSgV+jZI7J9RDcXi9jGOFW79XzFB0+z4 Rz+/DLyeADtp/lUPJskCOXAROxGLJCe2v2ivYAATb+/ryNi/hcrMar1j4wDi5/s8TvGt 9Iq3fPUCtOLFbt32hXVxG45w/QDb0NKDGBoGs0Caue1dolb85npW4Xq0gYfQr5IsEJDR CZlw== X-Gm-Message-State: APt69E3WgjllnPOzpq5mOu8G0Y6ERZKM1l8cWTiXN3UMIlA71koetV+8 LjmrbS2rrrTjmaJBrZEH7Q== X-Received: by 2002:aca:4e50:: with SMTP id c77-v6mr30442230oib.254.1531325235436; Wed, 11 Jul 2018 09:07:15 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id i204-v6sm10216304oia.41.2018.07.11.09.07.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 09:07:14 -0700 (PDT) Date: Wed, 11 Jul 2018 10:07:13 -0600 From: Rob Herring To: Todor Tomov Cc: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , devicetree@vger.kernel.org Subject: Re: [PATCH v2 08/34] media: camss: Unify the clock names Message-ID: <20180711160713.GA29354@rob-hp-laptop> References: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> <1530797585-8555-9-git-send-email-todor.tomov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530797585-8555-9-git-send-email-todor.tomov@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 05, 2018 at 04:32:39PM +0300, Todor Tomov wrote: > Unify the clock names - use names closer to the clock > definitions. Why? You can't just change names. You are breaking an ABI. > > CC: Rob Herring > CC: Mark Rutland > CC: devicetree@vger.kernel.org > Signed-off-by: Todor Tomov > --- > .../devicetree/bindings/media/qcom,camss.txt | 24 +++++++++++----------- Bindings should be a separate patch. > drivers/media/platform/qcom/camss/camss.c | 20 ++++++++---------- > 2 files changed, 20 insertions(+), 24 deletions(-) > > diff --git a/Documentation/devicetree/bindings/media/qcom,camss.txt b/Documentation/devicetree/bindings/media/qcom,camss.txt > index cadeceb..032e8ed 100644 > --- a/Documentation/devicetree/bindings/media/qcom,camss.txt > +++ b/Documentation/devicetree/bindings/media/qcom,camss.txt > @@ -53,7 +53,7 @@ Qualcomm Camera Subsystem > Usage: required > Value type: > Definition: Should contain the following entries: > - - "camss_top_ahb" > + - "top_ahb" > - "ispif_ahb" > - "csiphy0_timer" > - "csiphy1_timer" > @@ -67,11 +67,11 @@ Qualcomm Camera Subsystem > - "csi1_phy" > - "csi1_pix" > - "csi1_rdi" > - - "camss_ahb" > - - "camss_vfe_vfe" > - - "camss_csi_vfe" > - - "iface" > - - "bus" > + - "ahb" > + - "vfe0" > + - "csi_vfe0" > + - "vfe_ahb" > + - "vfe_axi" > - vdda-supply: > Usage: required > Value type: > @@ -161,7 +161,7 @@ Qualcomm Camera Subsystem > <&gcc GCC_CAMSS_CSI_VFE0_CLK>, > <&gcc GCC_CAMSS_VFE_AHB_CLK>, > <&gcc GCC_CAMSS_VFE_AXI_CLK>; > - clock-names = "camss_top_ahb", > + clock-names = "top_ahb", > "ispif_ahb", > "csiphy0_timer", > "csiphy1_timer", > @@ -175,11 +175,11 @@ Qualcomm Camera Subsystem > "csi1_phy", > "csi1_pix", > "csi1_rdi", > - "camss_ahb", > - "camss_vfe_vfe", > - "camss_csi_vfe", > - "iface", > - "bus"; > + "ahb", > + "vfe0", > + "csi_vfe0", > + "vfe_ahb", > + "vfe_axi"; > vdda-supply = <&pm8916_l2>; > iommus = <&apps_iommu 3>; > ports { > diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c > index abf6184..0b663e0 100644 > --- a/drivers/media/platform/qcom/camss/camss.c > +++ b/drivers/media/platform/qcom/camss/camss.c > @@ -32,8 +32,7 @@ static const struct resources csiphy_res[] = { > /* CSIPHY0 */ > { > .regulator = { NULL }, > - .clock = { "camss_top_ahb", "ispif_ahb", > - "camss_ahb", "csiphy0_timer" }, > + .clock = { "top_ahb", "ispif_ahb", "ahb", "csiphy0_timer" }, > .clock_rate = { { 0 }, > { 0 }, > { 0 }, > @@ -45,8 +44,7 @@ static const struct resources csiphy_res[] = { > /* CSIPHY1 */ > { > .regulator = { NULL }, > - .clock = { "camss_top_ahb", "ispif_ahb", > - "camss_ahb", "csiphy1_timer" }, > + .clock = { "top_ahb", "ispif_ahb", "ahb", "csiphy1_timer" }, > .clock_rate = { { 0 }, > { 0 }, > { 0 }, > @@ -60,8 +58,7 @@ static const struct resources csid_res[] = { > /* CSID0 */ > { > .regulator = { "vdda" }, > - .clock = { "camss_top_ahb", "ispif_ahb", > - "csi0_ahb", "camss_ahb", > + .clock = { "top_ahb", "ispif_ahb", "csi0_ahb", "ahb", > "csi0", "csi0_phy", "csi0_pix", "csi0_rdi" }, > .clock_rate = { { 0 }, > { 0 }, > @@ -78,8 +75,7 @@ static const struct resources csid_res[] = { > /* CSID1 */ > { > .regulator = { "vdda" }, > - .clock = { "camss_top_ahb", "ispif_ahb", > - "csi1_ahb", "camss_ahb", > + .clock = { "top_ahb", "ispif_ahb", "csi1_ahb", "ahb", > "csi1", "csi1_phy", "csi1_pix", "csi1_rdi" }, > .clock_rate = { { 0 }, > { 0 }, > @@ -96,10 +92,10 @@ static const struct resources csid_res[] = { > > static const struct resources_ispif ispif_res = { > /* ISPIF */ > - .clock = { "camss_top_ahb", "camss_ahb", "ispif_ahb", > + .clock = { "top_ahb", "ahb", "ispif_ahb", > "csi0", "csi0_pix", "csi0_rdi", > "csi1", "csi1_pix", "csi1_rdi" }, > - .clock_for_reset = { "camss_vfe_vfe", "camss_csi_vfe" }, > + .clock_for_reset = { "vfe0", "csi_vfe0" }, > .reg = { "ispif", "csi_clk_mux" }, > .interrupt = "ispif" > > @@ -108,8 +104,8 @@ static const struct resources_ispif ispif_res = { > static const struct resources vfe_res = { > /* VFE0 */ > .regulator = { NULL }, > - .clock = { "camss_top_ahb", "camss_vfe_vfe", "camss_csi_vfe", > - "iface", "bus", "camss_ahb" }, > + .clock = { "top_ahb", "vfe0", "csi_vfe0", > + "vfe_ahb", "vfe_axi", "ahb" }, > .clock_rate = { { 0 }, > { 50000000, 80000000, 100000000, 160000000, > 177780000, 200000000, 266670000, 320000000, > -- > 2.7.4 >