Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1395248rwb; Thu, 1 Dec 2022 17:07:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ulEReI81+2GtFSHw8LhRtdVe9z6SThMh8VSZdiEnqEKwDvl8RvvVCC1QH1Jc/x+9yPe+/ X-Received: by 2002:a17:906:504:b0:7b5:2d9f:4019 with SMTP id j4-20020a170906050400b007b52d9f4019mr48324851eja.536.1669943239844; Thu, 01 Dec 2022 17:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669943239; cv=none; d=google.com; s=arc-20160816; b=toGAVkf4BW7UsBWxr8KkURfTRDI9eFyoaThV3Llqo6e+CWD2XjPXmVGGN8LqUPRR30 3w9i5kF/eF0OSfvBdmhAhsUoJHX58beTfKkMSnXroAZK+G37ppz/cEQgjbggsjtSNJcQ MhFcXM/MQDEJ7T8JPOvsP7jNMlRfrz2Bv8xtBqrO2HhYOqdBVSvsCCuzEDcHJyAyA3N0 bHkZXrZJZUeVEtV6cq07+JzCdzGNdiVCYMmoQcT/SYV/30n+hZbCyWsUkiPYl10ncNdi xHHUBtGP1A2ccoI/MIXc8Gu2IX32Yd2b69GuRyzEMdF9gjzTUGgI+AipBIkH/8/sUQlf iwrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XtB7qSqiIzlg8ss9ldhy5DqRNqK+3OXWrV3JxhE5L/Q=; b=CHxPbPzL9Hg/woq9sc53TNwCdeF3d5paGlf4EBy+fbben5ddrrsR4YFNNPHm/OriGV 8RNJNhXyQA+nCHzzF6BUBRQ1EJiKT7iylSceE4uQcwdFjksYUH7p7MJN5NavMiPkE6tA Dksl9eRExqiD145RXIU+0bIy2rR7AC7c/LaSKfHQbOSO9rYmBXj+b7IB7xoTHn1kW6DM KQ0rh5Hju3NZEXypF4Dd5pesLJYQf8EjIUnf7ShFThlm5gB4jrJ6/EX5plYZLBsWlCLd s7HDIwbklpLBOpqq6+mGWFC3118wPAjSDgbW0xh/g3P2/kubJ2WFzM6Tkq+AKQw1xCS1 ehEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NShPh6Ld; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg40-20020a170907a42800b007b4d76f5b17si5259391ejc.82.2022.12.01.17.07.00; Thu, 01 Dec 2022 17:07:19 -0800 (PST) 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=@chromium.org header.s=google header.b=NShPh6Ld; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbiLBAcw (ORCPT + 82 others); Thu, 1 Dec 2022 19:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbiLBAcX (ORCPT ); Thu, 1 Dec 2022 19:32:23 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E784B0D for ; Thu, 1 Dec 2022 16:30:09 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id u10so2502276qvp.4 for ; Thu, 01 Dec 2022 16:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XtB7qSqiIzlg8ss9ldhy5DqRNqK+3OXWrV3JxhE5L/Q=; b=NShPh6Ldo6cB9Y7/znInI3jzj6Ptq2/otJBs0262+9AWk8MYfYjMQfa2K6i2/34orr GmzzjpcDdTZBw+e1rAyA/G21UiefhbIN1Byy436S0o1TpcmSx5QNtNJyWwMADtjJfSnO aakdUkAsRdnbvcyg0/DM198QVoHyC4d1KEEUw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=XtB7qSqiIzlg8ss9ldhy5DqRNqK+3OXWrV3JxhE5L/Q=; b=OLy1/ZZHXr6I0LxOQ2c4207Ijp6pcGBm3WLrM9B2P6XIGL0tTGQtHoJ8a/1wftlONB AlZkF27PsqGoF2ZbQ9HEgWeEmDo2ETy51VhcFR12TU56QvfFcQwl75XgjxHojPzDByab Z2QQrNrTnOWJAE4LlezqPORy6cTPKckpmh3tXaW/DvZcGoX6alL4FUTwwicDKxvAGaTs q/OKpyDtCUDM2Jajr+HtJnpPemji5imaXPKXeQapPtISu8SaNqT1SstVDuup6OKl3QUP 8yjFB07yaiw2YA2kH0CkTPapGz4nDsKY5q/rrV6/cAuJOO0ionK1Sg5YYI7WudV2QvDH uPSg== X-Gm-Message-State: ANoB5pn3oE1MGeIxkAreq13Gs8YCe0vawlptBVEO2LDt6AXjOoZW1qo4 Oe/KPwOu3viKpXtXKwBWf3AW9H+D1VYQF3PfUPpvDw== X-Received: by 2002:ad4:4c03:0:b0:4bc:182e:78c2 with SMTP id bz3-20020ad44c03000000b004bc182e78c2mr44392547qvb.2.1669941008652; Thu, 01 Dec 2022 16:30:08 -0800 (PST) MIME-Version: 1.0 References: <20221130231936.1666390-1-wonchung@google.com> In-Reply-To: From: Prashant Malani Date: Thu, 1 Dec 2022 16:29:57 -0800 Message-ID: Subject: Re: [PATCH] platform/chrome: Create new USB driver for RGB keyboard in ChromeOS devices To: Won Chung Cc: Benson Leung , linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Thu, Dec 1, 2022 at 2:52 PM Won Chung wrote: > > On Thu, Dec 1, 2022 at 1:36 PM Prashant Malani wrote: > > > > > > We're seeing some behavior where a bound driver is needed in order for > > > this USB device to properly enter suspend state. Just manipulating the > > > power/control and other sysfs nodes for this usb device when there's > > > no driver in the kernel doesn't seem to affect the device's ability to > > > drop into a usb low power state. > > > > That seems like an issue with the device then, which should be debugged > > from the device side and/or its interaction with the USB subsystem. > > > > Hi Prashant, > > As Benson mentioned, I can check on my test Vell device that changing > power/control does not suspend the device. > Should it be controllable even without a driver bound? Um, it should be(?); usb_enable_autosuspend() [1] and `echo auto > power/control` [2] both seem to call the same runtime PM function. I've not looked into runtime PM code deeper than that, but it may be worthwhile to examine what's causing the suspend to get blocked. [1] https://elixir.bootlin.com/linux/latest/source/drivers/usb/core/driver.c#L1637 [2] https://elixir.bootlin.com/linux/latest/source/drivers/base/power/sysfs.c#L113