mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>, robh@kernel.org
Cc: tytso@mit.edu, krzk@kernel.org, "Landge,
	Sudan" <sudanl@amazon.co.uk>,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, sudanl@amazon.com, graf@amazon.com,
	dwmw@amazon.co.uk, xmarcalx@amazon.co.uk
Subject: Re: [PATCH v7 3/3] virt: vmgenid: add support for devicetree bindings
Date: Fri, 19 Apr 2024 16:14:35 +0200	[thread overview]
Message-ID: <e2de24bf-d154-4b11-b322-8bad7de8a0a6@linaro.org> (raw)
In-Reply-To: <CAHmME9r8+ULD74ehz-LOpuAXb57BDFCD9Gr3Aw-JPJfTLC5OCw@mail.gmail.com>

On 19/04/2024 16:02, Jason A. Donenfeld wrote:
> Hi Rob,
> 
> On Fri, Apr 19, 2024 at 3:30 PM Landge, Sudan <sudanl@amazon.co.uk> wrote:
>>>   config VMGENID
>>>          tristate "Virtual Machine Generation ID driver"
>>>          default y
>>> -       depends on ACPI
>>> +       depends on ACPI || OF
>>
>> Version 2 of the patches had these flag but were removed in version3
>> following the below review comment from Rob:
>> "One of those is pretty much always enabled, so it can probably be dropped."
>> reference :
>> https://lore.kernel.org/lkml/CAL_JsqJoB5CYajWuntMdQrJZir+ZA-69Q0cwvxcVZAqs-mXC+Q@mail.gmail.com/
> 
> Are you sure about that? I see other drivers that depend on `ACPI ||
> OF`, and this driver is totally useless without either disabled
> (right?), so the dependency makes sense. I think? Not an expert in
> this area, so I'm happy to defer to what you know is best, but I did
> want to lightly pushback a bit.
> 

There are just 18 cases, so I would argue that it's not a real pattern
but could be just growing organically, without really thinking.

The driver could still be probed on some !ACPI and !OF system via driver
name matching.

Keeping it as is seems harmless, but OTOH, if this stays, you miss ||
COMPILE_TEST

Best regards,
Krzysztof


  reply	other threads:[~2024-04-19 14:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 12:12 [PATCH v7 0/3] virt: vmgenid: add devicetree bindings support Jason A. Donenfeld
2024-04-18 12:12 ` [PATCH v7 1/3] virt: vmgenid: change implementation to use a platform driver Jason A. Donenfeld
2024-04-19 13:31   ` Landge, Sudan
2024-04-18 12:12 ` [PATCH v7 2/3] dt-bindings: rng: Add vmgenid support Jason A. Donenfeld
2024-04-19 13:31   ` Landge, Sudan
2024-04-19 13:36     ` Krzysztof Kozlowski
2024-04-18 12:12 ` [PATCH v7 3/3] virt: vmgenid: add support for devicetree bindings Jason A. Donenfeld
2024-04-19 13:29   ` Landge, Sudan
2024-04-19 14:02     ` Jason A. Donenfeld
2024-04-19 14:14       ` Krzysztof Kozlowski [this message]
2024-04-19 14:16         ` Jason A. Donenfeld
2024-04-19 13:19 ` [PATCH v7 0/3] virt: vmgenid: add devicetree bindings support Landge, Sudan

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=e2de24bf-d154-4b11-b322-8bad7de8a0a6@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=Jason@zx2c4.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dwmw@amazon.co.uk \
    --cc=graf@amazon.com \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sudanl@amazon.co.uk \
    --cc=sudanl@amazon.com \
    --cc=tytso@mit.edu \
    --cc=xmarcalx@amazon.co.uk \
    /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®