Message ID | 20230607144931.v2.4.Ibf8e1342b5b7906279db2365aca45e6253857bb3@changeid (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/panel and i2c-hid: Allow panels and touchscreens to power sequence together | expand |
On Wed, Jun 07, 2023 at 02:49:26PM -0700, Douglas Anderson wrote: > Inform fw_devlink of the fact that a panel follower (like a > touchscreen) is effectively a consumer of the panel from the purposes > of fw_devlink. > > NOTE: this patch isn't required for correctness but instead optimizes > probe order / helps avoid deferrals. > > Signed-off-by: Douglas Anderson <dianders@chromium.org> > --- > Since this is so small, I'd presume it's OK for it to go through a DRM > tree with the proper Ack. That being said, this patch is just an > optimization and thus it could land completely separately from the > rest and they could all meet up in mainline. > > Changes in v2: > - ("Add a devlink for panel followers") new for v2. > > drivers/of/property.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Rob Herring <robh@kernel.org>
diff --git a/drivers/of/property.c b/drivers/of/property.c index ddc75cd50825..cf8dacf3e3b8 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1266,6 +1266,7 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells") DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells") DEFINE_SIMPLE_PROP(leds, "leds", NULL) DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) +DEFINE_SIMPLE_PROP(panel, "panel", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1354,6 +1355,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_resets, }, { .parse_prop = parse_leds, }, { .parse_prop = parse_backlight, }, + { .parse_prop = parse_panel, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, },
Inform fw_devlink of the fact that a panel follower (like a touchscreen) is effectively a consumer of the panel from the purposes of fw_devlink. NOTE: this patch isn't required for correctness but instead optimizes probe order / helps avoid deferrals. Signed-off-by: Douglas Anderson <dianders@chromium.org> --- Since this is so small, I'd presume it's OK for it to go through a DRM tree with the proper Ack. That being said, this patch is just an optimization and thus it could land completely separately from the rest and they could all meet up in mainline. Changes in v2: - ("Add a devlink for panel followers") new for v2. drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+)