Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10970214ybi; Thu, 25 Jul 2019 07:52:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBFdn7WJO1ONoA+QeOjAsIg0r7Kl2N1xvngso5Jj+ldBoRp/sdZ7UPfGYfplNk1Ts/A8aR X-Received: by 2002:a62:e403:: with SMTP id r3mr16330049pfh.37.1564066324205; Thu, 25 Jul 2019 07:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564066324; cv=none; d=google.com; s=arc-20160816; b=b0Bk3GqoMy1jb7ryLnBm4Yr8qYsZWHmeEbfgeu53CiGAg8IcwPjC3uZNpk75oAS6FK JqY5lNH2Fk4aftB2qXPWaad2x0fhQkNuPgbtLhCeLyubeS5dGal6UYdG7iIoLvB61dcN MDim16961sUb8dpQK8w3lxZsTkItmzkp7RBWUYVh72Cvjax0hDgxs0rJyzMAC369S+xW NxC03GR0h6yH8HJM54BLoyqbMV1zmY67Okbp8VlFM9EJW9tFVu2QqqMEU/McaLcA9dPW MSttPxZzPkivR9MFfJEoYl+F6JCLlxf2vvnfVxEFLV0xP89rikzHZXk9va6WQrhQK7QZ w7mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=3b3X8WfBqIW5LOW4V5TVp6ae4N5qP2OGB1HYZV9x7QM=; b=vRKQDYvXxzUzVFPG2xn6AGG5458CBksybklBsAvI/KKNKsmJPL/A7qBtPbnWywxL7V mMypJN/4m0q8Yxbz3cJExkIm2KSo3Wl2eFzyDk2uXX0+OW0kRtyDA9A+c+A8l8HF4y2x fTYw1irK4JXgbGtrulPJ2o721Ep4wyWhfM3QAOxNPJcKadWWC65OZiLNItLUukEFGC6M 9xNEOj5GuBVG39Ls1T8DLpwM1u1jPBz0I0c2frBCKqEcFd7oE/o42I4h+QQ00OGFaWxb Ib5GnGHxjykkmxxaVzacoGIimIuY+fCZJqH1F2IT8eKkzmoPrcI/PQM7Np5ISU7fwiAv eprA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CYZF+ist; 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 a8si17112489ple.243.2019.07.25.07.51.49; Thu, 25 Jul 2019 07:52:04 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CYZF+ist; 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 S2388049AbfGYOtz (ORCPT + 99 others); Thu, 25 Jul 2019 10:49:55 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53084 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727437AbfGYOtz (ORCPT ); Thu, 25 Jul 2019 10:49:55 -0400 Received: by mail-wm1-f67.google.com with SMTP id s3so45262383wms.2 for ; Thu, 25 Jul 2019 07:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=3b3X8WfBqIW5LOW4V5TVp6ae4N5qP2OGB1HYZV9x7QM=; b=CYZF+istrGEAPBiAE0ogP75C5buboZkGqyOM5L/9I/3bnu/dHopK+cjGrEHepiV3O1 dUVGk1Yy7Q9qNheRnqVKn48/a2KXDZytITvRzcqEuMieITUMWSIgvdJRQfn6gLPcgzS0 13hYrFFuvaFvCRF+jdMAMNQ4/z8lZ5Yc7n5FRgMzaGaytfwK5AuN5YrwW0PmR+Wtxayj j47u0RHnSXMnk6ULmKR1KI1l1WQ94QMefCU+hXR8wr0f67iSfE3AYSCzjwXARHQFacIS bHbwD5rxoMiymF86Mg2rubifTzBXk3vUicbHfk81Gg1anQrVWpmTJsYpRtTIWX1NvUi5 CGnQ== 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:in-reply-to:references:date :message-id:mime-version; bh=3b3X8WfBqIW5LOW4V5TVp6ae4N5qP2OGB1HYZV9x7QM=; b=Nnghfxf8rW2ViBQLHFY7QBn2xAbFLwMo+Io4P3Xf30JiuXXMfGWWprZC7eoBuf4p8L ZraRsqSDmBJ4vw9vCIRhegISjUo4J4FO5cov/yYjaDQ0Qg0D8SKUOXvciD/XLeLsTW77 +PsVoU+HKttCd7uBdZZakAz/0ZZTFLIbis381yZAxnG2ybqRvNN7cpLrLinT4wJvRRBt mKEmiY0ZhK9f6j0/s0RMBE9hd2TZ2sRCq3ebxcA6S3k0MsCHUQrxXXwReGHU7/N5ROEA e1tR3l/2sUjgRR0XC3nJdINOg99yxcviubPpv0oMOfkLUh+h5YlmcZpl9h51UqBIJuu5 Py3g== X-Gm-Message-State: APjAAAWUn8Jt6wmyU39n8qX9ESFdZlJy7vUEN7vLwvD4H9vKabfgeB/7 JnOdGQIG5neQRPTZGroaYZtGiw== X-Received: by 2002:a05:600c:da:: with SMTP id u26mr77769552wmm.108.1564066193002; Thu, 25 Jul 2019 07:49:53 -0700 (PDT) Received: from localhost (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id c11sm85376061wrq.45.2019.07.25.07.49.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 07:49:52 -0700 (PDT) From: Jerome Brunet To: Alexandre Mergnat Cc: khilman@baylibre.com, sboyd@kernel.org, narmstrong@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, baylibre-upstreaming@groups.io, Alexandre Mergnat Subject: Re: [PATCH 3/8] clk: meson: gxbb: migrate to the new parent description method In-Reply-To: <20190722095425.14193-4-amergnat@baylibre.com> References: <20190722095425.14193-1-amergnat@baylibre.com> <20190722095425.14193-4-amergnat@baylibre.com> Date: Thu, 25 Jul 2019 16:49:51 +0200 Message-ID: <1j5znqxj74.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22 Jul 2019 at 11:54, Alexandre Mergnat wrote: > @@ -1592,13 +1737,29 @@ static struct clk_regmap gxbb_vid_pll_div = { > .hw.init = &(struct clk_init_data) { > .name = "vid_pll_div", > .ops = &meson_vid_pll_div_ro_ops, > - .parent_names = (const char *[]){ "hdmi_pll" }, > + .parent_data = &(const struct clk_parent_data) { > + /* > + * This clock is declared here for GXL and GXBB SoC, so > + * we must use string name to set this parent to avoid > + * pointer issue. > + */ I don't really get the issue with this comment. How about: /* * Note: * gxl and gxbb have different hdmi_plls (with different struct clk_hw). * We fallback to the global naming string mechanism so vid_pll_div picks * up the appropriate one. */ > + .name = "hdmi_pll", > + .index = -1, > + }, > .num_parents = 1, > .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE, > }, > };