All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Rob Herring <robh+dt@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-gpio@vger.kernel.org,
	Prabhakar <prabhakar.csengg@gmail.com>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 3/3] pinctrl: renesas: Add pins/groups/functions for I2C, SCIF and USB supported by RZ/G2L SoC
Date: Thu, 17 Jun 2021 10:55:36 +0800	[thread overview]
Message-ID: <202106171038.FguCFVSp-lkp@intel.com> (raw)
In-Reply-To: <20210616132641.29087-4-prabhakar.mahadev-lad.rj@bp.renesas.com>

[-- Attachment #1: Type: text/plain, Size: 11058 bytes --]

Hi Lad,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on renesas-drivers/renesas-pinctrl]
[also build test WARNING on robh/for-next pinctrl/devel v5.13-rc6 next-20210616]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Lad-Prabhakar/pinctrl-Add-RZ-G2L-pin-and-gpio-driver/20210616-225928
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-pinctrl
config: parisc-randconfig-s031-20210617 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://github.com/0day-ci/linux/commit/0cc4856c569c78a2855607272bccac66fd3d8e9e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Lad-Prabhakar/pinctrl-Add-RZ-G2L-pin-and-gpio-driver/20210616-225928
        git checkout 0cc4856c569c78a2855607272bccac66fd3d8e9e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_set_mux':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:115:9: error: implicit declaration of function 'pinmux_generic_get_function'; did you mean 'pinmux_generic_free_functions'? [-Werror=implicit-function-declaration]
     115 |  func = pinmux_generic_get_function(pctldev, func_selector);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         pinmux_generic_free_functions
>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:115:7: warning: assignment to 'struct function_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     115 |  func = pinmux_generic_get_function(pctldev, func_selector);
         |       ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:118:10: error: implicit declaration of function 'pinctrl_generic_get_group' [-Werror=implicit-function-declaration]
     118 |  group = pinctrl_generic_get_group(pctldev, group_selector);
         |          ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:118:8: warning: assignment to 'struct group_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     118 |  group = pinctrl_generic_get_group(pctldev, group_selector);
         |        ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:122:14: error: dereferencing pointer to incomplete type 'struct group_desc'
     122 |  pins = group->pins;
         |              ^~
   In file included from include/linux/printk.h:409,
                    from include/linux/kernel.h:17,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from drivers/pinctrl/renesas/pinctrl-rzg2l.c:8:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:126:7: error: dereferencing pointer to incomplete type 'struct function_desc'
     126 |   func->name, group->name);
         |       ^~
   include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
     129 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
     161 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
     123 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:125:2: note: in expansion of macro 'dev_dbg'
     125 |  dev_dbg(pctldev->dev, "enable function %s group %s\n",
         |  ^~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: At top level:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:135:22: error: 'pinctrl_generic_get_group_count' undeclared here (not in a function)
     135 |  .get_groups_count = pinctrl_generic_get_group_count,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:136:20: error: 'pinctrl_generic_get_group_name' undeclared here (not in a function)
     136 |  .get_group_name = pinctrl_generic_get_group_name,
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:137:20: error: 'pinctrl_generic_get_group_pins' undeclared here (not in a function); did you mean 'pinctrl_get_group_pins'?
     137 |  .get_group_pins = pinctrl_generic_get_group_pins,
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                    pinctrl_get_group_pins
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:143:25: error: 'pinmux_generic_get_function_count' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     143 |  .get_functions_count = pinmux_generic_get_function_count,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:144:23: error: 'pinmux_generic_get_function_name' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     144 |  .get_function_name = pinmux_generic_get_function_name,
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                       pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:145:25: error: 'pinmux_generic_get_function_groups' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     145 |  .get_function_groups = pinmux_generic_get_function_groups,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_add_groups':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:155:56: error: invalid use of undefined type 'struct group_desc'
     155 |   const struct group_desc *group = pctrl->psoc->groups + i;
         |                                                        ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:157:9: error: implicit declaration of function 'pinctrl_generic_add_group' [-Werror=implicit-function-declaration]
     157 |   ret = pinctrl_generic_add_group(pctrl->pctrl_dev, group->name,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:157:58: error: dereferencing pointer to incomplete type 'const struct group_desc'
     157 |   ret = pinctrl_generic_add_group(pctrl->pctrl_dev, group->name,
         |                                                          ^~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_add_functions':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:175:57: error: invalid use of undefined type 'struct function_desc'
     175 |   const struct function_desc *func = pctrl->psoc->funcs + i;
         |                                                         ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:177:9: error: implicit declaration of function 'pinmux_generic_add_function'; did you mean 'pinmux_generic_free_functions'? [-Werror=implicit-function-declaration]
     177 |   ret = pinmux_generic_add_function(pctrl->pctrl_dev, func->name,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:177:59: error: dereferencing pointer to incomplete type 'const struct function_desc'
     177 |   ret = pinmux_generic_add_function(pctrl->pctrl_dev, func->name,
         |                                                           ^~
   At top level:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:514:34: warning: 'rzg2l_pinctrl_of_table' defined but not used [-Wunused-const-variable=]
     514 | static const struct of_device_id rzg2l_pinctrl_of_table[] = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PINCTRL_RZG2L
   Depends on PINCTRL && OF && (ARCH_R9A07G044 || COMPILE_TEST
   Selected by
   - PINCTRL_PFC_R9A07G044 && PINCTRL


vim +115 drivers/pinctrl/renesas/pinctrl-rzg2l.c

64165286d371f1 Lad Prabhakar 2021-06-16  103  
64165286d371f1 Lad Prabhakar 2021-06-16  104  static int rzg2l_pinctrl_set_mux(struct pinctrl_dev *pctldev,
64165286d371f1 Lad Prabhakar 2021-06-16  105  				 unsigned int func_selector,
64165286d371f1 Lad Prabhakar 2021-06-16  106  				 unsigned int group_selector)
64165286d371f1 Lad Prabhakar 2021-06-16  107  {
64165286d371f1 Lad Prabhakar 2021-06-16  108  	struct rzg2l_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);
64165286d371f1 Lad Prabhakar 2021-06-16  109  	struct function_desc *func;
64165286d371f1 Lad Prabhakar 2021-06-16  110  	struct group_desc *group;
64165286d371f1 Lad Prabhakar 2021-06-16  111  	unsigned long data;
64165286d371f1 Lad Prabhakar 2021-06-16  112  	int *pins;
64165286d371f1 Lad Prabhakar 2021-06-16  113  	int i;
64165286d371f1 Lad Prabhakar 2021-06-16  114  
64165286d371f1 Lad Prabhakar 2021-06-16 @115  	func = pinmux_generic_get_function(pctldev, func_selector);
64165286d371f1 Lad Prabhakar 2021-06-16  116  	if (!func)
64165286d371f1 Lad Prabhakar 2021-06-16  117  		return -EINVAL;
64165286d371f1 Lad Prabhakar 2021-06-16 @118  	group = pinctrl_generic_get_group(pctldev, group_selector);
64165286d371f1 Lad Prabhakar 2021-06-16  119  	if (!group)
64165286d371f1 Lad Prabhakar 2021-06-16  120  		return -EINVAL;
64165286d371f1 Lad Prabhakar 2021-06-16  121  
64165286d371f1 Lad Prabhakar 2021-06-16  122  	pins = group->pins;
64165286d371f1 Lad Prabhakar 2021-06-16  123  	data = (unsigned long)group->data;
64165286d371f1 Lad Prabhakar 2021-06-16  124  
64165286d371f1 Lad Prabhakar 2021-06-16  125  	dev_dbg(pctldev->dev, "enable function %s group %s\n",
64165286d371f1 Lad Prabhakar 2021-06-16  126  		func->name, group->name);
64165286d371f1 Lad Prabhakar 2021-06-16  127  
64165286d371f1 Lad Prabhakar 2021-06-16  128  	for (i = 0; i < group->num_pins; i++)
64165286d371f1 Lad Prabhakar 2021-06-16  129  		rzg2l_pinctrl_set_pfc_mode(pctrl, *(pins + i), data);
64165286d371f1 Lad Prabhakar 2021-06-16  130  
64165286d371f1 Lad Prabhakar 2021-06-16  131  	return 0;
64165286d371f1 Lad Prabhakar 2021-06-16  132  };
64165286d371f1 Lad Prabhakar 2021-06-16  133  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21633 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 3/3] pinctrl: renesas: Add pins/groups/functions for I2C, SCIF and USB supported by RZ/G2L SoC
Date: Thu, 17 Jun 2021 10:55:36 +0800	[thread overview]
Message-ID: <202106171038.FguCFVSp-lkp@intel.com> (raw)
In-Reply-To: <20210616132641.29087-4-prabhakar.mahadev-lad.rj@bp.renesas.com>

[-- Attachment #1: Type: text/plain, Size: 11223 bytes --]

Hi Lad,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on renesas-drivers/renesas-pinctrl]
[also build test WARNING on robh/for-next pinctrl/devel v5.13-rc6 next-20210616]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Lad-Prabhakar/pinctrl-Add-RZ-G2L-pin-and-gpio-driver/20210616-225928
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-pinctrl
config: parisc-randconfig-s031-20210617 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://github.com/0day-ci/linux/commit/0cc4856c569c78a2855607272bccac66fd3d8e9e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Lad-Prabhakar/pinctrl-Add-RZ-G2L-pin-and-gpio-driver/20210616-225928
        git checkout 0cc4856c569c78a2855607272bccac66fd3d8e9e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_set_mux':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:115:9: error: implicit declaration of function 'pinmux_generic_get_function'; did you mean 'pinmux_generic_free_functions'? [-Werror=implicit-function-declaration]
     115 |  func = pinmux_generic_get_function(pctldev, func_selector);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         pinmux_generic_free_functions
>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:115:7: warning: assignment to 'struct function_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     115 |  func = pinmux_generic_get_function(pctldev, func_selector);
         |       ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:118:10: error: implicit declaration of function 'pinctrl_generic_get_group' [-Werror=implicit-function-declaration]
     118 |  group = pinctrl_generic_get_group(pctldev, group_selector);
         |          ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:118:8: warning: assignment to 'struct group_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     118 |  group = pinctrl_generic_get_group(pctldev, group_selector);
         |        ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:122:14: error: dereferencing pointer to incomplete type 'struct group_desc'
     122 |  pins = group->pins;
         |              ^~
   In file included from include/linux/printk.h:409,
                    from include/linux/kernel.h:17,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from drivers/pinctrl/renesas/pinctrl-rzg2l.c:8:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:126:7: error: dereferencing pointer to incomplete type 'struct function_desc'
     126 |   func->name, group->name);
         |       ^~
   include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
     129 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
     161 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
     123 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:125:2: note: in expansion of macro 'dev_dbg'
     125 |  dev_dbg(pctldev->dev, "enable function %s group %s\n",
         |  ^~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: At top level:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:135:22: error: 'pinctrl_generic_get_group_count' undeclared here (not in a function)
     135 |  .get_groups_count = pinctrl_generic_get_group_count,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:136:20: error: 'pinctrl_generic_get_group_name' undeclared here (not in a function)
     136 |  .get_group_name = pinctrl_generic_get_group_name,
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:137:20: error: 'pinctrl_generic_get_group_pins' undeclared here (not in a function); did you mean 'pinctrl_get_group_pins'?
     137 |  .get_group_pins = pinctrl_generic_get_group_pins,
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                    pinctrl_get_group_pins
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:143:25: error: 'pinmux_generic_get_function_count' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     143 |  .get_functions_count = pinmux_generic_get_function_count,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:144:23: error: 'pinmux_generic_get_function_name' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     144 |  .get_function_name = pinmux_generic_get_function_name,
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                       pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:145:25: error: 'pinmux_generic_get_function_groups' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
     145 |  .get_function_groups = pinmux_generic_get_function_groups,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_add_groups':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:155:56: error: invalid use of undefined type 'struct group_desc'
     155 |   const struct group_desc *group = pctrl->psoc->groups + i;
         |                                                        ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:157:9: error: implicit declaration of function 'pinctrl_generic_add_group' [-Werror=implicit-function-declaration]
     157 |   ret = pinctrl_generic_add_group(pctrl->pctrl_dev, group->name,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:157:58: error: dereferencing pointer to incomplete type 'const struct group_desc'
     157 |   ret = pinctrl_generic_add_group(pctrl->pctrl_dev, group->name,
         |                                                          ^~
   drivers/pinctrl/renesas/pinctrl-rzg2l.c: In function 'rzg2l_pinctrl_add_functions':
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:175:57: error: invalid use of undefined type 'struct function_desc'
     175 |   const struct function_desc *func = pctrl->psoc->funcs + i;
         |                                                         ^
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:177:9: error: implicit declaration of function 'pinmux_generic_add_function'; did you mean 'pinmux_generic_free_functions'? [-Werror=implicit-function-declaration]
     177 |   ret = pinmux_generic_add_function(pctrl->pctrl_dev, func->name,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         pinmux_generic_free_functions
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:177:59: error: dereferencing pointer to incomplete type 'const struct function_desc'
     177 |   ret = pinmux_generic_add_function(pctrl->pctrl_dev, func->name,
         |                                                           ^~
   At top level:
   drivers/pinctrl/renesas/pinctrl-rzg2l.c:514:34: warning: 'rzg2l_pinctrl_of_table' defined but not used [-Wunused-const-variable=]
     514 | static const struct of_device_id rzg2l_pinctrl_of_table[] = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PINCTRL_RZG2L
   Depends on PINCTRL && OF && (ARCH_R9A07G044 || COMPILE_TEST
   Selected by
   - PINCTRL_PFC_R9A07G044 && PINCTRL


vim +115 drivers/pinctrl/renesas/pinctrl-rzg2l.c

64165286d371f1 Lad Prabhakar 2021-06-16  103  
64165286d371f1 Lad Prabhakar 2021-06-16  104  static int rzg2l_pinctrl_set_mux(struct pinctrl_dev *pctldev,
64165286d371f1 Lad Prabhakar 2021-06-16  105  				 unsigned int func_selector,
64165286d371f1 Lad Prabhakar 2021-06-16  106  				 unsigned int group_selector)
64165286d371f1 Lad Prabhakar 2021-06-16  107  {
64165286d371f1 Lad Prabhakar 2021-06-16  108  	struct rzg2l_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);
64165286d371f1 Lad Prabhakar 2021-06-16  109  	struct function_desc *func;
64165286d371f1 Lad Prabhakar 2021-06-16  110  	struct group_desc *group;
64165286d371f1 Lad Prabhakar 2021-06-16  111  	unsigned long data;
64165286d371f1 Lad Prabhakar 2021-06-16  112  	int *pins;
64165286d371f1 Lad Prabhakar 2021-06-16  113  	int i;
64165286d371f1 Lad Prabhakar 2021-06-16  114  
64165286d371f1 Lad Prabhakar 2021-06-16 @115  	func = pinmux_generic_get_function(pctldev, func_selector);
64165286d371f1 Lad Prabhakar 2021-06-16  116  	if (!func)
64165286d371f1 Lad Prabhakar 2021-06-16  117  		return -EINVAL;
64165286d371f1 Lad Prabhakar 2021-06-16 @118  	group = pinctrl_generic_get_group(pctldev, group_selector);
64165286d371f1 Lad Prabhakar 2021-06-16  119  	if (!group)
64165286d371f1 Lad Prabhakar 2021-06-16  120  		return -EINVAL;
64165286d371f1 Lad Prabhakar 2021-06-16  121  
64165286d371f1 Lad Prabhakar 2021-06-16  122  	pins = group->pins;
64165286d371f1 Lad Prabhakar 2021-06-16  123  	data = (unsigned long)group->data;
64165286d371f1 Lad Prabhakar 2021-06-16  124  
64165286d371f1 Lad Prabhakar 2021-06-16  125  	dev_dbg(pctldev->dev, "enable function %s group %s\n",
64165286d371f1 Lad Prabhakar 2021-06-16  126  		func->name, group->name);
64165286d371f1 Lad Prabhakar 2021-06-16  127  
64165286d371f1 Lad Prabhakar 2021-06-16  128  	for (i = 0; i < group->num_pins; i++)
64165286d371f1 Lad Prabhakar 2021-06-16  129  		rzg2l_pinctrl_set_pfc_mode(pctrl, *(pins + i), data);
64165286d371f1 Lad Prabhakar 2021-06-16  130  
64165286d371f1 Lad Prabhakar 2021-06-16  131  	return 0;
64165286d371f1 Lad Prabhakar 2021-06-16  132  };
64165286d371f1 Lad Prabhakar 2021-06-16  133  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21633 bytes --]

  reply	other threads:[~2021-06-17  2:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 13:26 [PATCH 0/3] pinctrl: Add RZ/G2L pin and gpio driver Lad Prabhakar
2021-06-16 13:26 ` [PATCH 1/3] dt-bindings: pinctrl: renesas,rzg2l-pinctrl: Add DT bindings for RZ/G2L pinctrl Lad Prabhakar
2021-06-16 16:03   ` Rob Herring
2021-06-16 16:09   ` Rob Herring
2021-06-24  9:48   ` Geert Uytterhoeven
2021-06-16 13:26 ` [PATCH 2/3] pinctrl: renesas: Add RZ/G2L pin and gpio controller core wrapper Lad Prabhakar
2021-06-24 11:13   ` Geert Uytterhoeven
2021-06-16 13:26 ` [PATCH 3/3] pinctrl: renesas: Add pins/groups/functions for I2C, SCIF and USB supported by RZ/G2L SoC Lad Prabhakar
2021-06-17  2:55   ` kernel test robot [this message]
2021-06-17  2:55     ` kernel test robot
2021-06-24 11:24   ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106171038.FguCFVSp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=kbuild-all@lists.01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.