can: tcan4x5x: add option for selecting nWKRQ voltage
Subsystems (5)
v2 cover can: tcan4x5x: add option for selecting nWKRQ voltage
This series adds support for setting the nWKRQ voltage.
---
Changes in v2:
- Converted tcan4x5x.txt to DT schema. In
https://lore.kernel.org/linux-can/[email protected]/
- Reworked ti,nwkrq-voltage-sel, to DH schema style.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Sean Nyekjaer (2):
can: tcan4x5x: add option for selecting nWKRQ voltage
dt-bindings: can: tcan4x5x: Document the ti,nwkrq-voltage-sel option
.../devicetree/bindings/net/can/ti,tcan4x5x.yaml | 13 ++++++++ drivers/net/can/m_can/tcan4x5x-core.c | 35 ++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 3 files changed, 50 insertions(+)
---
base-commit: 2b2a9a08f8f0b904ea2bc61db3374421b0f944a6
change-id: 20241030-tcan-wkrqv-c62b906005da
prerequisite-change-id: 20241105-convert-tcan-4b516424ecf6:v2
prerequisite-patch-id: a652b1a16dadd5ff525d0b58fec56f605a976aa3
Best regards,
Signature · 1 line
Sean Nyekjaer <[email protected]>
PATCH v2 1/2 can: tcan4x5x: add option for selecting nWKRQ voltage
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Default is kept as the internal reference voltage.
--- drivers/net/can/m_can/tcan4x5x-core.c | 35 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 2 files changed, 37 insertions(+)
drivers/net/can/m_can/tcan4x5x-core.c +35 -0
@@ -92,6 +92,8 @@#define TCAN4X5X_MODE_STANDBY BIT(6)#define TCAN4X5X_MODE_NORMAL BIT(7) +#define TCAN4X5X_NWKRQ_VOLTAGE_MASK BIT(19) +#define TCAN4X5X_DISABLE_WAKE_MSK (BIT(31) | BIT(30))#define TCAN4X5X_DISABLE_INH_MSK BIT(9)
@@ -267,6 +269,11 @@ static int tcan4x5x_init(struct m_can_classdev *cdev)if (ret)return ret; + ret =regmap_update_bits (tcan4x5x->regmap,TCAN4X5X_CONFIG , +TCAN4X5X_NWKRQ_VOLTAGE_MASK , tcan4x5x->nwkrq_voltage); +if (ret) +return ret; +return ret; }
@@ -318,6 +325,28 @@ static const struct tcan4x5x_version_inforeturn &tcan4x5x_versions[TCAN4X5X ]; } +static int tcan4x5x_get_dt_data (struct m_can_classdev *cdev) +{ +struct tcan4x5x_priv *tcan4x5x =cdev_to_priv (cdev); +struct device_node *np = cdev->dev->of_node; +u8 prop; +int ret; + + ret =of_property_read_u8 (np,"ti,nwkrq-voltage-sel" , &prop); +if (!ret) { +if (prop <=1 ) + tcan4x5x->nwkrq_voltage = prop; +else +dev_warn (cdev->dev, +"nwkrq-voltage-sel have invalid option: %u\n" , + prop); + }else { + tcan4x5x->nwkrq_voltage =0 ; + } + +return 0 ; +} +static int tcan4x5x_get_gpios (struct m_can_classdev *cdev,const struct tcan4x5x_version_info *version_info) {
@@ -453,6 +482,12 @@ static int tcan4x5x_can_probe(struct spi_device *spi) goto out_power; } + ret =tcan4x5x_get_dt_data (mcan_class); +if (ret) { +dev_err (&spi->dev,"Getting dt data failed %pe\n" ,ERR_PTR (ret)); + goto out_power; + } +tcan4x5x_check_wake (priv); ret =tcan4x5x_write_tcan_reg (mcan_class,TCAN4X5X_INT_EN ,0 );
drivers/net/can/m_can/tcan4x5x.h +2 -0
@@ -42,6 +42,8 @@ struct tcan4x5x_priv {struct tcan4x5x_map_buf map_buf_rx;struct tcan4x5x_map_buf map_buf_tx; + +u8 nwkrq_voltage; }; static inline void
Signature · 1 line
2.46.2
Quoted 49 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Default is kept as the internal reference voltage.Signed-off-by Sean Nyekjaer <[email protected]>--- drivers/net/can/m_can/tcan4x5x-core.c | 35 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 2 files changed, 37 insertions(+)drivers/net/can/m_can/tcan4x5x-core.c +15
-0@@ -92,6 +92,8 @@#define TCAN4X5X_MODE_STANDBY BIT(6)#define TCAN4X5X_MODE_NORMAL BIT(7) +#define TCAN4X5X_NWKRQ_VOLTAGE_MASK BIT(19) +#define TCAN4X5X_DISABLE_WAKE_MSK (BIT(31) | BIT(30))#define TCAN4X5X_DISABLE_INH_MSK BIT(9)@@ -267,6 +269,11 @@ static int tcan4x5x_init(struct m_can_classdev *cdev)if (ret)return ret; + ret =regmap_update_bits (tcan4x5x->regmap,TCAN4X5X_CONFIG , +TCAN4X5X_NWKRQ_VOLTAGE_MASK , tcan4x5x->nwkrq_voltage); +if (ret) +return ret; +return ret; }@@ -318,6 +325,28 @@ static const struct tcan4x5x_version_inforeturn &tcan4x5x_versions[TCAN4X5X ]; } +static int tcan4x5x_get_dt_data (struct m_can_classdev *cdev) +{ +struct tcan4x5x_priv *tcan4x5x =cdev_to_priv (cdev); +struct device_node *np = cdev->dev->of_node; +u8 prop; +int ret; + + ret =of_property_read_u8 (np,"ti,nwkrq-voltage-sel" , &prop);
drivers/net/can/m_can/tcan4x5x-core.c static const struct tcan4x5x_version_info · line 345
Quoted 10 lines
drivers/net/can/m_can/tcan4x5x-core.c +10
-0+if (!ret) { +if (prop <=1 ) + tcan4x5x->nwkrq_voltage = prop; +else +dev_warn (cdev->dev, +"nwkrq-voltage-sel have invalid option: %u\n" , + prop); + }else { + tcan4x5x->nwkrq_voltage =0 ; + }
If the
if (prop <= 1)
condition fails, you print a warning, but you are not assigning a value to tcan4x5x->nwkrq_voltage. Is this intentional?
What about:
tcan4x5x->nwkrq_voltage = 0;
ret = of_property_read_u8(np, "ti,nwkrq-voltage-sel", &prop);
if (!ret) {
if (prop <= 1)
tcan4x5x->nwkrq_voltage = prop;
else
dev_warn(cdev->dev,
"nwkrq-voltage-sel have invalid option: %u\n",
prop);
}so that you make sure that tcan4x5x->nwkrq_voltage always gets a default zero value? Else, if you can make sure that tcan4x5x is always zero initialized, you can just drop the
tcan4x5x->nwkrq_voltage = 0;
thing.
Quoted 37 lines
drivers/net/can/m_can/tcan4x5x-core.c +9
-0+return 0 ; +} +static int tcan4x5x_get_gpios (struct m_can_classdev *cdev,const struct tcan4x5x_version_info *version_info) {@@ -453,6 +482,12 @@ static int tcan4x5x_can_probe(struct spi_device *spi) goto out_power; } + ret =tcan4x5x_get_dt_data (mcan_class); +if (ret) { +dev_err (&spi->dev,"Getting dt data failed %pe\n" ,ERR_PTR (ret)); + goto out_power; + } +tcan4x5x_check_wake (priv); ret =tcan4x5x_write_tcan_reg (mcan_class,TCAN4X5X_INT_EN ,0 );drivers/net/can/m_can/tcan4x5x.h +2
-1@@ -42,6 +42,8 @@ struct tcan4x5x_priv {struct tcan4x5x_map_buf map_buf_rx;struct tcan4x5x_map_buf map_buf_tx; + +u8 nwkrq_voltage; }; static inline void --2.46.2
Hi Vincent,
Quoted 13 lines · Vincent Mailhol
Quoted 12 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Default is kept as the internal reference voltage.Signed-off-by Sean Nyekjaer <[email protected]>--- drivers/net/can/m_can/tcan4x5x-core.c | 35 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 2 files changed, 37 insertions(+)
[...]
Quoted 40 lines
Quoted 9 lines
drivers/net/can/m_can/tcan4x5x-core.c +8
-0+static int tcan4x5x_get_dt_data (struct m_can_classdev *cdev) +{ +struct tcan4x5x_priv *tcan4x5x =cdev_to_priv (cdev); +struct device_node *np = cdev->dev->of_node; +u8 prop; +int ret; + + ret =of_property_read_u8 (np,"ti,nwkrq-voltage-sel" , &prop);drivers/net/can/m_can/tcan4x5x-core.c static const struct tcan4x5x_version_info · line 345
Quoted 10 lines
drivers/net/can/m_can/tcan4x5x-core.c +10
-0+if (!ret) { +if (prop <=1 ) + tcan4x5x->nwkrq_voltage = prop; +else +dev_warn (cdev->dev, +"nwkrq-voltage-sel have invalid option: %u\n" , + prop); + }else { + tcan4x5x->nwkrq_voltage =0 ; + }If the
if (prop <= 1)
condition fails, you print a warning, but you are not assigning a value to
tcan4x5x->nwkrq_voltage. Is this intentional?What about:
tcan4x5x->nwkrq_voltage = 0; ret = of_property_read_u8(np, "ti,nwkrq-voltage-sel", &prop); if (!ret) { if (prop <= 1) tcan4x5x->nwkrq_voltage = prop; else dev_warn(cdev->dev, "nwkrq-voltage-sel have invalid option: %u\n", prop); }
Quoted 7 lines
so that you make sure that
tcan4x5x->nwkrq_voltagealways gets a default zero value? Else, if you can make sure that tcan4x5x is always zero initialized, you can just drop thetcan4x5x->nwkrq_voltage = 0;thing.
Thanks for the review.
You are right, so I reworked this for v3:
https://lore.kernel.org/r/[email protected]
Quoted 4 lines
Quoted 4 lines
drivers/net/can/m_can/tcan4x5x-core.c +3
-0+return 0 ; +} +
[...]
Quoted 2 lines
Quoted 2 lines
/Sean
Quoted 62 lines · Sean Nyekjaer
Hi Vincent,
Quoted 13 lines · Vincent Mailhol
Quoted 12 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Default is kept as the internal reference voltage.Signed-off-by Sean Nyekjaer <[email protected]>--- drivers/net/can/m_can/tcan4x5x-core.c | 35 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 2 files changed, 37 insertions(+)[...]
Quoted 44 lines
Quoted 9 lines
drivers/net/can/m_can/tcan4x5x-core.c +8
-0+static int tcan4x5x_get_dt_data (struct m_can_classdev *cdev) +{ +struct tcan4x5x_priv *tcan4x5x =cdev_to_priv (cdev); +struct device_node *np = cdev->dev->of_node; +u8 prop; +int ret; + + ret =of_property_read_u8 (np,"ti,nwkrq-voltage-sel" , &prop);drivers/net/can/m_can/tcan4x5x-core.c static const struct tcan4x5x_version_info · line 345
Quoted 10 lines
drivers/net/can/m_can/tcan4x5x-core.c +10
-0+if (!ret) { +if (prop <=1 ) + tcan4x5x->nwkrq_voltage = prop; +else +dev_warn (cdev->dev, +"nwkrq-voltage-sel have invalid option: %u\n" , + prop); + }else { + tcan4x5x->nwkrq_voltage =0 ; + }If the
if (prop <= 1)
condition fails, you print a warning, but you are not assigning a value to
tcan4x5x->nwkrq_voltage. Is this intentional?What about:
tcan4x5x->nwkrq_voltage = 0; ret = of_property_read_u8(np, "ti,nwkrq-voltage-sel", &prop); if (!ret) { if (prop <= 1) tcan4x5x->nwkrq_voltage = prop; else dev_warn(cdev->dev, "nwkrq-voltage-sel have invalid option: %u\n", prop); }so that you make sure that
tcan4x5x->nwkrq_voltagealways gets a default zero value? Else, if you can make sure that tcan4x5x is always zero initialized, you can just drop the
Quoted 7 lines
Quoted 3 lines
tcan4x5x->nwkrq_voltage = 0;thing.
Thanks for the review.
You are right, so I reworked this for v3:
https://lore.kernel.org/r/[email protected]
I see. So this v2 was already outdated at the time of my review. Well, glad to hear that this was proactively fixed in the v3 and sorry for missing that.
Yours sincerely,
Vincent Mailhol
Marc Kleine-Budde
maintainerQuoted 81 lines · Vincent Mailhol
Quoted 49 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Default is kept as the internal reference voltage.Signed-off-by Sean Nyekjaer <[email protected]>--- drivers/net/can/m_can/tcan4x5x-core.c | 35 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/tcan4x5x.h | 2 ++ 2 files changed, 37 insertions(+)drivers/net/can/m_can/tcan4x5x-core.c +15
-0@@ -92,6 +92,8 @@#define TCAN4X5X_MODE_STANDBY BIT(6)#define TCAN4X5X_MODE_NORMAL BIT(7) +#define TCAN4X5X_NWKRQ_VOLTAGE_MASK BIT(19) +#define TCAN4X5X_DISABLE_WAKE_MSK (BIT(31) | BIT(30))#define TCAN4X5X_DISABLE_INH_MSK BIT(9)@@ -267,6 +269,11 @@ static int tcan4x5x_init(struct m_can_classdev *cdev)if (ret)return ret; + ret =regmap_update_bits (tcan4x5x->regmap,TCAN4X5X_CONFIG , +TCAN4X5X_NWKRQ_VOLTAGE_MASK , tcan4x5x->nwkrq_voltage); +if (ret) +return ret; +return ret; }@@ -318,6 +325,28 @@ static const struct tcan4x5x_version_inforeturn &tcan4x5x_versions[TCAN4X5X ]; } +static int tcan4x5x_get_dt_data (struct m_can_classdev *cdev) +{ +struct tcan4x5x_priv *tcan4x5x =cdev_to_priv (cdev); +struct device_node *np = cdev->dev->of_node; +u8 prop; +int ret; + + ret =of_property_read_u8 (np,"ti,nwkrq-voltage-sel" , &prop);drivers/net/can/m_can/tcan4x5x-core.c static const struct tcan4x5x_version_info · line 345
Quoted 10 lines
drivers/net/can/m_can/tcan4x5x-core.c +10
-0+if (!ret) { +if (prop <=1 ) + tcan4x5x->nwkrq_voltage = prop; +else +dev_warn (cdev->dev, +"nwkrq-voltage-sel have invalid option: %u\n" , + prop); + }else { + tcan4x5x->nwkrq_voltage =0 ; + }If the
if (prop <= 1)
condition fails, you print a warning, but you are not assigning a value to
tcan4x5x->nwkrq_voltage. Is this intentional?What about:
tcan4x5x->nwkrq_voltage = 0; ret = of_property_read_u8(np, "ti,nwkrq-voltage-sel", &prop); if (!ret) { if (prop <= 1) tcan4x5x->nwkrq_voltage = prop; else dev_warn(cdev->dev, "nwkrq-voltage-sel have invalid option: %u\n", prop); }
Quoted 3 lines
so that you make sure that
tcan4x5x->nwkrq_voltagealways gets a default zero value? Else, if you can make sure that tcan4x5x is always zero initialized, you can just drop the
The tcan4x5x_priv is allocated in the netdev priv, which is initialized with 0x0.
Quoted 4 lines
tcan4x5x->nwkrq_voltage = 0;thing.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
PATCH v2 2/2 dt-bindings: can: tcan4x5x: Document the ti,nwkrq-voltage-sel option
In reply to Sean NyekjaernWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
--- Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +13 -0
@@ -106,6 +106,18 @@ properties: Must be half or less of "clocks" frequency. maximum: 18000000 + ti,nwkrq-voltage-sel: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + nWKRQ Pin GPO buffer voltage rail configuration. + The option of this properties will tell which + voltage rail is used for the nWKRQ Pin. + oneOf: + - description: Internal voltage rail + const: 0 + - description: VIO voltage rail + const: 1 + wakeup-source: $ref: /schemas/types.yaml#/definitions/flag description:
@@ -157,6 +169,7 @@ examples: device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; + ti,nwkrq-voltage-sel = /bits/ 8 <0>; wakeup-source; }; };
Signature · 1 line
2.46.2
Marc Kleine-Budde
maintainerRe: [PATCH v2 2/2] dt-bindings: can: tcan4x5x: Document the ti,nwkrq-voltage-sel option
Quoted 19 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Signed-off-by Sean Nyekjaer <[email protected]>--- Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +1
-0@@ -106,6 +106,18 @@ properties: Must be half or less of "clocks" frequency. maximum: 18000000 + ti,nwkrq-voltage-sel:
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml properties: · line 119
Quoted 10 lines
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +10
-0+ $ref: /schemas/types.yaml#/definitions/uint8 + description: + nWKRQ Pin GPO buffer voltage rail configuration. + The option of this properties will tell which + voltage rail is used for the nWKRQ Pin. + oneOf: + - description: Internal voltage rail + const: 0 + - description: VIO voltage rail + const: 1
We usually don't want to put register values into the DT. Is 0, i.e. the internal voltage rail the default? Is using a boolean better here?
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Re: [PATCH v2 2/2] dt-bindings: can: tcan4x5x: Document the ti,nwkrq-voltage-sel option
Hi Marc,
Quoted 34 lines · Marc Kleine-Budde
Quoted 19 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Signed-off-by Sean Nyekjaer <[email protected]>--- Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +1
-0@@ -106,6 +106,18 @@ properties: Must be half or less of "clocks" frequency. maximum: 18000000 + ti,nwkrq-voltage-sel:Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml properties: · line 119
Quoted 10 lines
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +10
-0+ $ref: /schemas/types.yaml#/definitions/uint8 + description: + nWKRQ Pin GPO buffer voltage rail configuration. + The option of this properties will tell which + voltage rail is used for the nWKRQ Pin. + oneOf: + - description: Internal voltage rail + const: 0 + - description: VIO voltage rail + const: 1We usually don't want to put register values into the DT. Is 0, i.e. the internal voltage rail the default? Is using a boolean better here?
Quoted 3 lines
regards,
Marc
Thanks for the review :)
Can you come up with a sane naming?
A boolean that equals true when it's set to VIO voltage? Or the other way around?
/Sean
Rob Herring
maintainerRe: [PATCH v2 2/2] dt-bindings: can: tcan4x5x: Document the ti,nwkrq-voltage-sel option
Quoted 41 lines · Sean Nyekjaer
Hi Marc,
Quoted 34 lines · Marc Kleine-Budde
Quoted 19 lines · Sean Nyekjaer
nWKRQ supports an output voltage of either the internal reference voltage (3.6V) or the reference voltage of the digital interface 0 - 6V. Add the devicetree option ti,nwkrq-voltage-sel to be able to select between them.
Signed-off-by Sean Nyekjaer <[email protected]>--- Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +1
-0@@ -106,6 +106,18 @@ properties: Must be half or less of "clocks" frequency. maximum: 18000000 + ti,nwkrq-voltage-sel:Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml properties: · line 119
Quoted 10 lines
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml +10
-0+ $ref: /schemas/types.yaml#/definitions/uint8 + description: + nWKRQ Pin GPO buffer voltage rail configuration. + The option of this properties will tell which + voltage rail is used for the nWKRQ Pin. + oneOf: + - description: Internal voltage rail + const: 0 + - description: VIO voltage rail + const: 1We usually don't want to put register values into the DT. Is 0, i.e. the internal voltage rail the default? Is using a boolean better here?
Quoted 3 lines
regards,
Marc
Quoted 5 lines
Thanks for the review :)
Can you come up with a sane naming?
A boolean that equals true when it's set to VIO voltage? Or the other way around?
Make the property named/present for the less common case if there is one. That might not be known here.
Rob
Jakub Kicinski
maintainerQuoted 1 line · On Mon, 11 Nov 2024 09:54:48 +0100 Sean Nyekjaer wrote:
This series adds support for setting the nWKRQ voltage.
There is no need to CC netdev@ on pure drivers/net/can changes. Since these changes are not tagged in any way I have to manually go and drop all of them from our patchwork.
Hi Jakub,
Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Mon, 11 Nov 2024 09:54:48 +0100 Sean Nyekjaer wrote:
This series adds support for setting the nWKRQ voltage.
There is no need to CC netdev@ on pure
drivers/net/canchanges. Since these changes are not tagged in any way I have to manually go and drop all of them from our patchwork.
Oh sorry for that.
I'm using b4's --auto-to-cc feature, any way to fix that?
Br,
/Sean
Marc Kleine-Budde
maintainerQuoted 7 lines · Sean Nyekjaer
Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Mon, 11 Nov 2024 09:54:48 +0100 Sean Nyekjaer wrote:
This series adds support for setting the nWKRQ voltage.
There is no need to CC netdev@ on pure
drivers/net/canchanges. Since these changes are not tagged in any way I have to manually go and drop all of them from our patchwork.
Does the prefix "can-next" help, i.e.:
| [PATCH can-next v2 0/2]
which can be configured via:
| b4 prep --set-prefixes "can-next"
Quoted 2 lines
Oh sorry for that.
I'm using b4's --auto-to-cc feature, any way to fix that?
You can manually trim the list of Cc: using:
| b4 prep --edit-cover
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Jakub Kicinski
maintainerQuoted 11 lines · On Tue, 12 Nov 2024 08:16:02 +0100 Marc Kleine-Budde wrote:
Quoted 3 lines
Quoted 3 lines
There is no need to CC netdev@ on pure
drivers/net/canchanges. Since these changes are not tagged in any way I have to manually go and drop all of them from our patchwork.Does the prefix "can-next" help, i.e.:
| [PATCH can-next v2 0/2]
which can be configured via:
| b4 prep --set-prefixes "can-next"
Yup, prefix would make it easy for us to automatically discard !
Quoted 6 lines
Quoted 2 lines
Oh sorry for that.
I'm using b4's --auto-to-cc feature, any way to fix that?You can manually trim the list of Cc: using:
| b4 prep --edit-cover
My bad actually, I didn't realize we don't have an X: entries on net/can/ under general networking in MAINTAINERS.
Would you mind if I added them?
Quoted 4 lines · Jakub Kicinski
My bad actually, I didn't realize we don't have an X: entries on
net/can/under general networking inMAINTAINERS.Would you mind if I added them?
OK for me. I guess you want to add the exclusion for both the
CAN NETWORK DRIVERS
and the
CAN NETWORK LAYER
entries in MAINTAINERS.
Yours sincerely,
Vincent Mailhol
Marc Kleine-Budde
maintainerQuoted 3 lines · Vincent Mailhol
Quoted 2 lines · Jakub Kicinski
My bad actually, I didn't realize we don't have an X: entries on
net/can/under general networking inMAINTAINERS.
^^^^^^^^^^^^^^^^^^
Quoted 5 lines
Quoted 2 lines
Would you mind if I added them?
OK for me. I guess you want to add the exclusion for both the
Quoted 7 lines
CAN NETWORK DRIVERS
and the
CAN NETWORK LAYER
entries in
MAINTAINERS.
I thinks, it's the other way round.
General networking gets an X: for driver/net/can and driver/can/ and the include files.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Quoted 14 lines · Marc Kleine-Budde
Quoted 3 lines · Vincent Mailhol
Quoted 2 lines · Jakub Kicinski
My bad actually, I didn't realize we don't have an X: entries on
net/can/under general networking inMAINTAINERS.^^^^^^^^^^^^^^^^^^Quoted 9 lines
Quoted 2 lines
Would you mind if I added them?
OK for me. I guess you want to add the exclusion for both the
CAN NETWORK DRIVERS
and the
Quoted 8 lines
Quoted 3 lines
CAN NETWORK LAYER
entries in
MAINTAINERS.I thinks, it's the other way round.
General networking gets an X: for driver/net/can and driver/can/ and the include files.
Indeed. Now that you say it, makes perfect sense.
@Jakub, similar to Marc, feel free to add my Acked-by tag when you send such a patch.
Yours sincerely,
Vincent Mailhol
Quoted 18 lines · Jakub Kicinski
Quoted 11 lines · On Tue, 12 Nov 2024 08:16:02 +0100 Marc Kleine-Budde wrote:
Quoted 3 lines
Quoted 3 lines
There is no need to CC netdev@ on pure
drivers/net/canchanges. Since these changes are not tagged in any way I have to manually go and drop all of them from our patchwork.Does the prefix "can-next" help, i.e.:
| [PATCH can-next v2 0/2]
which can be configured via:
| b4 prep --set-prefixes "can-next"
Yup, prefix would make it easy for us to automatically discard !
Quoted 3 lines
Quoted 2 lines
Oh sorry for that.
I'm using b4's --auto-to-cc feature, any way to fix that?
Quoted 8 lines
Quoted 3 lines
You can manually trim the list of Cc: using:
| b4 prep --edit-cover
My bad actually, I didn't realize we don't have an X: entries on
net/can/under general networking inMAINTAINERS.Would you mind if I added them?
Makes sense! I didn'k know that X: exists and that it makes total sense here.
Feel free to add my:
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Marc Kleine-Budde
maintainerQuoted 1 line · Sean Nyekjaer
This series adds support for setting the nWKRQ voltage.
IIRC the yaml change should be made before the driver change. Please make the yaml changes the 1st patch in the series.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Hi Marc,
Quoted 8 lines · Marc Kleine-Budde
Quoted 1 line · Sean Nyekjaer
This series adds support for setting the nWKRQ voltage.
IIRC the yaml change should be made before the driver change. Please make the yaml changes the 1st patch in the series.
Marc
I know, so I have added, prerequisite-change-id as pr the b4 manual.
/Sean
Marc Kleine-Budde
maintainerQuoted 6 lines · Sean Nyekjaer
Hi Marc,
Quoted 3 lines · Marc Kleine-Budde
Quoted 1 line · Sean Nyekjaer
This series adds support for setting the nWKRQ voltage.
Quoted 7 lines
Quoted 5 lines
IIRC the yaml change should be made before the driver change. Please make the yaml changes the 1st patch in the series.
Marc
I know, so I have added, prerequisite-change-id as pr the b4 manual.
I mean the order of patches in this series. First the yaml patch, then the code change.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Hi Marc,
Quoted 13 lines · Marc Kleine-Budde
Quoted 12 lines · Sean Nyekjaer
Hi Marc,
Quoted 8 lines · Marc Kleine-Budde
Quoted 1 line · Sean Nyekjaer
This series adds support for setting the nWKRQ voltage.
IIRC the yaml change should be made before the driver change. Please make the yaml changes the 1st patch in the series.
Marc
Quoted 8 lines
Quoted 1 line
I know, so I have added, prerequisite-change-id as pr the b4 manual.
I mean the order of patches in this series. First the yaml patch, then the code change.
regards,
Marc
Oh, noted thanks!
/Sean