Received: by 10.223.176.5 with SMTP id f5csp3794691wra; Mon, 29 Jan 2018 19:59:14 -0800 (PST) X-Google-Smtp-Source: AH8x226Swboh8V5u+OX+Jm7bw3djLRDsAchq6DSY6Qul97Orx/dOGuQCQqsFtqU90+GPzulf2Hqi X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr24429238plo.366.1517284754641; Mon, 29 Jan 2018 19:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517284754; cv=none; d=google.com; s=arc-20160816; b=S2JOAm+s+elWPz3GsbwRRhd9ViXW0G7xJzUY/8SdWZ1fmJT9wshcmXu2uQ9Hkw1KMJ nZsF8T6wK2H7zRT7nk80p+D60ike1HMvPjG4q1k1EVLcizBLo7F5Du+vVtwc3eAItFFb VywlbLCArZjPhAamgfqns9hsTggP/ihsP/e0iG/dU8WI61UNPNlysuYUgsYVl8v1M8v5 0Q3tPSuyN+2jiI0ETRDqbtM+RHkAeKmwXnwZIW6Ws+guVjp6wU9FxlEkkIBzQSsK/4f7 Q/18qByN5d0fjE3R+4Qv9LmNm4QhU8cyU9jvhXwfsJB2Hp+CLT8YdKSIo6qcZgk7RSSK u8QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=CDMg3Sagm6qSI9+2p45wSuFebikcTd5PH6ei8zzo4iE=; b=kkpK5E//HcMyn2qSQvt4hGsvG4wy+ddPCD+KOuRYOJePp0Re06zWSzrFLMBovsw4og 2J/XA7EG8pRzKI2x54wH/lmmsMOPvmkh484W2dxaQgIt22ERp1Vcid1gEsQLyUsST96Y SdBzMy/mz+zfebCvNhd2WEOQZbrWYHPoC1XD+nIelqMYga4nENoqnKyBRJSwzqn/37ZG siejKk/I8/CAdqUy7QaG++V0SkE+6/GhonOMe692rAU+MCaCs/NLMvJNXj/uo23DcvVo LL2BOCm9pXeT5zyraatCd29V9g9PaM3LXQHdzjkrKlk/Z4BkRcNMkM7J/87BJ0jqeEdX wnrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UnwLecdE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si455725plb.472.2018.01.29.19.59.00; Mon, 29 Jan 2018 19:59:14 -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=fail header.i=@gmail.com header.s=20161025 header.b=UnwLecdE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752466AbeA3D6h (ORCPT + 99 others); Mon, 29 Jan 2018 22:58:37 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:40206 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbeA3D6g (ORCPT ); Mon, 29 Jan 2018 22:58:36 -0500 Received: by mail-pg0-f65.google.com with SMTP id g16so6190762pgn.7; Mon, 29 Jan 2018 19:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CDMg3Sagm6qSI9+2p45wSuFebikcTd5PH6ei8zzo4iE=; b=UnwLecdEW3U+EjExFZVSOr0yxSfss89Aw5yxOLO4ExEiLbIRBFgeAYi0RH7daZDPG5 yshayEmtnKqC88y/STKC7DyPHbntnuP4O5JbasIMWJiE8vZ6VSTc+lp6yHIFyS0UhulN lDth3afGkII6Yko51hw1hoIMbLcH2a2ra6Qk6/gkr85BHhxbbcWKVD/2YGdFiT8vmnpW jz6ta4lAEpL2K/hNwpZdr69eqkHgV8BQZydP1Uy8OhqZFbc6mRyJHnLaGcMwumgVI4MY VAF6CEQDfvEadK3x6MDnUkvA3ztMI22IFBFtfaOFr6z2PZHFcrmj3HcR3WLU/eHxbC7J E+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=CDMg3Sagm6qSI9+2p45wSuFebikcTd5PH6ei8zzo4iE=; b=MmJkVstXhlf2yftHsSr9bjtSXGUE9YtrY+nfXz25vKvntAQwxxRUSpaMmCkHpW8X7k VD7pr6NWfQvRQol3Tcwoi+cIYrH/y+HxDlRnTS5qEAn64WcYWbixQLJ7EZsQmHCgvPbT r+5btxdDo1EemMQp9DDgP86IUoaspRQBGax0sKPOpyTlLgtypZaxsGg25H+SMGESL5at nDkv9d8nRiM5KC2ofMO6QXqtBhke9MhVtLTVmdGLNdHVhD7BTtZ++EESjfM02McnyT/6 se6TmyMmLgFoUB8DpgnGaEmOd+u8+DtiGEZQdStlT4vWyWtj5ksxBypwOT9OFimfH3+i Z+xA== X-Gm-Message-State: AKwxytdx3jsgAPdAcyLKEvDXIoQLZQdIup8B4JgNjOnOl+NlByhx8qJE 7PlcCKPondBIdhpFhVwOmpvU8/bW X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr23715970plp.251.1517284715480; Mon, 29 Jan 2018 19:58:35 -0800 (PST) Received: from pi.iht.com.au ([203.87.124.230]) by smtp.gmail.com with ESMTPSA id g15sm19860230pgu.52.2018.01.29.19.58.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 19:58:34 -0800 (PST) X-Google-Original-Sender: Received: from johan by pi.iht.com.au with local (Exim 4.89) (envelope-from ) id 1egN3L-0000G1-1Y; Tue, 30 Jan 2018 14:57:47 +1100 Date: Tue, 30 Jan 2018 14:57:47 +1100 From: Johan Hovold To: "Ji-Ze Hong (Peter Hong)" Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin Message-ID: <20180130035747.GB3434@localhost> References: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> <1516607927-8887-3-git-send-email-hpeter+linux_kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516607927-8887-3-git-send-email-hpeter+linux_kernel@gmail.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 03:58:45PM +0800, Ji-Ze Hong (Peter Hong) wrote: > The F81232 can do remote wakeup via RX/RI pin with pulse. > This patch will use device_set_wakeup_enable to enable this > feature. This is a policy decision that should be made by user space by setting the power/wakeup attribute, and not something that something that drivers should enable directly themselves. Perhaps you really wanted to use device_set_wakeup_capable()? But then you also need to honour the current setting in suspend() as well. How have you tested this feature? Johan