Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp879790ybi; Fri, 7 Jun 2019 20:28:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzU4zwnOfEbulTRR6aAD9bEWQqNIcggBaJJefFvS7KErDDjN13Vz1fKiRKneUW83gKWswVU X-Received: by 2002:a62:5a47:: with SMTP id o68mr61048995pfb.149.1559964521831; Fri, 07 Jun 2019 20:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559964521; cv=none; d=google.com; s=arc-20160816; b=oi/hZz6X75hSA2J0hp/Dzvxp3h33zm7dd0BO+sXGFH6+vtQe8SCi4EpktszNORZzyA W8T+gqHHOZh8aK8+KgXtJbTH93UAGRxScqs65ql9Zsr0Pdze4SWjQga3cmOMe05JH1pP vBmIOlw7MZDm0CI+F3CfglEbqD5lxRTC8DvSRBe+EZkt1Jq9koQGvs7Lg0AriCGEbugw l7TDPSMjMtBciRfHiV+6P8kg2VzBUnKxrmPnBB3bFJu1pBE3LdrzWpMXZx5r9wf//LTR bxuFrY/EoAwCR2Dr+ozrRboF3g7jrbOC4z9lnjab6YiqGYEJtbrwKv7QXgaxIEHYjyaU pvhQ== 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:dkim-signature; bh=85fGZyxeIESYVExgLJEz9zbguq3QsyqJkOP+evG9ReA=; b=SW1lku2eZ/P3K/tptDOb29c+7XWmXvmJSRJsxi1gLxp3hXqIgjPvmhpTkhm+BYvX6E zAGvTXeGdVnqRO3/Rawh6bCWtXrWViwULcSL4oVmWUK9VeYOGKN5KqeZBAUnNGMG0I+4 gPpkHHimlB16VDMmn8/MaEv1FtXFH5w3J/n1ON5dQjq47OHRzQS2FnQHZ+YzwsGfNlRT dkIhLHhKtkJnzLGlySxrvS0Tnl636byTZRyPtpsvo1N+M8xrvfcwMW9bZMQHzN5SLqUE 35x9JUgY51V2CdUjLr7c/jnFt3iTAKp9CXuUUiv+LD7/6LBGwUB/TfixzEj8OIrtY/SM O5IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jq1gW6sZ; 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=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 j26si3587118pfa.47.2019.06.07.20.28.24; Fri, 07 Jun 2019 20:28:41 -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=@linaro.org header.s=google header.b=jq1gW6sZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730274AbfFHD0T (ORCPT + 99 others); Fri, 7 Jun 2019 23:26:19 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39995 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730058AbfFHD0S (ORCPT ); Fri, 7 Jun 2019 23:26:18 -0400 Received: by mail-pg1-f196.google.com with SMTP id d30so2112025pgm.7 for ; Fri, 07 Jun 2019 20:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=85fGZyxeIESYVExgLJEz9zbguq3QsyqJkOP+evG9ReA=; b=jq1gW6sZNN9W+SZw8GIqmtfSCoc/FhohIUENUFTOmro4SJs00F/gjtrry7bYU3QGK/ RzmFcbJ978ADB0K3ymaWhxsOYZN6XAiPsG2w4jkhk+kSSNh0D6ewYD581T+ZLHmh1Jbn uHfjB5qGiRmr9/xjonUtDPMDWXlsLlQ2hhNKVIE9/NXcF825nnv6hnBLjgJX7HlXWc5G t0RVTpcQsfe1liymwWfcbFzVnjI46JhcZxKFOVqqAOcXN4fJMHLvWXwlKRS0Tb36vWnH NVA6r++ey7swlBljZo4T7+NSK28k9zJeLH8kCd356ZGymiO+wHbjNfzL08TWwowERqUy VHAQ== 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=85fGZyxeIESYVExgLJEz9zbguq3QsyqJkOP+evG9ReA=; b=DoMnnj47O3Nth1gY9GZlSTBBP5gqQwU2fJGEH+3Idutmt0wjp7UwdgadXUguEjytEB KcpSU2ctSVrZr/paD9e9s5op3Q/ldvlF/SIjTIBKtVasE0xkpUh8HYAwHK6e04jXuP70 QE3do1tmoxXV+0baNRNfllkCIgi8iXwV3pP9ikNEKhtU9XVj0dFrZmTWgLC/TVBU8KJe F1ZbpXVTTm6XTBupqYtvSEJP3m0V0ePQP7M/f9SeNdVGF/DT/nnn+hjh2zzBZtbvrOAe GYrg0q7Dq90rOcqTGNQeKgwcUBJ08ekwOBksNJBVQMc/QAgbWh/VYbH5zYXadqYMQcmZ tohg== X-Gm-Message-State: APjAAAXUcCuEd1jU00N/tevmsF8k59/gUI5KyU5+mrnNcJ6YvjoOnrVS YzbWz7975lJs1WsnbPghGO5LMw== X-Received: by 2002:a63:490b:: with SMTP id w11mr4312263pga.127.1559964377447; Fri, 07 Jun 2019 20:26:17 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 124sm430653pfd.63.2019.06.07.20.26.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 20:26:16 -0700 (PDT) Date: Fri, 7 Jun 2019 20:26:13 -0700 From: Bjorn Andersson To: Sricharan R Cc: robh+dt@kernel.org, sboyd@codeaurora.org, linus.walleij@linaro.org, agross@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/6] pinctrl: qcom: Add ipq6018 pinctrl driver Message-ID: <20190608032613.GC24059@builder> References: <1559754961-26783-1-git-send-email-sricharan@codeaurora.org> <1559754961-26783-2-git-send-email-sricharan@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559754961-26783-2-git-send-email-sricharan@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05 Jun 10:15 PDT 2019, Sricharan R wrote: > Add initial pinctrl driver to support pin configuration with > pinctrl framework for ipq6018. > > Signed-off-by: Sricharan R > Signed-off-by: Rajkumar Ayyasamy > Signed-off-by: speriaka These should start with the author, then followed by each person that handled the patch on its way to the list - so your name should probably be last. If you have more than one author add Co-developed-by, in addition to the Signed-off-by. And please spell our speriaka's first and last name. [..] > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.txt [..] > +- #gpio-cells: > + Usage: required > + Value type: > + Definition: must be 2. Specifying the pin number and flags, as defined > + in You're missing the required "gpio-ranges" property. > + [..] > +- function: > + Usage: required > + Value type: > + Definition: Specify the alternative function to be configured for the > + specified pins. Functions are only valid for gpio pins. > + Valid values are: > + adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, atest_char0, Please indent these. [..] The rest should be in a separate patch from the binding. > diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig [..] > +enum ipq6018_functions { [..] > + msm_mux_NA, I like when these are sorted, and if you make the last entry msm_mux__ the msm_pingroup array becomes easier to read. > +}; [..] > +static const struct msm_function ipq6018_functions[] = { [..] > + FUNCTION(gcc_tlmm), As above, please sort these. > +}; > + > +static const struct msm_pingroup ipq6018_groups[] = { > + PINGROUP(0, qpic_pad, wci20, qdss_traceclk_b, NA, burn0, NA, NA, NA, > + NA), Please ignore the 80-char and skip the line breaks. > + PINGROUP(1, qpic_pad, mac12, qdss_tracectl_b, NA, burn1, NA, NA, NA, > + NA), > + PINGROUP(2, qpic_pad, wci20, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), > + PINGROUP(3, qpic_pad, mac01, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), > + PINGROUP(4, qpic_pad, mac01, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), > + PINGROUP(5, qpic_pad4, mac21, qdss_tracedata_b, NA, NA, NA, NA, NA, NA), Is there a reason to keep qpic_padN as separate functions from qpic_pad? [..] > +static struct platform_driver ipq6018_pinctrl_driver = { > + .driver = { > + .name = "ipq6018-pinctrl", > + .owner = THIS_MODULE, .owner is populated automagically by platform_driver_register, so please omit this. > + .of_match_table = ipq6018_pinctrl_of_match, > + }, > + .probe = ipq6018_pinctrl_probe, > + .remove = msm_pinctrl_remove, > +}; Regards, Bjorn