Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2873509rwd; Fri, 26 May 2023 12:35:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CplGru2CG3gfaC4NeoJ3RqZQrSDRWEgBmj3BNOwAuYNAEA4NCiP2mifccyakSunhA76gF X-Received: by 2002:a17:902:7e85:b0:1ab:7fb:aac1 with SMTP id z5-20020a1709027e8500b001ab07fbaac1mr3256432pla.24.1685129747534; Fri, 26 May 2023 12:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685129747; cv=none; d=google.com; s=arc-20160816; b=XhAvrj9dOEokgHc5kOVTULps9lW7NiHH/+x3WME/j5OSOYndMNw2DXrHdBfJeoh0hl rikgg8eytlvK/otAlJfPVOVq2VgQcYrkpuJf9iN7Hy1/wwQCMFuzk6I1luDIWTVDC47H /D8Ab/4CFsGZow5PZ+imKO+Vmst8HrhjP0L6xjrF0QgIN412j3uIElqibnii1NHNrXr6 k7pDDaPYt81jtXuGzxjDqP5kTLCXaRYek46xfKq3sblag6Do/EA8fuCs4238A+/U9/gG WPfaqd2usXUa6Kn56DT0Vdc5P++UxEDtOH6qhrxBiK7h4+IpmvVzFgYgzrCV905fxpwc ATIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0ynDYbGdsZF04vCXi/fdD62cVu/XTnLlDnsDcsQE+gU=; b=pzxuEbO1ZMzSH19//WGvUGoa9oU7MO7OWBxBSl8v4sByc4Vn+iR6whHeJpJZUJfJki kqg2iKctxTVnL7W7yblkGOuoOT3zVnKNk34OLHPPiicNyy5OoVdetV5HPgmuYIn4dpUi MtzEuQtPK5zobyvrZOw5ReOc9gyDf5cD1OrePd56UQYsTBgnMYLaneiic6aOX7zI3tNw bAylhj07pCWrficnTKXMQmYaDvV/q+L1FdNvA7m6j2Gqu+cNL/PTtuFxBV5eV4icrVmz nTbAA0Z95Iuruf7ugaKiqHYD5+Hb9+ndYrk2j5iaqf0hp4G4oAKFXNdu8bxjerAnovbl 5c7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDYpQbK9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a170903228b00b0019a96849d6dsi4923942plh.605.2023.05.26.12.35.09; Fri, 26 May 2023 12:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDYpQbK9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243261AbjEZT3y (ORCPT + 99 others); Fri, 26 May 2023 15:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243985AbjEZT3w (ORCPT ); Fri, 26 May 2023 15:29:52 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E200C1B3 for ; Fri, 26 May 2023 12:29:48 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2af29e51722so11727611fa.1 for ; Fri, 26 May 2023 12:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129387; x=1687721387; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0ynDYbGdsZF04vCXi/fdD62cVu/XTnLlDnsDcsQE+gU=; b=tDYpQbK97CNlp93ZtO102/5etvWLI+iwenW470Z0lkqaexV58qGOY4pSVIglOWqyTB 8TyAzZMNP+h4ImdIg2nqsAaUCgEVihijTgZv0yMBb7qBO2/yG6MKKcdA1zgWzvaF1yAe 6IE5ViHJkjV9sbrEmwYMF2aiwc/8rYpbyC260bHb9ezMHRxrF2IzyuvLf89PArkNh6K0 OP938Mv/CoAX3H3HoE76DG01Z0DhbPmpmtsZmXn/SNLXbvoBRPILmq+jWAhNM5skk0uA PeYTM4idJcy/BaMqsx5GzewZK/SxbC3z8aSDltvjU0W3O/yeywDX3PsHnqWjBNIT/QSW 40jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129387; x=1687721387; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0ynDYbGdsZF04vCXi/fdD62cVu/XTnLlDnsDcsQE+gU=; b=TRVSb3hdEa9TMwOBNp88YdM8ns3lMACjYqu9p/1U/1JltBqamYNcmpXXCMAu6VX2U3 aRSGVsn2+rIhASGPXIYO/d9MbtYe0h7Pa4ZW9BLiaiGVGzhHaG/qK8wtYW2lmpqHb/qy G8qQh7NnOrFR+0z9yTvCNvGCJoZiCEpkr66+epXWBUURPSPcrPX285QwsiQueo7cBxKC 65n5+DG2FzjMOGOZSyYaVolJyk4jfVOVrSetREqvczsAzMXa0D7RxJRpdLzh/Lz5kcLd O7CtZ5m0Bn6SGh8f0Gi02knAaRkiKEQNjD7Zq5FdsmjOwOYfs6NM557/88k3I3Ro95C+ 753Q== X-Gm-Message-State: AC+VfDzqDr/5jmAMsBmdor39Nuvt+rp4RN+KF9EQ7Pztq4YEZVqkTaNi pKFnpBIaBEkMy82zweO6OpYtFQ== X-Received: by 2002:a2e:884a:0:b0:2ad:d9bd:1d2 with SMTP id z10-20020a2e884a000000b002add9bd01d2mr1012719ljj.16.1685129386991; Fri, 26 May 2023 12:29:46 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id u4-20020a2ea164000000b002a929484fa0sm862756ljl.68.2023.05.26.12.29.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 12:29:46 -0700 (PDT) Message-ID: <0837856f-bdd5-e8b7-3a08-01244843dbd8@linaro.org> Date: Fri, 26 May 2023 21:29:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/9] drm/panel and i2c-hid: Allow panels and touchscreens to power sequence together Content-Language: en-US To: Douglas Anderson , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-input@vger.kernel.org, Dmitry Torokhov , hsinyi@google.com, devicetree@vger.kernel.org, yangcong5@huaqin.corp-partner.google.com, linux-kernel@vger.kernel.org, Daniel Vetter , linux-arm-msm@vger.kernel.org, cros-qcom-dts-watchers@chromium.org References: <20230523193017.4109557-1-dianders@chromium.org> From: Konrad Dybcio In-Reply-To: <20230523193017.4109557-1-dianders@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.05.2023 21:27, Douglas Anderson wrote: > > The big motivation for this patch series is mostly described in the patch > ("drm/panel: Add a way for other devices to follow panel state"), but to > quickly summarize here: for touchscreens that are connected to a panel we > need the ability to power sequence the two device together. This is not a > new need, but so far we've managed to get by through a combination of > inefficiency, added costs, or perhaps just a little bit of brokenness. > It's time to do better. This patch series allows us to do better. Panels with integrated touchscreens have been shipping in mainstream devices since at least 2016. Thanks a lot for looking into this! Konrad > > Assuming that people think this patch series looks OK, we'll have to > figure out the right way to land it. The panel patches and i2c-hid > patches will go through very different trees and so either we'll need > an Ack from one side or the other or someone to create a tag for the > other tree to pull in. This will _probably_ require the true drm-misc > maintainers to get involved, not a lowly committer. ;-) > > > Douglas Anderson (9): > dt-bindings: HID: i2c-hid: Add "panel" property to i2c-hid backed > panels > drm/panel: Check for already prepared/enabled in drm_panel > drm/panel: Add a way for other devices to follow panel state > HID: i2c-hid: Switch to SYSTEM_SLEEP_PM_OPS() > HID: i2c-hid: Rearrange probe() to power things up later > HID: i2c-hid: Make suspend and resume into helper functions > HID: i2c-hid: Support being a panel follower > HID: i2c-hid: Do panel follower work on the system_wq > arm64: dts: qcom: sc7180: Link trogdor touchscreens to the panels > > .../bindings/input/elan,ekth6915.yaml | 6 + > .../bindings/input/goodix,gt7375p.yaml | 6 + > .../bindings/input/hid-over-i2c.yaml | 6 + > .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 1 + > .../dts/qcom/sc7180-trogdor-homestar.dtsi | 1 + > .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 1 + > .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 1 + > .../qcom/sc7180-trogdor-quackingstick.dtsi | 1 + > .../dts/qcom/sc7180-trogdor-wormdingler.dtsi | 1 + > drivers/gpu/drm/drm_panel.c | 194 +++++++++- > drivers/hid/i2c-hid/i2c-hid-core.c | 330 +++++++++++++----- > include/drm/drm_panel.h | 89 +++++ > 12 files changed, 542 insertions(+), 95 deletions(-) >