Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1550323rdb; Mon, 2 Oct 2023 13:10:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH83pYzqYNVLNtUXp9/k8TGeONuI7ldW7Vb24W2UILGAJ3BOhy5X8+mfhaxa7e7Lfp1HZQR X-Received: by 2002:a05:6358:7287:b0:150:8ba9:56 with SMTP id w7-20020a056358728700b001508ba90056mr5129275rwf.2.1696277399707; Mon, 02 Oct 2023 13:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696277399; cv=none; d=google.com; s=arc-20160816; b=RUc/iK0wL/pbFO/DRebmSmjRLRTz1RV0ukzmTCiYmz0MJ6YxiU3HIJ+z99jgXTV/o1 Grjt9/5QNJ5sAObyqigk8M7lk2mI0II7/SnCRIPh10yIEJtKkMVGhFJnWW3mFjct4JvL wr+ZCqedRFbJ/evvo/eKDGUCXwnG+TObieXKbaoPhsvHgsyr9vcUo/wetF0QK7Z3NHKz rNoVREuMxdAMjEkDsowLkuwMW225jyqC6UrKPoFSzvwYA0K48WAmKsc3U6IA2WZxVUf5 g0Arc3OkrBvMacVdPzg1ZCaohjVSa7e2Gf2XkaJrqdQZ/CAedAmXPlaZJgwXz2cx3m1M 23xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=O+6tSuZGsJ8MLmUkhQ/q6aX6p0H5mimnkA642RTbylo=; fh=VjUrb3vhawZDNuWMblZdbQdjE9faKzp2oXaFESL9PQA=; b=TxxRWs7ac1UUgW9rFLwuyzF97ByCj73kF822rYPXat8pExE00B5kjKJX3zBNe5bHYe OujlV1QyBU+QOVKllsS6wmTAGD3Xd3b9MVO/ILYEuxLltAmNEG71XV/cbc8g4qb77SmJ /X4jPp8FiD/gNTvLcLhTEj0a1phxRySuXDkc2xI7qNC5vUtakhtyrgIMEUxF/jmw2sU+ 9soF8OJfs0tIJGlqw/9qCrzEi8OnBDhsHxR5WPEFgpM4ZIwPScLE03tmkE7LhrezGfhH 3QRYZjJ88tyRBYn9KbTVBsCHTUVSll9LuIH8apMi8eUZ1oksoqAAsPPIOYNZntXeAKzV m+7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=f4C2hTxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ea25-20020a056a004c1900b00690ba709d02si28271782pfb.381.2023.10.02.13.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 13:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=f4C2hTxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 35AB28056C62; Mon, 2 Oct 2023 09:01:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238360AbjJBQAy (ORCPT + 99 others); Mon, 2 Oct 2023 12:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238330AbjJBQAw (ORCPT ); Mon, 2 Oct 2023 12:00:52 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC594B8 for ; Mon, 2 Oct 2023 09:00:48 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9ae7383b7ecso732542566b.0 for ; Mon, 02 Oct 2023 09:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696262445; x=1696867245; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=O+6tSuZGsJ8MLmUkhQ/q6aX6p0H5mimnkA642RTbylo=; b=f4C2hTxCkxrb0R0Kf8tOr/+7s4xgm5l92EIxycloLqEtyB+khxf7KP9LlTybOhMCHQ qmoAhWw//iNt1r552BPZgpn8RM4WFEQmko/AOk5RtLRoFt5O0aBs0FW/JqG3wGTbBFdF yFfNiTdfe1/EUZYZQ4dWnXPdlEKjv0SanoRig= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696262445; x=1696867245; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O+6tSuZGsJ8MLmUkhQ/q6aX6p0H5mimnkA642RTbylo=; b=GLBXIB7BadVK5MUuHfbKQlA+SN/L2pJnVeaJyrDodHg4I0j46Ki4YCrrU53sktMbeE YyOHsab0weQLInboI8P6ks89Ntp5Gtt1LemfhMtbiUHMJjrg/t3gSVlbRW2/72Ybr36p BgWhLaBTXsWNXekKWmQ8lY7MXjRyI9mQexA9fc0xa5SU+4fEtINVefL3cdrY9/hkpLU1 fi2yG3t9SrFBo8PkXO/3DCkOpanBCj1gj5xcWG6wo7+uszo/sO5l8IlcKqScUHjRBCAY nqDeDBkbcNY7xRduPifbAVl1cpmWwz8zYhguq5/LgUdVBYx0l9qgpuE7wqIfbJNZTG9T idhA== X-Gm-Message-State: AOJu0YwsCTbY0eEoIfgti1FpQ7PpDdK8mtDH8VQp6gFYMyGd6W/yFt4o unr1eKSYQE5zqMtZbtxR20EPuLhO9vglGF7XotIdWy/0 X-Received: by 2002:a17:907:3d8d:b0:9ae:614f:b159 with SMTP id he13-20020a1709073d8d00b009ae614fb159mr33542ejc.36.1696262445099; Mon, 02 Oct 2023 09:00:45 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id h15-20020a1709062dcf00b009adc86b75d5sm17199595eji.189.2023.10.02.09.00.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Oct 2023 09:00:44 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-536ef8a7dcdso17479a12.0 for ; Mon, 02 Oct 2023 09:00:44 -0700 (PDT) X-Received: by 2002:a50:9b19:0:b0:522:4741:d992 with SMTP id o25-20020a509b19000000b005224741d992mr156294edi.4.1696262443982; Mon, 02 Oct 2023 09:00:43 -0700 (PDT) MIME-Version: 1.0 References: <20230918125851.310-1-johan+linaro@kernel.org> In-Reply-To: From: Doug Anderson Date: Mon, 2 Oct 2023 09:00:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] HID: i2c-hid: fix handling of unpopulated devices To: Johan Hovold Cc: Johan Hovold , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Maxime Ripard , Dmitry Torokhov , LinusW , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 09:01:03 -0700 (PDT) Hi, On Mon, Oct 2, 2023 at 8:48=E2=80=AFAM Johan Hovold wrot= e: > > > In any case, the fact that there is a shared power rail / shared power > > sequence is because the hardware designer intended them to either be > > both off or both on. Whenever I asked the EEs that designed these > > boards about leaving the touchscreen on while turning the panel power > > off they always looked at me incredulously and asked why I would ever > > do that. Although we can work around the hardware by powering the > > panel in order to allow the touchscreen to be on, it's just not the > > intention. > > I hear you, but users sometimes want do things with their hardware which > may not have originally been intended (e.g. your kiosk example). ...and they can. I don't think it's totally unreasonable for userspace in this case to take into account that they need to keep the panel powered on (maybe with the screen black and the backlight off) if they want the touchscreen kept on. If I was coding up userspace it wouldn't surprise me at all if the touchscreen stopped working when the panel was off. I will further note that there is actually hardware where it's even more difficult. On the same sc7180-trogdor laptops (and others as well) the USB webcam is _also_ powered by the same power rail. When you power the screen off then the USB webcam deenumerates. When you power the screen on then it shows back up. It would be really weird if somehow the USB webcam driver needed a link to the panel to try to keep it powered. -Doug