* [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard
@ 2023-04-27 11:30 Naresh Solanki
2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Naresh Solanki @ 2023-04-27 11:30 UTC (permalink / raw)
To: Lee Jones; +Cc: Liam Girdwood, Mark Brown, Naresh Solanki, linux-kernel
The previous version of this driver included wildcards in file names
and descriptions. This patch renames the driver to only support MAX5970
and MAX5978, which are the only chips that the driver actually supports.
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
---
drivers/mfd/Kconfig | 4 ++--
drivers/mfd/simple-mfd-i2c.c | 18 +++++++++---------
include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++--------
3 files changed, 19 insertions(+), 19 deletions(-)
rename include/linux/mfd/{max597x.h => max5970.h} (92%)
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index e90463c4441c..71231388e03c 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -266,8 +266,8 @@ config MFD_MADERA_SPI
Support for the Cirrus Logic Madera platform audio SoC
core functionality controlled via SPI.
-config MFD_MAX597X
- tristate "Maxim 597x power switch and monitor"
+config MFD_MAX5970
+ tristate "Maxim 5970/5978 power switch and monitor"
depends on (I2C && OF)
select MFD_SIMPLE_MFD_I2C
help
diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c
index 20782b4dd172..1f1c007560d8 100644
--- a/drivers/mfd/simple-mfd-i2c.c
+++ b/drivers/mfd/simple-mfd-i2c.c
@@ -72,22 +72,22 @@ static const struct simple_mfd_data silergy_sy7636a = {
.mfd_cell_size = ARRAY_SIZE(sy7636a_cells),
};
-static const struct mfd_cell max597x_cells[] = {
- { .name = "max597x-regulator", },
- { .name = "max597x-iio", },
- { .name = "max597x-led", },
+static const struct mfd_cell max5970_cells[] = {
+ { .name = "max5970-regulator", },
+ { .name = "max5970-iio", },
+ { .name = "max5970-led", },
};
-static const struct simple_mfd_data maxim_max597x = {
- .mfd_cell = max597x_cells,
- .mfd_cell_size = ARRAY_SIZE(max597x_cells),
+static const struct simple_mfd_data maxim_max5970 = {
+ .mfd_cell = max5970_cells,
+ .mfd_cell_size = ARRAY_SIZE(max5970_cells),
};
static const struct of_device_id simple_mfd_i2c_of_match[] = {
{ .compatible = "kontron,sl28cpld" },
{ .compatible = "silergy,sy7636a", .data = &silergy_sy7636a},
- { .compatible = "maxim,max5970", .data = &maxim_max597x},
- { .compatible = "maxim,max5978", .data = &maxim_max597x},
+ { .compatible = "maxim,max5970", .data = &maxim_max5970},
+ { .compatible = "maxim,max5978", .data = &maxim_max5970},
{}
};
MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match);
diff --git a/include/linux/mfd/max597x.h b/include/linux/mfd/max5970.h
similarity index 92%
rename from include/linux/mfd/max597x.h
rename to include/linux/mfd/max5970.h
index a850b2e02e6a..762a7d40c843 100644
--- a/include/linux/mfd/max597x.h
+++ b/include/linux/mfd/max5970.h
@@ -7,25 +7,25 @@
* Author: Patrick Rudolph <patrick.rudolph@9elements.com>
*/
-#ifndef _MFD_MAX597X_H
-#define _MFD_MAX597X_H
+#ifndef _MFD_MAX5970_H
+#define _MFD_MAX5970_H
#include <linux/regmap.h>
#define MAX5970_NUM_SWITCHES 2
#define MAX5978_NUM_SWITCHES 1
-#define MAX597X_NUM_LEDS 4
+#define MAX5970_NUM_LEDS 4
-struct max597x_data {
+struct max5970_data {
int num_switches;
u32 irng[MAX5970_NUM_SWITCHES];
u32 mon_rng[MAX5970_NUM_SWITCHES];
u32 shunt_micro_ohms[MAX5970_NUM_SWITCHES];
};
-enum max597x_chip_type {
- MAX597x_TYPE_MAX5978 = 1,
- MAX597x_TYPE_MAX5970,
+enum max5970_chip_type {
+ TYPE_MAX5978 = 1,
+ TYPE_MAX5970,
};
#define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4)
@@ -93,4 +93,4 @@ enum max597x_chip_type {
#define MAX_REGISTERS 0x49
#define ADC_MASK 0x3FF
-#endif /* _MFD_MAX597X_H */
+#endif /* _MFD_MAX5970_H */
base-commit: b4c288cfd2f84c44994330c408e14645d45dee5b
--
2.39.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 2/2] regulator: max5970: Rename driver and remove wildcard 2023-04-27 11:30 [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard Naresh Solanki @ 2023-04-27 11:30 ` Naresh Solanki 2023-04-30 15:58 ` Mark Brown 2023-06-02 8:15 ` Lee Jones 2023-05-04 10:05 ` [PATCH 1/2] mfd: " Naresh Solanki ` (2 subsequent siblings) 3 siblings, 2 replies; 12+ messages in thread From: Naresh Solanki @ 2023-04-27 11:30 UTC (permalink / raw) To: Liam Girdwood, Mark Brown; +Cc: Lee Jones, Naresh Solanki, linux-kernel The previous version of this driver included wildcards in file names and descriptions. This patch renames the driver to only support MAX5970 and MAX5978, which are the only chips that the driver actually supports. Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> --- drivers/regulator/Kconfig | 6 +- drivers/regulator/Makefile | 2 +- ...ax597x-regulator.c => max5970-regulator.c} | 126 +++++++++--------- 3 files changed, 67 insertions(+), 67 deletions(-) rename drivers/regulator/{max597x-regulator.c => max5970-regulator.c} (76%) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index aae28d0a489c..36465aeb4e21 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -546,11 +546,11 @@ config REGULATOR_MAX1586 regulator via I2C bus. The provided regulator is suitable for PXA27x chips to control VCC_CORE and VCC_USIM voltages. -config REGULATOR_MAX597X - tristate "Maxim 597x power switch and monitor" +config REGULATOR_MAX5970 + tristate "Maxim 5970/5978 power switch and monitor" depends on I2C depends on OF - depends on MFD_MAX597X + depends on MFD_MAX5970 help This driver controls a Maxim 5970/5978 switch via I2C bus. The MAX5970/5978 is a smart switch with no output regulation, but diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile index ee383d8fc835..aed1b7c2eb78 100644 --- a/drivers/regulator/Makefile +++ b/drivers/regulator/Makefile @@ -67,7 +67,7 @@ obj-$(CONFIG_REGULATOR_LTC3589) += ltc3589.o obj-$(CONFIG_REGULATOR_LTC3676) += ltc3676.o obj-$(CONFIG_REGULATOR_MAX14577) += max14577-regulator.o obj-$(CONFIG_REGULATOR_MAX1586) += max1586.o -obj-$(CONFIG_REGULATOR_MAX597X) += max597x-regulator.o +obj-$(CONFIG_REGULATOR_MAX5970) += max5970-regulator.o obj-$(CONFIG_REGULATOR_MAX77620) += max77620-regulator.o obj-$(CONFIG_REGULATOR_MAX77650) += max77650-regulator.o obj-$(CONFIG_REGULATOR_MAX8649) += max8649.o diff --git a/drivers/regulator/max597x-regulator.c b/drivers/regulator/max5970-regulator.c similarity index 76% rename from drivers/regulator/max597x-regulator.c rename to drivers/regulator/max5970-regulator.c index 648e3641885a..08c8eb7b1ed6 100644 --- a/drivers/regulator/max597x-regulator.c +++ b/drivers/regulator/max5970-regulator.c @@ -20,19 +20,19 @@ #include <linux/regulator/of_regulator.h> #include <linux/platform_device.h> -#include <linux/mfd/max597x.h> +#include <linux/mfd/max5970.h> -struct max597x_regulator { +struct max5970_regulator { int num_switches, mon_rng, irng, shunt_micro_ohms, lim_uA; struct regmap *regmap; }; -enum max597x_regulator_id { - MAX597X_SW0, - MAX597X_SW1, +enum max5970_regulator_id { + MAX5970_SW0, + MAX5970_SW1, }; -static int max597x_uvp_ovp_check_mode(struct regulator_dev *rdev, int severity) +static int max5970_uvp_ovp_check_mode(struct regulator_dev *rdev, int severity) { int ret, reg; @@ -54,11 +54,11 @@ static int max597x_uvp_ovp_check_mode(struct regulator_dev *rdev, int severity) return 0; } -static int max597x_set_vp(struct regulator_dev *rdev, int lim_uV, int severity, +static int max5970_set_vp(struct regulator_dev *rdev, int lim_uV, int severity, bool enable, bool overvoltage) { int off_h, off_l, reg, ret; - struct max597x_regulator *data = rdev_get_drvdata(rdev); + struct max5970_regulator *data = rdev_get_drvdata(rdev); int channel = rdev_get_id(rdev); if (overvoltage) { @@ -96,7 +96,7 @@ static int max597x_set_vp(struct regulator_dev *rdev, int lim_uV, int severity, return 0; } -static int max597x_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity, +static int max5970_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity, bool enable) { int ret; @@ -108,14 +108,14 @@ static int max597x_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity, if ((lim_uV && !enable) || (!lim_uV && enable)) return -EINVAL; - ret = max597x_uvp_ovp_check_mode(rdev, severity); + ret = max5970_uvp_ovp_check_mode(rdev, severity); if (ret) return ret; - return max597x_set_vp(rdev, lim_uV, severity, enable, false); + return max5970_set_vp(rdev, lim_uV, severity, enable, false); } -static int max597x_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity, +static int max5970_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity, bool enable) { int ret; @@ -127,20 +127,20 @@ static int max597x_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity, if ((lim_uV && !enable) || (!lim_uV && enable)) return -EINVAL; - ret = max597x_uvp_ovp_check_mode(rdev, severity); + ret = max5970_uvp_ovp_check_mode(rdev, severity); if (ret) return ret; - return max597x_set_vp(rdev, lim_uV, severity, enable, true); + return max5970_set_vp(rdev, lim_uV, severity, enable, true); } -static int max597x_set_ocp(struct regulator_dev *rdev, int lim_uA, +static int max5970_set_ocp(struct regulator_dev *rdev, int lim_uA, int severity, bool enable) { int val, reg; unsigned int vthst, vthfst; - struct max597x_regulator *data = rdev_get_drvdata(rdev); + struct max5970_regulator *data = rdev_get_drvdata(rdev); int rdev_id = rdev_get_id(rdev); /* * MAX5970 doesn't has enable control for ocp. @@ -187,7 +187,7 @@ static int max597x_set_ocp(struct regulator_dev *rdev, int lim_uA, return regmap_write(rdev->regmap, reg, val); } -static int max597x_get_status(struct regulator_dev *rdev) +static int max5970_get_status(struct regulator_dev *rdev) { int val, ret; @@ -208,21 +208,21 @@ static int max597x_get_status(struct regulator_dev *rdev) return REGULATOR_STATUS_OFF; } -static const struct regulator_ops max597x_switch_ops = { +static const struct regulator_ops max5970_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, - .get_status = max597x_get_status, - .set_over_voltage_protection = max597x_set_ovp, - .set_under_voltage_protection = max597x_set_uvp, - .set_over_current_protection = max597x_set_ocp, + .get_status = max5970_get_status, + .set_over_voltage_protection = max5970_set_ovp, + .set_under_voltage_protection = max5970_set_uvp, + .set_over_current_protection = max5970_set_ocp, }; -static int max597x_dt_parse(struct device_node *np, +static int max5970_dt_parse(struct device_node *np, const struct regulator_desc *desc, struct regulator_config *cfg) { - struct max597x_regulator *data = cfg->driver_data; + struct max5970_regulator *data = cfg->driver_data; int ret = 0; ret = @@ -236,26 +236,26 @@ static int max597x_dt_parse(struct device_node *np, } -#define MAX597X_SWITCH(_ID, _ereg, _chan, _supply) { \ +#define MAX5970_SWITCH(_ID, _ereg, _chan, _supply) { \ .name = #_ID, \ .of_match = of_match_ptr(#_ID), \ - .ops = &max597x_switch_ops, \ + .ops = &max5970_switch_ops, \ .regulators_node = of_match_ptr("regulators"), \ .type = REGULATOR_VOLTAGE, \ - .id = MAX597X_##_ID, \ + .id = MAX5970_##_ID, \ .owner = THIS_MODULE, \ .supply_name = _supply, \ .enable_reg = _ereg, \ .enable_mask = CHXEN((_chan)), \ - .of_parse_cb = max597x_dt_parse, \ + .of_parse_cb = max5970_dt_parse, \ } static const struct regulator_desc regulators[] = { - MAX597X_SWITCH(SW0, MAX5970_REG_CHXEN, 0, "vss1"), - MAX597X_SWITCH(SW1, MAX5970_REG_CHXEN, 1, "vss2"), + MAX5970_SWITCH(SW0, MAX5970_REG_CHXEN, 0, "vss1"), + MAX5970_SWITCH(SW1, MAX5970_REG_CHXEN, 1, "vss2"), }; -static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg, +static int max5970_regmap_read_clear(struct regmap *map, unsigned int reg, unsigned int *val) { int ret; @@ -270,14 +270,14 @@ static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg, return 0; } -static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, +static int max5970_irq_handler(int irq, struct regulator_irq_data *rid, unsigned long *dev_mask) { struct regulator_err_state *stat; - struct max597x_regulator *d = (struct max597x_regulator *)rid->data; + struct max5970_regulator *d = (struct max5970_regulator *)rid->data; int val, ret, i; - ret = max597x_regmap_read_clear(d->regmap, MAX5970_REG_FAULT0, &val); + ret = max5970_regmap_read_clear(d->regmap, MAX5970_REG_FAULT0, &val); if (ret) return REGULATOR_FAILED_RETRY; @@ -302,7 +302,7 @@ static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, } } - ret = max597x_regmap_read_clear(d->regmap, MAX5970_REG_FAULT1, &val); + ret = max5970_regmap_read_clear(d->regmap, MAX5970_REG_FAULT1, &val); if (ret) return REGULATOR_FAILED_RETRY; @@ -320,7 +320,7 @@ static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, } } - ret = max597x_regmap_read_clear(d->regmap, MAX5970_REG_FAULT2, &val); + ret = max5970_regmap_read_clear(d->regmap, MAX5970_REG_FAULT2, &val); if (ret) return REGULATOR_FAILED_RETRY; @@ -357,7 +357,7 @@ static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, return 0; } -static int max597x_adc_range(struct regmap *regmap, const int ch, +static int max5970_adc_range(struct regmap *regmap, const int ch, u32 *irng, u32 *mon_rng) { unsigned int reg; @@ -391,14 +391,14 @@ static int max597x_adc_range(struct regmap *regmap, const int ch, return 0; } -static int max597x_setup_irq(struct device *dev, +static int max5970_setup_irq(struct device *dev, int irq, struct regulator_dev *rdevs[MAX5970_NUM_SWITCHES], - int num_switches, struct max597x_regulator *data) + int num_switches, struct max5970_regulator *data) { - struct regulator_irq_desc max597x_notif = { - .name = "max597x-irq", - .map_event = max597x_irq_handler, + struct regulator_irq_desc max5970_notif = { + .name = "max5970-irq", + .map_event = max5970_irq_handler, .data = data, }; int errs = REGULATOR_ERROR_UNDER_VOLTAGE | @@ -410,7 +410,7 @@ static int max597x_setup_irq(struct device *dev, void *irq_helper; /* Register notifiers - can fail if IRQ is not given */ - irq_helper = devm_regulator_irq_helper(dev, &max597x_notif, + irq_helper = devm_regulator_irq_helper(dev, &max5970_notif, irq, 0, errs, NULL, &rdevs[0], num_switches); if (IS_ERR(irq_helper)) { @@ -423,11 +423,11 @@ static int max597x_setup_irq(struct device *dev, return 0; } -static int max597x_regulator_probe(struct platform_device *pdev) +static int max5970_regulator_probe(struct platform_device *pdev) { - struct max597x_data *max597x; + struct max5970_data *max5970; struct regmap *regmap = dev_get_regmap(pdev->dev.parent, NULL); - struct max597x_regulator *data; + struct max5970_regulator *data; struct i2c_client *i2c = to_i2c_client(pdev->dev.parent); struct regulator_config config = { }; struct regulator_dev *rdev; @@ -438,25 +438,25 @@ static int max597x_regulator_probe(struct platform_device *pdev) if (!regmap) return -EPROBE_DEFER; - max597x = devm_kzalloc(&i2c->dev, sizeof(struct max597x_data), GFP_KERNEL); - if (!max597x) + max5970 = devm_kzalloc(&i2c->dev, sizeof(struct max5970_data), GFP_KERNEL); + if (!max5970) return -ENOMEM; - i2c_set_clientdata(i2c, max597x); + i2c_set_clientdata(i2c, max5970); if (of_device_is_compatible(i2c->dev.of_node, "maxim,max5978")) - max597x->num_switches = MAX597x_TYPE_MAX5978; + max5970->num_switches = MAX5978_NUM_SWITCHES; else if (of_device_is_compatible(i2c->dev.of_node, "maxim,max5970")) - max597x->num_switches = MAX597x_TYPE_MAX5970; + max5970->num_switches = MAX5970_NUM_SWITCHES; else return -ENODEV; - i2c_set_clientdata(i2c, max597x); - num_switches = max597x->num_switches; + i2c_set_clientdata(i2c, max5970); + num_switches = max5970->num_switches; for (i = 0; i < num_switches; i++) { data = - devm_kzalloc(&i2c->dev, sizeof(struct max597x_regulator), + devm_kzalloc(&i2c->dev, sizeof(struct max5970_regulator), GFP_KERNEL); if (!data) return -ENOMEM; @@ -464,12 +464,12 @@ static int max597x_regulator_probe(struct platform_device *pdev) data->num_switches = num_switches; data->regmap = regmap; - ret = max597x_adc_range(regmap, i, &max597x->irng[i], &max597x->mon_rng[i]); + ret = max5970_adc_range(regmap, i, &max5970->irng[i], &max5970->mon_rng[i]); if (ret < 0) return ret; - data->irng = max597x->irng[i]; - data->mon_rng = max597x->mon_rng[i]; + data->irng = max5970->irng[i]; + data->mon_rng = max5970->mon_rng[i]; config.dev = &i2c->dev; config.driver_data = (void *)data; @@ -482,12 +482,12 @@ static int max597x_regulator_probe(struct platform_device *pdev) return PTR_ERR(rdev); } rdevs[i] = rdev; - max597x->shunt_micro_ohms[i] = data->shunt_micro_ohms; + max5970->shunt_micro_ohms[i] = data->shunt_micro_ohms; } if (i2c->irq) { ret = - max597x_setup_irq(&i2c->dev, i2c->irq, rdevs, num_switches, + max5970_setup_irq(&i2c->dev, i2c->irq, rdevs, num_switches, data); if (ret) { dev_err(&i2c->dev, "IRQ setup failed"); @@ -498,14 +498,14 @@ static int max597x_regulator_probe(struct platform_device *pdev) return ret; } -static struct platform_driver max597x_regulator_driver = { +static struct platform_driver max5970_regulator_driver = { .driver = { - .name = "max597x-regulator", + .name = "max5970-regulator", }, - .probe = max597x_regulator_probe, + .probe = max5970_regulator_probe, }; -module_platform_driver(max597x_regulator_driver); +module_platform_driver(max5970_regulator_driver); MODULE_AUTHOR("Patrick Rudolph <patrick.rudolph@9elements.com>"); -- 2.39.1 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] regulator: max5970: Rename driver and remove wildcard 2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki @ 2023-04-30 15:58 ` Mark Brown 2023-06-02 8:15 ` Lee Jones 1 sibling, 0 replies; 12+ messages in thread From: Mark Brown @ 2023-04-30 15:58 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, Lee Jones, linux-kernel [-- Attachment #1: Type: text/plain, Size: 327 bytes --] On Thu, Apr 27, 2023 at 01:30:46PM +0200, Naresh Solanki wrote: > The previous version of this driver included wildcards in file names and > descriptions. This patch renames the driver to only support MAX5970 and > MAX5978, which are the only chips that the driver actually supports. Acked-by: Mark Brown <broonie@kernel.org> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] regulator: max5970: Rename driver and remove wildcard 2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki 2023-04-30 15:58 ` Mark Brown @ 2023-06-02 8:15 ` Lee Jones 1 sibling, 0 replies; 12+ messages in thread From: Lee Jones @ 2023-06-02 8:15 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, Mark Brown, linux-kernel On Thu, 27 Apr 2023, Naresh Solanki wrote: > The previous version of this driver included wildcards in file names and > descriptions. This patch renames the driver to only support MAX5970 and > MAX5978, which are the only chips that the driver actually supports. > > Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> > --- > drivers/regulator/Kconfig | 6 +- > drivers/regulator/Makefile | 2 +- > ...ax597x-regulator.c => max5970-regulator.c} | 126 +++++++++--------- > 3 files changed, 67 insertions(+), 67 deletions(-) > rename drivers/regulator/{max597x-regulator.c => max5970-regulator.c} (76%) This does not apply cleanly. Rather than mess you around, I'll apply the MFD driver and provide a PR for Mark. Perhaps this will apply to the regulator tree. Testing now - please stand-by. -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-04-27 11:30 [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard Naresh Solanki 2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki @ 2023-05-04 10:05 ` Naresh Solanki 2023-05-10 13:46 ` Lee Jones 2023-05-18 10:14 ` Lee Jones 2023-06-08 17:57 ` [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window Lee Jones 3 siblings, 1 reply; 12+ messages in thread From: Naresh Solanki @ 2023-05-04 10:05 UTC (permalink / raw) To: Lee Jones; +Cc: Liam Girdwood, linux-kernel Hi Lee, I hope this email finds you well. I am writing to inquire about the status of my patch. The purpose of this patch set was to rename the driver to remove the wildcard and make it specific to avoid confusion with different similar devices. I want to emphasize that this patch set does not include any functional changes. I would appreciate it if you could kindly provide an update on the status. Please let me know if there is anything else you need from my end to help move things forward. Thank you for your time and attention. Best regards, Naresh Solanki On 27-04-2023 05:00 pm, Naresh Solanki wrote: > The previous version of this driver included wildcards in file names > and descriptions. This patch renames the driver to only support MAX5970 > and MAX5978, which are the only chips that the driver actually supports. > > Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> > --- > drivers/mfd/Kconfig | 4 ++-- > drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- > include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- > 3 files changed, 19 insertions(+), 19 deletions(-) > rename include/linux/mfd/{max597x.h => max5970.h} (92%) > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index e90463c4441c..71231388e03c 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -266,8 +266,8 @@ config MFD_MADERA_SPI > Support for the Cirrus Logic Madera platform audio SoC > core functionality controlled via SPI. > > -config MFD_MAX597X > - tristate "Maxim 597x power switch and monitor" > +config MFD_MAX5970 > + tristate "Maxim 5970/5978 power switch and monitor" > depends on (I2C && OF) > select MFD_SIMPLE_MFD_I2C > help > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > index 20782b4dd172..1f1c007560d8 100644 > --- a/drivers/mfd/simple-mfd-i2c.c > +++ b/drivers/mfd/simple-mfd-i2c.c > @@ -72,22 +72,22 @@ static const struct simple_mfd_data silergy_sy7636a = { > .mfd_cell_size = ARRAY_SIZE(sy7636a_cells), > }; > > -static const struct mfd_cell max597x_cells[] = { > - { .name = "max597x-regulator", }, > - { .name = "max597x-iio", }, > - { .name = "max597x-led", }, > +static const struct mfd_cell max5970_cells[] = { > + { .name = "max5970-regulator", }, > + { .name = "max5970-iio", }, > + { .name = "max5970-led", }, > }; > > -static const struct simple_mfd_data maxim_max597x = { > - .mfd_cell = max597x_cells, > - .mfd_cell_size = ARRAY_SIZE(max597x_cells), > +static const struct simple_mfd_data maxim_max5970 = { > + .mfd_cell = max5970_cells, > + .mfd_cell_size = ARRAY_SIZE(max5970_cells), > }; > > static const struct of_device_id simple_mfd_i2c_of_match[] = { > { .compatible = "kontron,sl28cpld" }, > { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, > - { .compatible = "maxim,max5970", .data = &maxim_max597x}, > - { .compatible = "maxim,max5978", .data = &maxim_max597x}, > + { .compatible = "maxim,max5970", .data = &maxim_max5970}, > + { .compatible = "maxim,max5978", .data = &maxim_max5970}, > {} > }; > MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); > diff --git a/include/linux/mfd/max597x.h b/include/linux/mfd/max5970.h > similarity index 92% > rename from include/linux/mfd/max597x.h > rename to include/linux/mfd/max5970.h > index a850b2e02e6a..762a7d40c843 100644 > --- a/include/linux/mfd/max597x.h > +++ b/include/linux/mfd/max5970.h > @@ -7,25 +7,25 @@ > * Author: Patrick Rudolph <patrick.rudolph@9elements.com> > */ > > -#ifndef _MFD_MAX597X_H > -#define _MFD_MAX597X_H > +#ifndef _MFD_MAX5970_H > +#define _MFD_MAX5970_H > > #include <linux/regmap.h> > > #define MAX5970_NUM_SWITCHES 2 > #define MAX5978_NUM_SWITCHES 1 > -#define MAX597X_NUM_LEDS 4 > +#define MAX5970_NUM_LEDS 4 > > -struct max597x_data { > +struct max5970_data { > int num_switches; > u32 irng[MAX5970_NUM_SWITCHES]; > u32 mon_rng[MAX5970_NUM_SWITCHES]; > u32 shunt_micro_ohms[MAX5970_NUM_SWITCHES]; > }; > > -enum max597x_chip_type { > - MAX597x_TYPE_MAX5978 = 1, > - MAX597x_TYPE_MAX5970, > +enum max5970_chip_type { > + TYPE_MAX5978 = 1, > + TYPE_MAX5970, > }; > > #define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4) > @@ -93,4 +93,4 @@ enum max597x_chip_type { > #define MAX_REGISTERS 0x49 > #define ADC_MASK 0x3FF > > -#endif /* _MFD_MAX597X_H */ > +#endif /* _MFD_MAX5970_H */ > > base-commit: b4c288cfd2f84c44994330c408e14645d45dee5b ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-05-04 10:05 ` [PATCH 1/2] mfd: " Naresh Solanki @ 2023-05-10 13:46 ` Lee Jones 0 siblings, 0 replies; 12+ messages in thread From: Lee Jones @ 2023-05-10 13:46 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, linux-kernel On Thu, 04 May 2023, Naresh Solanki wrote: > Hi Lee, > > I hope this email finds you well. I am writing to inquire about the status > of my patch. > > The purpose of this patch set was to rename the driver to remove the > wildcard and make it specific to avoid confusion with different similar > devices. I want to emphasize that this patch set does not include any > functional changes. > > I would appreciate it if you could kindly provide an update on the status. > Please let me know if there is anything else you need from my end to help > move things forward. > > Thank you for your time and attention. Please refrain from top-posting. If you think your patch has fallen through the gaps (it hasn't) please submit a [RESEND]. The merge-window has been open for the last 2 weeks. I'm just ramping up again on my backlog. I'll get to you soon. > On 27-04-2023 05:00 pm, Naresh Solanki wrote: > > The previous version of this driver included wildcards in file names > > and descriptions. This patch renames the driver to only support MAX5970 > > and MAX5978, which are the only chips that the driver actually supports. > > > > Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> > > --- > > drivers/mfd/Kconfig | 4 ++-- > > drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- > > include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- > > 3 files changed, 19 insertions(+), 19 deletions(-) > > rename include/linux/mfd/{max597x.h => max5970.h} (92%) > > > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > > index e90463c4441c..71231388e03c 100644 > > --- a/drivers/mfd/Kconfig > > +++ b/drivers/mfd/Kconfig > > @@ -266,8 +266,8 @@ config MFD_MADERA_SPI > > Support for the Cirrus Logic Madera platform audio SoC > > core functionality controlled via SPI. > > -config MFD_MAX597X > > - tristate "Maxim 597x power switch and monitor" > > +config MFD_MAX5970 > > + tristate "Maxim 5970/5978 power switch and monitor" > > depends on (I2C && OF) > > select MFD_SIMPLE_MFD_I2C > > help > > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > > index 20782b4dd172..1f1c007560d8 100644 > > --- a/drivers/mfd/simple-mfd-i2c.c > > +++ b/drivers/mfd/simple-mfd-i2c.c > > @@ -72,22 +72,22 @@ static const struct simple_mfd_data silergy_sy7636a = { > > .mfd_cell_size = ARRAY_SIZE(sy7636a_cells), > > }; > > -static const struct mfd_cell max597x_cells[] = { > > - { .name = "max597x-regulator", }, > > - { .name = "max597x-iio", }, > > - { .name = "max597x-led", }, > > +static const struct mfd_cell max5970_cells[] = { > > + { .name = "max5970-regulator", }, > > + { .name = "max5970-iio", }, > > + { .name = "max5970-led", }, > > }; > > -static const struct simple_mfd_data maxim_max597x = { > > - .mfd_cell = max597x_cells, > > - .mfd_cell_size = ARRAY_SIZE(max597x_cells), > > +static const struct simple_mfd_data maxim_max5970 = { > > + .mfd_cell = max5970_cells, > > + .mfd_cell_size = ARRAY_SIZE(max5970_cells), > > }; > > static const struct of_device_id simple_mfd_i2c_of_match[] = { > > { .compatible = "kontron,sl28cpld" }, > > { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, > > - { .compatible = "maxim,max5970", .data = &maxim_max597x}, > > - { .compatible = "maxim,max5978", .data = &maxim_max597x}, > > + { .compatible = "maxim,max5970", .data = &maxim_max5970}, > > + { .compatible = "maxim,max5978", .data = &maxim_max5970}, > > {} > > }; > > MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); > > diff --git a/include/linux/mfd/max597x.h b/include/linux/mfd/max5970.h > > similarity index 92% > > rename from include/linux/mfd/max597x.h > > rename to include/linux/mfd/max5970.h > > index a850b2e02e6a..762a7d40c843 100644 > > --- a/include/linux/mfd/max597x.h > > +++ b/include/linux/mfd/max5970.h > > @@ -7,25 +7,25 @@ > > * Author: Patrick Rudolph <patrick.rudolph@9elements.com> > > */ > > -#ifndef _MFD_MAX597X_H > > -#define _MFD_MAX597X_H > > +#ifndef _MFD_MAX5970_H > > +#define _MFD_MAX5970_H > > #include <linux/regmap.h> > > #define MAX5970_NUM_SWITCHES 2 > > #define MAX5978_NUM_SWITCHES 1 > > -#define MAX597X_NUM_LEDS 4 > > +#define MAX5970_NUM_LEDS 4 > > -struct max597x_data { > > +struct max5970_data { > > int num_switches; > > u32 irng[MAX5970_NUM_SWITCHES]; > > u32 mon_rng[MAX5970_NUM_SWITCHES]; > > u32 shunt_micro_ohms[MAX5970_NUM_SWITCHES]; > > }; > > -enum max597x_chip_type { > > - MAX597x_TYPE_MAX5978 = 1, > > - MAX597x_TYPE_MAX5970, > > +enum max5970_chip_type { > > + TYPE_MAX5978 = 1, > > + TYPE_MAX5970, > > }; > > #define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4) > > @@ -93,4 +93,4 @@ enum max597x_chip_type { > > #define MAX_REGISTERS 0x49 > > #define ADC_MASK 0x3FF > > -#endif /* _MFD_MAX597X_H */ > > +#endif /* _MFD_MAX5970_H */ > > > > base-commit: b4c288cfd2f84c44994330c408e14645d45dee5b -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-04-27 11:30 [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard Naresh Solanki 2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki 2023-05-04 10:05 ` [PATCH 1/2] mfd: " Naresh Solanki @ 2023-05-18 10:14 ` Lee Jones 2023-05-18 13:44 ` Naresh Solanki 2023-06-08 17:57 ` [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window Lee Jones 3 siblings, 1 reply; 12+ messages in thread From: Lee Jones @ 2023-05-18 10:14 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, Mark Brown, linux-kernel On Thu, 27 Apr 2023, Naresh Solanki wrote: > The previous version of this driver included wildcards in file names > and descriptions. This patch renames the driver to only support MAX5970 > and MAX5978, which are the only chips that the driver actually supports. So multiple devices are supported: MAX5970 ... AND MAX5978 ... thus MAX597X ... does make sense, no? What are you trying to achieve? > Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> > --- > drivers/mfd/Kconfig | 4 ++-- > drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- > include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- > 3 files changed, 19 insertions(+), 19 deletions(-) > rename include/linux/mfd/{max597x.h => max5970.h} (92%) > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index e90463c4441c..71231388e03c 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -266,8 +266,8 @@ config MFD_MADERA_SPI > Support for the Cirrus Logic Madera platform audio SoC > core functionality controlled via SPI. > > -config MFD_MAX597X > - tristate "Maxim 597x power switch and monitor" > +config MFD_MAX5970 > + tristate "Maxim 5970/5978 power switch and monitor" > depends on (I2C && OF) > select MFD_SIMPLE_MFD_I2C > help > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > index 20782b4dd172..1f1c007560d8 100644 > --- a/drivers/mfd/simple-mfd-i2c.c > +++ b/drivers/mfd/simple-mfd-i2c.c > @@ -72,22 +72,22 @@ static const struct simple_mfd_data silergy_sy7636a = { > .mfd_cell_size = ARRAY_SIZE(sy7636a_cells), > }; > > -static const struct mfd_cell max597x_cells[] = { > - { .name = "max597x-regulator", }, > - { .name = "max597x-iio", }, > - { .name = "max597x-led", }, > +static const struct mfd_cell max5970_cells[] = { > + { .name = "max5970-regulator", }, > + { .name = "max5970-iio", }, > + { .name = "max5970-led", }, > }; > > -static const struct simple_mfd_data maxim_max597x = { > - .mfd_cell = max597x_cells, > - .mfd_cell_size = ARRAY_SIZE(max597x_cells), > +static const struct simple_mfd_data maxim_max5970 = { > + .mfd_cell = max5970_cells, > + .mfd_cell_size = ARRAY_SIZE(max5970_cells), > }; > > static const struct of_device_id simple_mfd_i2c_of_match[] = { > { .compatible = "kontron,sl28cpld" }, > { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, > - { .compatible = "maxim,max5970", .data = &maxim_max597x}, > - { .compatible = "maxim,max5978", .data = &maxim_max597x}, > + { .compatible = "maxim,max5970", .data = &maxim_max5970}, > + { .compatible = "maxim,max5978", .data = &maxim_max5970}, > {} > }; > MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); > diff --git a/include/linux/mfd/max597x.h b/include/linux/mfd/max5970.h > similarity index 92% > rename from include/linux/mfd/max597x.h > rename to include/linux/mfd/max5970.h > index a850b2e02e6a..762a7d40c843 100644 > --- a/include/linux/mfd/max597x.h > +++ b/include/linux/mfd/max5970.h > @@ -7,25 +7,25 @@ > * Author: Patrick Rudolph <patrick.rudolph@9elements.com> > */ > > -#ifndef _MFD_MAX597X_H > -#define _MFD_MAX597X_H > +#ifndef _MFD_MAX5970_H > +#define _MFD_MAX5970_H > > #include <linux/regmap.h> > > #define MAX5970_NUM_SWITCHES 2 > #define MAX5978_NUM_SWITCHES 1 > -#define MAX597X_NUM_LEDS 4 > +#define MAX5970_NUM_LEDS 4 > > -struct max597x_data { > +struct max5970_data { > int num_switches; > u32 irng[MAX5970_NUM_SWITCHES]; > u32 mon_rng[MAX5970_NUM_SWITCHES]; > u32 shunt_micro_ohms[MAX5970_NUM_SWITCHES]; > }; > > -enum max597x_chip_type { > - MAX597x_TYPE_MAX5978 = 1, > - MAX597x_TYPE_MAX5970, > +enum max5970_chip_type { > + TYPE_MAX5978 = 1, > + TYPE_MAX5970, > }; > > #define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4) > @@ -93,4 +93,4 @@ enum max597x_chip_type { > #define MAX_REGISTERS 0x49 > #define ADC_MASK 0x3FF > > -#endif /* _MFD_MAX597X_H */ > +#endif /* _MFD_MAX5970_H */ > > base-commit: b4c288cfd2f84c44994330c408e14645d45dee5b > -- > 2.39.1 > -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-05-18 10:14 ` Lee Jones @ 2023-05-18 13:44 ` Naresh Solanki 2023-05-22 7:11 ` Lee Jones 0 siblings, 1 reply; 12+ messages in thread From: Naresh Solanki @ 2023-05-18 13:44 UTC (permalink / raw) To: Lee Jones; +Cc: Liam Girdwood, Mark Brown, linux-kernel Hi Lee, On 18-05-2023 03:44 pm, Lee Jones wrote: > On Thu, 27 Apr 2023, Naresh Solanki wrote: > >> The previous version of this driver included wildcards in file names >> and descriptions. This patch renames the driver to only support MAX5970 >> and MAX5978, which are the only chips that the driver actually supports. > > So multiple devices are supported: > > MAX5970 ... AND > MAX5978 ... thus > MAX597X ... does make sense, no? > > What are you trying to achieve? Understood. It is important to note that there are indeed other unrelated chips in addition to MAX5970 and MAX5978. Examples include MAX5971, which is a Single-Port, 40W, IEEE 802.3af/at PSE Controller with Integrated MOSFET, and MAX5974A, an Active-Clamped, Spread-Spectrum, Current-Mode PWM Controller, among others. With this change, the intention is to be specific about the chips the driver supports. Instead of using wildcards or a broad "MAX597X" designation, the patch aims to exclusively support the MAX5970 and MAX5978 chips. > >> Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> >> --- >> drivers/mfd/Kconfig | 4 ++-- >> drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- >> include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- >> 3 files changed, 19 insertions(+), 19 deletions(-) >> rename include/linux/mfd/{max597x.h => max5970.h} (92%) >> >> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig >> index e90463c4441c..71231388e03c 100644 >> --- a/drivers/mfd/Kconfig >> +++ b/drivers/mfd/Kconfig >> @@ -266,8 +266,8 @@ config MFD_MADERA_SPI >> Support for the Cirrus Logic Madera platform audio SoC >> core functionality controlled via SPI. >> >> -config MFD_MAX597X >> - tristate "Maxim 597x power switch and monitor" >> +config MFD_MAX5970 >> + tristate "Maxim 5970/5978 power switch and monitor" >> depends on (I2C && OF) >> select MFD_SIMPLE_MFD_I2C >> help >> diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c >> index 20782b4dd172..1f1c007560d8 100644 >> --- a/drivers/mfd/simple-mfd-i2c.c >> +++ b/drivers/mfd/simple-mfd-i2c.c >> @@ -72,22 +72,22 @@ static const struct simple_mfd_data silergy_sy7636a = { >> .mfd_cell_size = ARRAY_SIZE(sy7636a_cells), >> }; >> >> -static const struct mfd_cell max597x_cells[] = { >> - { .name = "max597x-regulator", }, >> - { .name = "max597x-iio", }, >> - { .name = "max597x-led", }, >> +static const struct mfd_cell max5970_cells[] = { >> + { .name = "max5970-regulator", }, >> + { .name = "max5970-iio", }, >> + { .name = "max5970-led", }, >> }; >> >> -static const struct simple_mfd_data maxim_max597x = { >> - .mfd_cell = max597x_cells, >> - .mfd_cell_size = ARRAY_SIZE(max597x_cells), >> +static const struct simple_mfd_data maxim_max5970 = { >> + .mfd_cell = max5970_cells, >> + .mfd_cell_size = ARRAY_SIZE(max5970_cells), >> }; >> >> static const struct of_device_id simple_mfd_i2c_of_match[] = { >> { .compatible = "kontron,sl28cpld" }, >> { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, >> - { .compatible = "maxim,max5970", .data = &maxim_max597x}, >> - { .compatible = "maxim,max5978", .data = &maxim_max597x}, >> + { .compatible = "maxim,max5970", .data = &maxim_max5970}, >> + { .compatible = "maxim,max5978", .data = &maxim_max5970}, >> {} >> }; >> MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); >> diff --git a/include/linux/mfd/max597x.h b/include/linux/mfd/max5970.h >> similarity index 92% >> rename from include/linux/mfd/max597x.h >> rename to include/linux/mfd/max5970.h >> index a850b2e02e6a..762a7d40c843 100644 >> --- a/include/linux/mfd/max597x.h >> +++ b/include/linux/mfd/max5970.h >> @@ -7,25 +7,25 @@ >> * Author: Patrick Rudolph <patrick.rudolph@9elements.com> >> */ >> >> -#ifndef _MFD_MAX597X_H >> -#define _MFD_MAX597X_H >> +#ifndef _MFD_MAX5970_H >> +#define _MFD_MAX5970_H >> >> #include <linux/regmap.h> >> >> #define MAX5970_NUM_SWITCHES 2 >> #define MAX5978_NUM_SWITCHES 1 >> -#define MAX597X_NUM_LEDS 4 >> +#define MAX5970_NUM_LEDS 4 >> >> -struct max597x_data { >> +struct max5970_data { >> int num_switches; >> u32 irng[MAX5970_NUM_SWITCHES]; >> u32 mon_rng[MAX5970_NUM_SWITCHES]; >> u32 shunt_micro_ohms[MAX5970_NUM_SWITCHES]; >> }; >> >> -enum max597x_chip_type { >> - MAX597x_TYPE_MAX5978 = 1, >> - MAX597x_TYPE_MAX5970, >> +enum max5970_chip_type { >> + TYPE_MAX5978 = 1, >> + TYPE_MAX5970, >> }; >> >> #define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4) >> @@ -93,4 +93,4 @@ enum max597x_chip_type { >> #define MAX_REGISTERS 0x49 >> #define ADC_MASK 0x3FF >> >> -#endif /* _MFD_MAX597X_H */ >> +#endif /* _MFD_MAX5970_H */ >> >> base-commit: b4c288cfd2f84c44994330c408e14645d45dee5b >> -- >> 2.39.1 >> > Regards, Naresh ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-05-18 13:44 ` Naresh Solanki @ 2023-05-22 7:11 ` Lee Jones 2023-05-24 9:53 ` Naresh Solanki 0 siblings, 1 reply; 12+ messages in thread From: Lee Jones @ 2023-05-22 7:11 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, Mark Brown, linux-kernel On Thu, 18 May 2023, Naresh Solanki wrote: > Hi Lee, > > On 18-05-2023 03:44 pm, Lee Jones wrote: > > On Thu, 27 Apr 2023, Naresh Solanki wrote: > > > > > The previous version of this driver included wildcards in file names > > > and descriptions. This patch renames the driver to only support MAX5970 > > > and MAX5978, which are the only chips that the driver actually supports. > > > > So multiple devices are supported: > > > > MAX5970 ... AND > > MAX5978 ... thus > > MAX597X ... does make sense, no? > > What are you trying to achieve? > Understood. It is important to note that there are indeed other unrelated > chips in addition to MAX5970 and MAX5978. Examples include MAX5971, which is > a Single-Port, 40W, IEEE 802.3af/at PSE Controller with Integrated MOSFET, > and MAX5974A, an Active-Clamped, Spread-Spectrum, Current-Mode PWM > Controller, among others. > > With this change, the intention is to be specific about the chips the driver > supports. Instead of using wildcards or a broad "MAX597X" designation, the > patch aims to exclusively support the MAX5970 and MAX5978 chips. It's a tricky situation when engineers/marketing people name devices in a nonsensical manner. However, "max5970" just as misleading in this context as "max597x", thus the patch doesn't improve anything. It's more of a maneuver side-ways. > > > Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> > > > --- > > > drivers/mfd/Kconfig | 4 ++-- > > > drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- > > > include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- > > > 3 files changed, 19 insertions(+), 19 deletions(-) > > > rename include/linux/mfd/{max597x.h => max5970.h} (92%) -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard 2023-05-22 7:11 ` Lee Jones @ 2023-05-24 9:53 ` Naresh Solanki 0 siblings, 0 replies; 12+ messages in thread From: Naresh Solanki @ 2023-05-24 9:53 UTC (permalink / raw) To: Lee Jones; +Cc: Liam Girdwood, Mark Brown, linux-kernel Hi Lee, On 22-05-2023 12:41 pm, Lee Jones wrote: > On Thu, 18 May 2023, Naresh Solanki wrote: > >> Hi Lee, >> >> On 18-05-2023 03:44 pm, Lee Jones wrote: >>> On Thu, 27 Apr 2023, Naresh Solanki wrote: >>> >>>> The previous version of this driver included wildcards in file names >>>> and descriptions. This patch renames the driver to only support MAX5970 >>>> and MAX5978, which are the only chips that the driver actually supports. >>> >>> So multiple devices are supported: >>> >>> MAX5970 ... AND >>> MAX5978 ... thus >>> MAX597X ... does make sense, no? >>> What are you trying to achieve? >> Understood. It is important to note that there are indeed other unrelated >> chips in addition to MAX5970 and MAX5978. Examples include MAX5971, which is >> a Single-Port, 40W, IEEE 802.3af/at PSE Controller with Integrated MOSFET, >> and MAX5974A, an Active-Clamped, Spread-Spectrum, Current-Mode PWM >> Controller, among others. >> >> With this change, the intention is to be specific about the chips the driver >> supports. Instead of using wildcards or a broad "MAX597X" designation, the >> patch aims to exclusively support the MAX5970 and MAX5978 chips. > > It's a tricky situation when engineers/marketing people name devices in > a nonsensical manner. However, "max5970" just as misleading in this > context as "max597x", thus the patch doesn't improve anything. It's > more of a maneuver side-ways. After considering the feedback received regarding the context of the leaf driver for max5970, it has been recommended to specifically use "max5970" instead of a general designation like "max597x." However, for support related to max5978, the documentation can be referred to. Therefore, this change is necessary in order to unblock the leaf driver and address the feedback received. Regards, Naresh > >>>> Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com> >>>> --- >>>> drivers/mfd/Kconfig | 4 ++-- >>>> drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- >>>> include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- >>>> 3 files changed, 19 insertions(+), 19 deletions(-) >>>> rename include/linux/mfd/{max597x.h => max5970.h} (92%) > ^ permalink raw reply [flat|nested] 12+ messages in thread
* [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window 2023-04-27 11:30 [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard Naresh Solanki ` (2 preceding siblings ...) 2023-05-18 10:14 ` Lee Jones @ 2023-06-08 17:57 ` Lee Jones 3 siblings, 0 replies; 12+ messages in thread From: Lee Jones @ 2023-06-08 17:57 UTC (permalink / raw) To: Naresh Solanki; +Cc: Liam Girdwood, Mark Brown, linux-kernel Mark, The following changes since commit ac9a78681b921877518763ba0e89202254349d1b: Linux 6.4-rc1 (2023-05-07 13:34:35 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-regulator-max5970-v6.5 for you to fetch changes up to 49f661ba99324a3f7eef0befbdaa4f22dee02b97: mfd: max5970: Rename driver and remove wildcard (2023-06-02 09:09:45 +0100) ---------------------------------------------------------------- Immutable branch between MFD and Regulator due for the v6.5 merge window ---------------------------------------------------------------- Naresh Solanki (1): mfd: max5970: Rename driver and remove wildcard drivers/mfd/Kconfig | 4 ++-- drivers/mfd/simple-mfd-i2c.c | 18 +++++++++--------- include/linux/mfd/{max597x.h => max5970.h} | 16 ++++++++-------- 3 files changed, 19 insertions(+), 19 deletions(-) rename include/linux/mfd/{max597x.h => max5970.h} (92%) -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v11 0/3] regulator: Add X-Powers AXP15060/AXP313a PMIC support
@ 2023-05-24 0:00 Andre Przywara
2023-06-01 19:52 ` [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window Lee Jones
0 siblings, 1 reply; 12+ messages in thread
From: Andre Przywara @ 2023-05-24 0:00 UTC (permalink / raw)
To: Lee Jones, Liam Girdwood, Chen-Yu Tsai, Mark Brown
Cc: Martin Botka, martin.botka1, Shengyu Qu, Samuel Holland,
Jernej Skrabec, linux-sunxi, linux-kernel
Hi,
this patch series adds support for the X-Powers AXP15060 and AXP313a
PMIC, which are general purpose PMICs as seen on different boards with
different SOCs, mostly from Allwinner.
This is mostly a repost of the previous patches, combining both the
AXP313a and AXP15060 series, rebased on top of v6.4-rc3, and omitting
the patches that already got merged.
The first two patches are the successors of the AXP313a v10 post,
the third patch is based on Shengyu's AXP15060 v3 post.
There were no code changes, just some tiny context differences due to
the rebase, plus I added the newly gained tags.
As the DT bindings and the AXP15060 MFD part are already in the tree,
this is just completing support with the MFD part for the AXP313a, and
the regulator support for both PMICs.
Shengyu, Martin: can you please give this a final test?
Cheers,
Andre
Changelog:
v3/v10 .. v11:
- add broonie's and Chen-Yu's review tags
- rebase on top of v6.4-rc3
AXP313a:
v9 .. v10:
- use MFD_CELL_RES macro
- mark dcdc-freq property as "false" for AXP313a
- add Lee's ACK
v8 .. v9:
- use MFD_CELL_NAME macro
- fix LDO regulator names to match the datasheet
- only mark changing registers as volatile
- use correct register for shutdown operation
- add power key resources
- disallow x-powers,dcdc-freq in the DT binding
- drop unused OUTPUT_MONITOR register name, add SHUTDOWN_CTRL
- require dcdcfreq being 0 (non-present DT property default)
v7 .. v8:
- Add check for dcdcfreq being zero
v6 .. v7:
- Use alphabetical ordering
v5 .. v6:
- change name from AXP1530 to AXP313a
- extend commit messages
- drop AXP*_FREQUENCY register (not used anyway)
- better vertically align struct definitions
- rename IRQs to match names used for other PMICs
- add RTC_LDO regulator
- use decimal numbers for selector ranges
- use macro definitions to name some values
- force DC/DC switching frequency to be fixed at 3 MHz
- change LDO source supply to VIN1 (as per datasheet)
v4 .. v5:
- Use alphabetical ordering in mfd
- Correct { placement line
- Replace spaces with tabs in 1 struct
v3 .. v4:
- Fix indentation
v2 .. v3:
- Move AXP1530 dt-binding to alphabetical order
v1 .. v2:
- Remove RSB support.
- Drop .id = 0
- Add dt-binding for the AXP1530
AXP15060:
v2 .. v3:
- Rebase to AXP313a series v10 [1] + newest (20230420) -next branch
- Disables DC-DC frequency setting
- Add axp_regulator_only_cells rather than directly using axp806_cells
for cases that IRQ line isn't connected.
- Fix some whitespace
- Rename swout to sw to keep up with bindings
- Add check for setting DC-DC frequency
v1 .. v2:
- Move cpusldo before drivevbus (Krzysztof Kozlowski)
Martin Botka (2):
mfd: axp20x: Add support for AXP313a PMIC
regulator: axp20x: Add support for AXP313a variant
Shengyu Qu (1):
regulator: axp20x: Add AXP15060 support
drivers/mfd/axp20x-i2c.c | 2 +
drivers/mfd/axp20x.c | 78 ++++++-
drivers/regulator/axp20x-regulator.c | 290 ++++++++++++++++++++++++++-
include/linux/mfd/axp20x.h | 32 +++
4 files changed, 393 insertions(+), 9 deletions(-)
--
2.35.8
^ permalink raw reply [flat|nested] 12+ messages in thread* [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window 2023-05-24 0:00 [PATCH v11 0/3] regulator: Add X-Powers AXP15060/AXP313a PMIC support Andre Przywara @ 2023-06-01 19:52 ` Lee Jones 0 siblings, 0 replies; 12+ messages in thread From: Lee Jones @ 2023-06-01 19:52 UTC (permalink / raw) To: Andre Przywara Cc: Liam Girdwood, Chen-Yu Tsai, Mark Brown, Martin Botka, martin.botka1, Shengyu Qu, Samuel Holland, Jernej Skrabec, linux-sunxi, linux-kernel To whom it may concern :) The following changes since commit ac9a78681b921877518763ba0e89202254349d1b: Linux 6.4-rc1 (2023-05-07 13:34:35 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-regulator-v6.5 for you to fetch changes up to 75c8cb2f4cb218aaf4ea68cab08d6dbc96eeae15: mfd: axp20x: Add support for AXP313a PMIC (2023-05-25 12:35:57 +0100) ---------------------------------------------------------------- Immutable branch between MFD and Regulator due for the v6.5 merge window ---------------------------------------------------------------- Martin Botka (1): mfd: axp20x: Add support for AXP313a PMIC drivers/mfd/axp20x-i2c.c | 2 ++ drivers/mfd/axp20x.c | 78 +++++++++++++++++++++++++++++++++++++++++++++- include/linux/mfd/axp20x.h | 32 +++++++++++++++++++ 3 files changed, 111 insertions(+), 1 deletion(-) -- Lee Jones [李琼斯] ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-06-08 17:57 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-27 11:30 [PATCH 1/2] mfd: max5970: Rename driver and remove wildcard Naresh Solanki 2023-04-27 11:30 ` [PATCH 2/2] regulator: " Naresh Solanki 2023-04-30 15:58 ` Mark Brown 2023-06-02 8:15 ` Lee Jones 2023-05-04 10:05 ` [PATCH 1/2] mfd: " Naresh Solanki 2023-05-10 13:46 ` Lee Jones 2023-05-18 10:14 ` Lee Jones 2023-05-18 13:44 ` Naresh Solanki 2023-05-22 7:11 ` Lee Jones 2023-05-24 9:53 ` Naresh Solanki 2023-06-08 17:57 ` [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window Lee Jones -- strict thread matches above, loose matches on Subject: below -- 2023-05-24 0:00 [PATCH v11 0/3] regulator: Add X-Powers AXP15060/AXP313a PMIC support Andre Przywara 2023-06-01 19:52 ` [GIT PULL] Immutable branch between MFD and Regulator due for the v6.5 merge window Lee Jones
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox