Received: by 10.223.176.5 with SMTP id f5csp1671306wra; Thu, 8 Feb 2018 01:18:28 -0800 (PST) X-Google-Smtp-Source: AH8x225y7E42VTA5ZhVVuA7HSyj+gUoLTvTSPUs7jsUjsqAJo+7qwGE0uMQEH8oHxQ5k7WuOXk0B X-Received: by 2002:a17:902:241:: with SMTP id 59-v6mr31909plc.280.1518081508343; Thu, 08 Feb 2018 01:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518081508; cv=none; d=google.com; s=arc-20160816; b=BUmmmqwZTcG/Zd/xFdKfUnBsFoxR7dH4H1jWrelE5GI9ehW6d5OAWK/NZxOqDwKMZr ZxF7wUw67iN8q9iT1UQrRvWzGc/W1jrngSYj+ByML/GXW1uO8i0u6oOcVlyBt76otpIa c0uBKoFh04jr83y5zavmoB4ynoYVy+gYMT6B6TEhTki55ekfj3x0ZJ0YWOQn4HaxWqqI 1ZhyF9TYfZ2llAjbmdepEYOd/y/UOjYU81lpFa7cy5sGjuO0rfHJhjEViERR6g0leFKL Gk4hkF3mabs8MCR3PpqbUNiO+SH3KoV/v6/rz07WQRGpcZca4VeEA/Bx8BDFdqu3uvGf rLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=quJFGD/dpAksDNMFF/CHfg23aXKp2BiYDYZB7MNl1Zo=; b=O1Dv//YriNBfWk8VyaeDy1cf0XroplgBvvI0cEa3Kem+liDaPC5PYiD8bexKsnhYUH BJU0wZFDkDyDjs4weWaTXO5TdF+2BVlvD486zC0QBsLwbfLumT2xTqXDJPzuIr9HwRCq 3m1WUXAO/GfcE85ADN2PeZqP9LN43SUnFLwOqRwtXVfzNrMC4J2y+c9CyaKO7wr8VLjA ZZT3CQqPczfqrBwKFYNWRttwWC1wp7y10FnH1y7NoGv1j0Gu75EjgqdWvJumBix8H/iY S9NrqGpcxhAZHPLnrBA1XY+44ArDOHgVECDkgqLBm9hzzK9j2IJYQX+UMq/F5+z0RfhP 1x9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VMcHrz8n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si1088491pgc.194.2018.02.08.01.18.14; Thu, 08 Feb 2018 01:18:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VMcHrz8n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751834AbeBHJRa (ORCPT + 99 others); Thu, 8 Feb 2018 04:17:30 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:41212 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbeBHJR2 (ORCPT ); Thu, 8 Feb 2018 04:17:28 -0500 Received: by mail-ot0-f196.google.com with SMTP id r23so3650828ote.8; Thu, 08 Feb 2018 01:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=quJFGD/dpAksDNMFF/CHfg23aXKp2BiYDYZB7MNl1Zo=; b=VMcHrz8n6yWvFQZCIdUSmPtdtpCPpAHfgnLJlQXckVLZ088TCyTDsFL+WeQOQzQEvj B4xjOofhpYiWzj8+f2wJatj+mNm2SqPJgRe1/LfOLVMc4dKLZTwDRL0LSTcLWKE+nkJd lJmYjTPql0ZMDx11oNyVEmu+9viV7X2TH+PR5ieF2KChCFdkHIO8LHzOK7SpGIYUQ7IR 2y8mN9vbGqXsdSlt4B/2sCCzRB9h7KFJ0AC6JbKpm1orJQ3Eu+JkCuuTp55NbXYqt6WI zT/OCZ6FmYgE/gMbQ/4BS3jQKrJYcfGHsWcal7/fIRjQUI5TOhfs3tUJqZ2RCiOcwmcI WOyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=quJFGD/dpAksDNMFF/CHfg23aXKp2BiYDYZB7MNl1Zo=; b=UFZf2jrxFFE8Mo+Xxi/qwEO6mefsYIWoZSkE7FeaNx8bCM5oS5f4OEmyOCDLVYl+7v 1imIDVFMKTC2jnQwIi8l0z3MbT4lgSqqaavDGBxO863wrCzgRiUf3vkhHUDOgZiunOuD kLi7eR2RHEIo0tKLOZgXczSLVPsif+1wXTSsdPar21gEKgsI4XhxPL8h/IIxgW3JKlYv S1L7gG/v0bT/ppyi3LQ3+1e7SiRLrWM3HyPFLQR3HRX8pD7NFamFNYa8CY4qEmWPhy4c 03Bsneyxp+yr4S23DMyV9tiG2pUIUm4YV58ikGGv0cvg4TpLfRWcZKT+HrdvTll9G42c WY0g== X-Gm-Message-State: APf1xPAGxE2ldRSchrfgVLc82gsdff2ATQZKpZmz/Hm3pTyaq/VzFWJh X3/KrHIPlQ2ZY63TV8492XU= X-Received: by 10.157.81.82 with SMTP id u18mr17237oti.210.1518081447428; Thu, 08 Feb 2018 01:17:27 -0800 (PST) Received: from [192.168.1.42] (59-120-186-245.HINET-IP.hinet.net. [59.120.186.245]) by smtp.gmail.com with ESMTPSA id f5sm1810809oti.75.2018.02.08.01.17.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 01:17:26 -0800 (PST) Subject: Re: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin To: Johan Hovold Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, "Ji-Ze Hong (Peter Hong)" References: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> <1516607927-8887-3-git-send-email-hpeter+linux_kernel@gmail.com> <20180130035747.GB3434@localhost> <20180204014606.GB28684@localhost> From: "Ji-Ze Hong (Peter Hong)" Message-ID: Date: Thu, 8 Feb 2018 17:17:24 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180204014606.GB28684@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Johan Hovold 於 2018/2/4 上午 09:46 寫道: > On Thu, Feb 01, 2018 at 11:13:01AM +0800, Ji-Ze Hong (Peter Hong) wrote: >> Our USB-To-Serial support RI/ RX remote wakeup by Modem, Fax or >> other peripherals and we had tested it by following procedure with >> device_set_wakeup_enable() enabled: >> 1. Using pm-suspend to S3 >> 2. Trigger a pulse to RI/RX to wake up system. >> >> In our test, we can do remote wakeup only with >> device_set_wakeup_enable() enabled. > > Yeah, but you need to enable it though sysfs. Not every device should be > able to wake the system up. That's a decision left for user space. > >> Should we add device_set_wakeup_capable() & device_set_wakeup_enable() >> like following link?? >> https://elixir.free-electrons.com/linux/latest/source/drivers/media/rc/mceusb.c#L1476 > > No, your driver should not call device_set_wakeup_enable() itself. Just > set the wakeup capable flag in probe. And if you can disable the wake up > feature, this needs to be done at suspend depending on what user space > has requested. We'll change to device_set_wakeup_capable() and send the v2 patch when test OK. Thanks -- With Best Regards, Peter Hong