Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9366113imu; Wed, 5 Dec 2018 03:43:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6piJhD6pAGGgu6ZJ6f4VTomYWxqvvF3yPWQuUQDkG+UdKcgS8eJhn6rppP5wdkaZM6tUB X-Received: by 2002:a17:902:b68d:: with SMTP id c13mr23896084pls.102.1544010224998; Wed, 05 Dec 2018 03:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544010224; cv=none; d=google.com; s=arc-20160816; b=MIEea0XKml59M+4BqqKOg6Vi9VqgxyvGgQ3ARbGraHzWy94t/W/Cu0wJ0BqhQ2rVbv 4KPJLqUHT8bc+7wjcd2HbUL0giz66/HHa255WX5Gez2asqpjj8ZyqY+JgeyHSwd4E45c TqA+7TNu141Y2M+0MdYEcaAVbOZwLQmcgek/6PkcQVhhJQ1xL84YWqSGGObzp61ilj4z 1jydFV0G+gBr0DBAtTVms8NSIrXnV9sC/fFAbTLmCODAPzwLLmFwBtbhi/yA6sjeH8+l 93RTtavd0XYPkLAplcFzmDAaJatKqOccw/AYv9Bp/5L+FrsgpKL1ZpvQwjsIO0Bii08W siUg== 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=G4Wrr34p96123lE/u3WnVWCyDs7sjrXkN9Dpd9ws9K0=; b=0+eEPU1ofIybImMFZnf5JAEetTE0165KXdlFrOvB6oQE34K6sG/OTbzOKnVpR97KSq l/h4+fQf1PPIOp78f0+6EZoEY6x1WUkpvCAzmcIoCyMO99jiPtfqrhS1UhS4/bJSvr61 /6BFMdh6/U/TAPhzxYH43STXH2unzUgYOTw+8H0flVdK3r4EvrTS1xhbCuEg0ygExaJy BQgoNA9xplAX9IVF0+9kI9mD/PUrjT0Bc7pFqn+mwxgyAMS6qBHbCHZztlm4zMjkKxP1 oZgw13hj04rQec4JUoDE8npWtcJN1QtCsLoYq0EvGXeeVd1qOp1G2PJd3x25LgqccVcy PePA== 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 33si7058933plt.228.2018.12.05.03.43.28; Wed, 05 Dec 2018 03:43:44 -0800 (PST) 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 S1727498AbeLELmp (ORCPT + 99 others); Wed, 5 Dec 2018 06:42:45 -0500 Received: from mx.socionext.com ([202.248.49.38]:22046 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeLELmo (ORCPT ); Wed, 5 Dec 2018 06:42:44 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 05 Dec 2018 20:42:42 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 8160F180B3E; Wed, 5 Dec 2018 20:42:42 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Wed, 5 Dec 2018 20:42:42 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 55CDA40377; Wed, 5 Dec 2018 20:42:42 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id 38B13120455; Wed, 5 Dec 2018 20:42:42 +0900 (JST) Subject: Re: [PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control To: Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Michael Turquette , Rob Herring , Mark Rutland , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Russell King , Jiri Slaby , Masami Hiramatsu , Jassi Brar References: <1542589274-13878-1-git-send-email-sugaya.taichi@socionext.com> <1542589274-13878-8-git-send-email-sugaya.taichi@socionext.com> <154356669840.88331.4455990896653868594@swboyd.mtv.corp.google.com> <298cd5a5-66cf-0936-405e-59bcc7c396ed@socionext.com> <154394734173.88331.18352656286616172689@swboyd.mtv.corp.google.com> From: "Sugaya, Taichi" Message-ID: Date: Wed, 5 Dec 2018 20:42:41 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <154394734173.88331.18352656286616172689@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 2018/12/05 3:15, Stephen Boyd wrote: > Quoting Sugaya, Taichi (2018-12-04 00:26:16) >> On 2018/11/30 17:31, Stephen Boyd wrote: >>> Quoting Sugaya Taichi (2018-11-18 17:01:12) >>>> +void __init m10v_clk_mux_setup(struct device_node *node) >>>> +{ >>>> + const char *clk_name = node->name; >>>> + struct clk_init_data init; >>>> + const char **parent_names; >>>> + struct m10v_mux *mcm; >>>> + struct clk *clk; >>>> + int i, parents; >>>> + >>>> + if (!m10v_clk_iomap()) >>>> + return; >>>> + >>>> + of_property_read_string(node, "clock-output-names", &clk_name); >>>> + >>>> + parents = of_clk_get_parent_count(node); >>>> + if (parents < 2) { >>>> + pr_err("%s: not a mux\n", clk_name); >>> >>> How is this possible? >> >> When the node has more than 1 clks... >> Or I am misunderstanding your question? > > This looks like code that's checking DT for correctness. We don't > typically do that in the kernel because the kernel isn't a DT validator. > That's all I'm saying. I think this comment is not useful if the driver > design is done to specify parent linkages in C code instead of DT, so > don't worry about this too much. I understand. Thank you for additional information. Sugaya Taichi >