From: Andreas Kemnade <andreas@kemnade.info>
To: Pablo Mazzini <pmazzini@gmail.com>
Cc: Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Guenter Roeck <linux@roeck-us.net>, Lee Jones <lee@kernel.org>,
Alistair Francis <alistair@alistair23.me>,
linux-hwmon@vger.kernel.org, mfd@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 6/7] regulator: sy7636a: bind to the I2C device directly
Date: Wed, 4 Nov 2026 19:28:45 +0100 [thread overview]
Message-ID: <20261104192845.41b086ea@kemnade.info> (raw)
In-Reply-To: <20261101223125.302001-7-pmazzini@gmail.com>
On Sun, 1 Nov 2026 22:31:24 +0000
Pablo Mazzini <pmazzini@gmail.com> wrote:
[...]
> - ret = devm_regulator_get_enable_optional(&pdev->dev, "vin");
> + ret = devm_regulator_get_enable_optional(dev, "vin");
> if (ret)
> - return dev_err_probe(&pdev->dev, ret,
> + return dev_err_probe(dev, ret,
> "failed to get vin regulator\n");
>
we need that regulator enabled for i2c access, if Patch 5 is merged before
this it will happily try to access the device without it being accessible.
But it then is just another error code than ENODATA.
So if that is considered harmful, probably this patch needs to be reordered.
[...]
> --- a/include/linux/mfd/sy7636a.h
> +++ /dev/null
but if it goes in first, this part will make trouble.
Regards,
Andreas
> @@ -1,34 +0,0 @@
> -/* SPDX-License-Identifier: GPL-2.0-only */
> -/*
> - * Functions to access SY3686A power management chip.
> - *
> - * Copyright (C) 2021 reMarkable AS - http://www.remarkable.com/
> - */
> -
> -#ifndef __MFD_SY7636A_H
> -#define __MFD_SY7636A_H
> -
> -#define SY7636A_REG_OPERATION_MODE_CRL 0x00
> -/* It is set if a gpio is used to control the regulator */
> -#define SY7636A_OPERATION_MODE_CRL_VCOMCTL BIT(6)
> -#define SY7636A_OPERATION_MODE_CRL_ONOFF BIT(7)
> -#define SY7636A_REG_VCOM_ADJUST_CTRL_L 0x01
> -#define SY7636A_REG_VCOM_ADJUST_CTRL_H 0x02
> -#define SY7636A_REG_VCOM_ADJUST_CTRL_MASK 0x01ff
> -#define SY7636A_REG_VLDO_VOLTAGE_ADJULST_CTRL 0x03
> -#define SY7636A_REG_POWER_ON_DELAY_TIME 0x06
> -#define SY7636A_REG_FAULT_FLAG 0x07
> -#define SY7636A_FAULT_FLAG_PG BIT(0)
> -#define SY7636A_REG_TERMISTOR_READOUT 0x08
> -
> -#define SY7636A_REG_MAX 0x08
> -
> -#define VCOM_ADJUST_CTRL_MASK 0x1ff
> -// Used to shift the high byte
> -#define VCOM_ADJUST_CTRL_SHIFT 8
> -// Used to scale from VCOM_ADJUST_CTRL to mv
> -#define VCOM_ADJUST_CTRL_SCAL 10000
> -
> -#define FAULT_FLAG_SHIFT 1
> -
> -#endif /* __LINUX_MFD_SY7636A_H */
next prev parent reply other threads:[~2026-11-04 18:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 22:31 [PATCH v2 0/7] sy7636a: power the panel only during updates Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 1/7] regulator: sy7636a: fix the chip name Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 2/7] regulator: sy7636a: add VCOM voltage control Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 3/7] regulator: sy7636a: wait for power good on enable Pablo Mazzini
2026-11-02 7:28 ` Andreas Kemnade
2026-11-02 13:30 ` Mark Brown
2026-11-02 17:08 ` Pablo Mazzini
2026-11-02 17:17 ` Mark Brown
2026-11-01 22:31 ` [PATCH v2 4/7] hwmon: sy7636a: fix negative temperatures Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 5/7] hwmon: sy7636a: read the temperature only while the rails are on Pablo Mazzini
2026-11-02 3:35 ` Guenter Roeck
2026-11-02 8:09 ` Pablo Mazzini
2026-11-02 14:41 ` Guenter Roeck
2026-11-02 10:25 ` Andreas Kemnade
2026-11-02 14:43 ` Guenter Roeck
2026-11-02 17:09 ` Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 6/7] regulator: sy7636a: bind to the I2C device directly Pablo Mazzini
2026-11-04 18:28 ` Andreas Kemnade [this message]
2026-11-04 19:31 ` Pablo Mazzini
2026-11-01 22:31 ` [PATCH v2 7/7] ARM: imx_v6_v7_defconfig: drop the SY7636A MFD option Pablo Mazzini
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=20261104192845.41b086ea@kemnade.info \
--to=andreas@kemnade.info \
--cc=alistair@alistair23.me \
--cc=broonie@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mfd@lists.linux.dev \
--cc=pmazzini@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®