public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Dan Scally" <djrscally@gmail.com>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Hao Yao" <hao.yao@intel.com>,
	"Bingbu Cao" <bingbu.cao@intel.com>, Duane <duanek@chorus.net>,
	platform-driver-x86@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH v2 8/9] platform/x86: int3472: Add handshake pin support
Date: Wed, 16 Apr 2025 15:13:44 +0200	[thread overview]
Message-ID: <02ec820b-4f2f-492d-a9e8-b028adae7747@redhat.com> (raw)
In-Reply-To: <CAHp75VdVbcMo+2ctJcax1t0Gp-eN=bycZFWPMzinmo_=Z1e_3w@mail.gmail.com>

Hi,

On 16-Apr-25 3:09 PM, Andy Shevchenko wrote:
> On Wed, Apr 16, 2025 at 4:09 PM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
>> On Wed, Apr 16, 2025 at 2:06 PM Hans de Goede <hdegoede@redhat.com> wrote:
>>> On 2-Apr-25 10:56 PM, Andy Shevchenko wrote:
>>>> On Wed, Apr 2, 2025 at 11:25 PM Hans de Goede <hdegoede@redhat.com> wrote:
> 
> ...
> 
>>>>>                         if (ret)
>>>>>                                 err_msg = "Failed to map regulator to sensor\n";
>>>>>
>>>>> +                       break;
>>>>> +               case INT3472_GPIO_TYPE_HANDSHAKE:
>>>>> +                       /* Setups using a handshake pin need 25 ms enable delay */
>>>>> +                       ret = skl_int3472_register_regulator(int3472, gpio,
>>>>> +                                                            25 * USEC_PER_MSEC,
>>>>> +                                                            con_id, NULL);
>>>>> +                       if (ret)
>>>>> +                               err_msg = "Failed to map regulator to sensor\n";
>>>>
>>>> A copy and paste mistake? Yes, I know that they are both represented
>>>> as regulators, but don't we want a bit of uniqueness in the messages?
>>>
>>> I actually did this on purpose to allow the compiler to use a single string
>>> for these saving some space. The difference of which case we hit should be clear
>>> from the earlier printed (dbg) message printed above the switch-case.
>>
>> I understand the idea, but if debug messages are off, how do we know
>> that? Or err_msg here is also a debug leveled one?
> 
> FWIW, you may use "... %s ...", regulator->name (maybe, I haven't
> checked) or similar, so the format string is the same.

That is a good idea, since I've already send out v3, I'll do so for v4.

But first I'll give you some time to review the unreviewed / modified
patches in v3, so that v4 can hopefully be the last version.

Regards,

Hans



  reply	other threads:[~2025-04-16 13:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-02 20:25 [PATCH v2 0/9] platform/x86: int3472: Add handshake pin support Hans de Goede
2025-04-02 20:25 ` [PATCH v2 1/9] platform/x86: int3472: Add skl_int3472_register_clock() helper Hans de Goede
2025-04-02 20:25 ` [PATCH v2 2/9] platform/x86: int3472: Stop setting a supply-name for GPIO regulators Hans de Goede
2025-04-02 20:25 ` [PATCH v2 3/9] platform/x86: int3472: Drop unused gpio field from struct int3472_gpio_regulator Hans de Goede
2025-04-02 20:25 ` [PATCH v2 4/9] platform/x86: int3472: Rework AVDD second sensor quirk handling Hans de Goede
2025-04-02 21:10   ` Andy Shevchenko
2025-04-02 20:25 ` [PATCH v2 5/9] platform/x86: int3472: Make regulator supply name configurable Hans de Goede
2025-04-02 21:08   ` Andy Shevchenko
2025-04-02 20:25 ` [PATCH v2 6/9] platform/x86: int3472: Avoid GPIO regulator spikes Hans de Goede
2025-04-02 21:04   ` Andy Shevchenko
2025-04-03  9:43     ` Hans de Goede
2025-04-03 14:05       ` Andy Shevchenko
2025-04-02 20:25 ` [PATCH v2 7/9] platform/x86: int3472: Prepare for registering more then 1 GPIO regulator Hans de Goede
2025-04-02 20:59   ` Andy Shevchenko
2025-04-02 20:25 ` [PATCH v2 8/9] platform/x86: int3472: Add handshake pin support Hans de Goede
2025-04-02 20:56   ` Andy Shevchenko
2025-04-16 11:06     ` Hans de Goede
2025-04-16 13:09       ` Andy Shevchenko
2025-04-16 13:09         ` Andy Shevchenko
2025-04-16 13:13           ` Hans de Goede [this message]
2025-04-02 20:25 ` [PATCH v2 9/9] platform/x86: int3472: Debug log when remapping pins Hans de Goede
2025-04-02 20:51   ` Andy Shevchenko
2025-04-02 21:02 ` [PATCH v2 0/9] platform/x86: int3472: Add handshake pin support Andy Shevchenko
2025-04-03 10:30   ` Hans de Goede
2025-04-03 14:05     ` Andy Shevchenko

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=02ec820b-4f2f-492d-a9e8-b028adae7747@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=bingbu.cao@intel.com \
    --cc=djrscally@gmail.com \
    --cc=duanek@chorus.net \
    --cc=hao.yao@intel.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=stern@rowland.harvard.edu \
    /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