Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1204890rwb; Thu, 1 Dec 2022 14:00:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6B3fulQpzqB8mj/BCUB44EpcDucUrmCLn6oLFkMQW8XIIKNAkxmD2MXnTfpbx+IroF7in0 X-Received: by 2002:a05:6a00:2352:b0:572:91c6:9e4e with SMTP id j18-20020a056a00235200b0057291c69e4emr51245060pfj.53.1669932051352; Thu, 01 Dec 2022 14:00:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669932051; cv=none; d=google.com; s=arc-20160816; b=afg9ATmGcQGt11BR0aFCTCzRWBnVQPJmQdmcprfM4wc8tTXwMBWtG+JNYXORW3ouJd VS6oBdKbmL0kbpZNu3dFO2RJXjNw4OqjRHNC0lPBSV+LfkZRWj5kOlePc5ReV86Rb9Sd rPzcYBHlgqMeTedmdoyFHHn3fxpHy2+i7SdXzZQDU/Rhpg2QkQcxCWwX7csQtfun8gW6 yK4pSdbtZvEbA/9Qvv80WSNIIS3ZZZ0cscSXaZj16vw3vK0bb8hT1JJIvDrNTzl9yt/S V+pOLw0J/+pzD3xoD9aCCofYsBkqm4MkLrtRVC8fXVTQeNB1uCPr/kLKwdrskMAmNwy+ QkzA== 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=quISd2pvnqmw/9o3WvzMsMR0W9P1ncFjwjxtR6uCSwc=; b=xT3C1Pbd3f8PfcnFi/RiPDua3rJeVnIqNpKPDlU38XL0Rs1x/719yjo4rsSknFoKvs TZsZDQ3EAOK17vCE1zT06Ik8Hl9GN6SYMrXl44qVlquC1pa+3n6/+Y5xLHPuRkhutIp+ p38UNuQg9kqVxHyD0fEEHpbOZepP/4bZ7Lcbk+kLESBM0UX3dHFA5oXeRueGJXh8Tfhh cVyJVONMIFUrbj6x1Sg84EgZim4QVxmL3sTMKQwl910fOpu91RSy9HgqxXcsr3GssFpU y3dLa1JEW1KTCAFNWwFkORIstCsR7enB3Ul5zxT5J4GXDQWyP0JxzQG8ZBL9taZYn9Xb 6WYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Tsuz+a1y; 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 w10-20020a63474a000000b004776762655fsi5433494pgk.606.2022.12.01.14.00.39; Thu, 01 Dec 2022 14:00:51 -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=Tsuz+a1y; 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 S231201AbiLAVgx (ORCPT + 82 others); Thu, 1 Dec 2022 16:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbiLAVgq (ORCPT ); Thu, 1 Dec 2022 16:36:46 -0500 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38BE4C3591 for ; Thu, 1 Dec 2022 13:36:45 -0800 (PST) Received: by mail-qt1-x82f.google.com with SMTP id h16so2710697qtu.2 for ; Thu, 01 Dec 2022 13:36:45 -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=quISd2pvnqmw/9o3WvzMsMR0W9P1ncFjwjxtR6uCSwc=; b=Tsuz+a1y7dxwXx0w+7ppxovTf/QgqSilAje86IwDPKGmK9k6yZmBA8duaBYj7V8F4P QvzKrzA32dGkk3LlNOPgpK3qsFFMCZh5+iMix2N0HwM5YJqIYxwoRhioDi1dr3fXIGvn 8sYlJ4PQLj/QsdfFN74H8i2QKJJOnvg8d3iG4= 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=quISd2pvnqmw/9o3WvzMsMR0W9P1ncFjwjxtR6uCSwc=; b=y094zIgs7PSk4rB0PP/QF/g5i3gDzpigcljW6c+qhbHdE1NNuAlFkmYkGxwRqkBBnY hb61uqYlS8nQJoj0+ATJ9oqx32sBD3UrWnXVpV8TUlf+kPg/45UAdrv6iP7iAKvmvxrP EpsYwq2ktBCTainMRv05W0O2Hbos96BPX64dEKaYlgd6fk8Db5s3cdKDu12Je9YQEJk7 I6PDBRk9+24ABO3mZJ9T52/dbAxRyfCVt43KgHttz7Tg40siNk0sVb5xWmve+OYACeaQ BSQg1P8+jW12oZ2C5g0aVs9xBVkQ3DrIZkZFuung9E9tvz9IAlTwJzl0CjoGpB8tpq5h s9ZQ== X-Gm-Message-State: ANoB5pkpel0rbUsbmaSUBpSGxl2567Bz/1vlefikVpyod1g4huZ65dhx dvn6Q4dm5xednO/5/wVd0XmdEHdVrKYBpBVWo8PHoQ== X-Received: by 2002:a37:f509:0:b0:6fb:ff0f:e7e0 with SMTP id l9-20020a37f509000000b006fbff0fe7e0mr17496799qkk.747.1669930604365; Thu, 01 Dec 2022 13:36:44 -0800 (PST) MIME-Version: 1.0 References: <20221130231936.1666390-1-wonchung@google.com> In-Reply-To: From: Prashant Malani Date: Thu, 1 Dec 2022 13:36:33 -0800 Message-ID: Subject: Re: [PATCH] platform/chrome: Create new USB driver for RGB keyboard in ChromeOS devices To: Benson Leung Cc: Won Chung , 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 Hey Benson, On Thu, Dec 1, 2022 at 1:00 PM Benson Leung wrote: > > Hi Prashant, > > > On Thu, Dec 1, 2022 at 12:10 PM Prashant Malani wrote: > > > > Hi Won, > > > > On Wed, Nov 30, 2022 at 3:19 PM Won Chung wrote: > > > > > > Without any driver bound to RGB keyboard, it may not be suspended > > > properly, preventing USB xHCI to be suspended and causing power drain. > > > Create new USB driver for RGB keyboard so that it can be suspended > > > properly. > > > > This seems like overkill. Can't you set this from USB's sysfs nodes > > like power/control [1] ? > > > > [1] https://www.kernel.org/doc/html/latest/driver-api/usb/power-management.html#the-user-interface-for-dynamic-pm > > > > > > Best regards, > > > > -Prashant > > 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. > > Also, I synced with Won about this offline, but the primary concern is > not this prism usb device runtime suspending, it's actually it's > ability to enter suspend state during system suspend. Right now, this > internal usb device is keeping the whole system from entering lower > S0iX states because it's not sleeping. This driver patch doesn't > address that yet, but I'd like Won to dig down and see if he can get > it suspending at suspend time too. Auto-suspend / dynamic PM should take care of that FWIU (but I may be mistaken).