From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrunet@baylibre.com (Jerome Brunet) Date: Mon, 08 Jan 2018 09:42:54 +0100 Subject: [PATCH v2 3/5] ARM64: dts: meson-axg: uart: Add the pinctrl info description In-Reply-To: References: <20180106001044.108163-1-yixun.lan@amlogic.com> <20180106001044.108163-4-yixun.lan@amlogic.com> Message-ID: <1515400974.5048.58.camel@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org On Mon, 2018-01-08 at 14:07 +0800, Yixun Lan wrote: > > (the following question just came up while I was looking at this > > patch, but I guess it's more a question towards the pinctrl driver) > > the name of the function looks a bit "weird" since below you are also > > using "uart_ao_b" > > you right here, it's a question related to pinctrl subsystem. > from my point of view, it's even weird from the hardware perspective: > that, the UART function of AO domain route the pin of EE domain.. > > > did you choose "uart_ao_b_gpioz" here because we cannot have the same > > function name for the periphs and AO pinctrl or is there some other > > reason? > > > > Current there is a conflict in the code level which both two pinctrl > tree (EE, AO) are using the same macro[1] to expand the definitions, so > there would be conflict symbol if we name both as 'uart_ao_b' > > I think your idea of having an uniform function 'uart_ao_b' for both > pinctrl subsystem is actually possible/positive.. > > I will think about your suggestion and come up with a patch later, > thanks a lot! > > > [1] drivers/pinctrl/meson/pinctrl-meson.h > > #define FUNCTION(fn) \ > { \ > .name = #fn, \ > .groups = fn ## _groups, \ > .num_groups = ARRAY_SIZE(fn ## _groups), \ > } The name feels weird because it should have been uart_ao_b_z ... We missed it in the initial review. Except for correcting the function name, I don't think this justify a change a pinctrl From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrunet@baylibre.com (Jerome Brunet) Date: Mon, 08 Jan 2018 09:42:54 +0100 Subject: [PATCH v2 3/5] ARM64: dts: meson-axg: uart: Add the pinctrl info description In-Reply-To: References: <20180106001044.108163-1-yixun.lan@amlogic.com> <20180106001044.108163-4-yixun.lan@amlogic.com> Message-ID: <1515400974.5048.58.camel@baylibre.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 2018-01-08 at 14:07 +0800, Yixun Lan wrote: > > (the following question just came up while I was looking at this > > patch, but I guess it's more a question towards the pinctrl driver) > > the name of the function looks a bit "weird" since below you are also > > using "uart_ao_b" > > you right here, it's a question related to pinctrl subsystem. > from my point of view, it's even weird from the hardware perspective: > that, the UART function of AO domain route the pin of EE domain.. > > > did you choose "uart_ao_b_gpioz" here because we cannot have the same > > function name for the periphs and AO pinctrl or is there some other > > reason? > > > > Current there is a conflict in the code level which both two pinctrl > tree (EE, AO) are using the same macro[1] to expand the definitions, so > there would be conflict symbol if we name both as 'uart_ao_b' > > I think your idea of having an uniform function 'uart_ao_b' for both > pinctrl subsystem is actually possible/positive.. > > I will think about your suggestion and come up with a patch later, > thanks a lot! > > > [1] drivers/pinctrl/meson/pinctrl-meson.h > > #define FUNCTION(fn) \ > { \ > .name = #fn, \ > .groups = fn ## _groups, \ > .num_groups = ARRAY_SIZE(fn ## _groups), \ > } The name feels weird because it should have been uart_ao_b_z ... We missed it in the initial review. Except for correcting the function name, I don't think this justify a change a pinctrl From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Brunet Subject: Re: [PATCH v2 3/5] ARM64: dts: meson-axg: uart: Add the pinctrl info description Date: Mon, 08 Jan 2018 09:42:54 +0100 Message-ID: <1515400974.5048.58.camel@baylibre.com> References: <20180106001044.108163-1-yixun.lan@amlogic.com> <20180106001044.108163-4-yixun.lan@amlogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Yixun Lan , Martin Blumenstingl Cc: Kevin Hilman , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Rutland , Neil Armstrong , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Carlo Caione , linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Xingyun Chen List-Id: devicetree@vger.kernel.org On Mon, 2018-01-08 at 14:07 +0800, Yixun Lan wrote: > > (the following question just came up while I was looking at this > > patch, but I guess it's more a question towards the pinctrl driver) > > the name of the function looks a bit "weird" since below you are also > > using "uart_ao_b" > > you right here, it's a question related to pinctrl subsystem. > from my point of view, it's even weird from the hardware perspective: > that, the UART function of AO domain route the pin of EE domain.. > > > did you choose "uart_ao_b_gpioz" here because we cannot have the same > > function name for the periphs and AO pinctrl or is there some other > > reason? > > > > Current there is a conflict in the code level which both two pinctrl > tree (EE, AO) are using the same macro[1] to expand the definitions, so > there would be conflict symbol if we name both as 'uart_ao_b' > > I think your idea of having an uniform function 'uart_ao_b' for both > pinctrl subsystem is actually possible/positive.. > > I will think about your suggestion and come up with a patch later, > thanks a lot! > > > [1] drivers/pinctrl/meson/pinctrl-meson.h > > #define FUNCTION(fn) \ > { \ > .name = #fn, \ > .groups = fn ## _groups, \ > .num_groups = ARRAY_SIZE(fn ## _groups), \ > } The name feels weird because it should have been uart_ao_b_z ... We missed it in the initial review. Except for correcting the function name, I don't think this justify a change a pinctrl -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756006AbeAHIm7 (ORCPT + 1 other); Mon, 8 Jan 2018 03:42:59 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33185 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755907AbeAHIm5 (ORCPT ); Mon, 8 Jan 2018 03:42:57 -0500 X-Google-Smtp-Source: ACJfBovyQiV1a+oA8ENk7ndtHcytueOPe2raf9op5uMNk0S9NYuDkCdh8a/jDCORztx7u8x4RHP5RA== Message-ID: <1515400974.5048.58.camel@baylibre.com> Subject: Re: [PATCH v2 3/5] ARM64: dts: meson-axg: uart: Add the pinctrl info description From: Jerome Brunet To: Yixun Lan , Martin Blumenstingl Cc: Kevin Hilman , devicetree@vger.kernel.org, Mark Rutland , Neil Armstrong , linux-kernel@vger.kernel.org, Rob Herring , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Xingyun Chen Date: Mon, 08 Jan 2018 09:42:54 +0100 In-Reply-To: References: <20180106001044.108163-1-yixun.lan@amlogic.com> <20180106001044.108163-4-yixun.lan@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.3 (3.26.3-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, 2018-01-08 at 14:07 +0800, Yixun Lan wrote: > > (the following question just came up while I was looking at this > > patch, but I guess it's more a question towards the pinctrl driver) > > the name of the function looks a bit "weird" since below you are also > > using "uart_ao_b" > > you right here, it's a question related to pinctrl subsystem. > from my point of view, it's even weird from the hardware perspective: > that, the UART function of AO domain route the pin of EE domain.. > > > did you choose "uart_ao_b_gpioz" here because we cannot have the same > > function name for the periphs and AO pinctrl or is there some other > > reason? > > > > Current there is a conflict in the code level which both two pinctrl > tree (EE, AO) are using the same macro[1] to expand the definitions, so > there would be conflict symbol if we name both as 'uart_ao_b' > > I think your idea of having an uniform function 'uart_ao_b' for both > pinctrl subsystem is actually possible/positive.. > > I will think about your suggestion and come up with a patch later, > thanks a lot! > > > [1] drivers/pinctrl/meson/pinctrl-meson.h > > #define FUNCTION(fn) \ > { \ > .name = #fn, \ > .groups = fn ## _groups, \ > .num_groups = ARRAY_SIZE(fn ## _groups), \ > } The name feels weird because it should have been uart_ao_b_z ... We missed it in the initial review. Except for correcting the function name, I don't think this justify a change a pinctrl