Received: by 10.223.176.46 with SMTP id f43csp2609936wra; Mon, 22 Jan 2018 00:00:43 -0800 (PST) X-Google-Smtp-Source: AH8x226H9BTdppTShQr1DBHgqi9SbQT0H3axcuYxlcbs1DdC9DSlAVIo19XHfwGA3NJPRuOYECaA X-Received: by 2002:a17:902:9343:: with SMTP id g3-v6mr3025737plp.319.1516608043744; Mon, 22 Jan 2018 00:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516608043; cv=none; d=google.com; s=arc-20160816; b=uH0HlC4r+HSuymiVNT2gOccrqGreHm2gkR0fnEDMqrMwv1K0LI+F+O+Q09+u0dyUu3 cGrNQ125mB0rOrcJEg5GUGsu//JNmx81m0rGef2q/4BUmlJ/LJcRDTUEqGwNYsNc9GpD wFiMNKn45Xci0RbN5+V/KRyI5+KE1R/gGzOPf8eP5/xfqKK6497X5p9h0pWE0Rie8phF z1OkdAHkqGoFR/151YqX1zGQi47bsR1xR+rrc11OGoeD6EVYEWKsU33efpZRWDwxSOXd YPGJ7UAWLp2hi78gU+9g30nKYObxkPQTY55WybSVVnGPjdeqIA3A1YfVS20Jp2qHYqCW +7rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=q3gVCPnVad4OqtNVlqqbDGqqHzBX1+sjI/cDj5m/D0I=; b=0bnp8CgPhDYr0hT07A+C82hik/GAGqI9xqWy+on1Gixq2436iQN6ML7WaapjLKaxY9 B7NOwDYfM4SQp8mTNydshGQDwymZGIFbDLdW1quDnwRdraNI+v4wJwuJXoEiX8hiTVSr 4pGdV9gzal5skqziDYg1t7HL/e0zE7jCJqjcbixmHkuApQ1QAlblYWO5wIVR4OuJd4Pf DrV0W7MqpzswGbc6r+HKy0AY0ZwPNOXZN9/NQ7sS7Zd5kJ4m7yMejLhBvDXsH5K6sJdP 8pR64uE/l2ZrvCvET8D6kfuN8EsxK7g95ReNziFwnBQ/y1CatL+jSXg4GSUQvWXEujnS dGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sM4fWNIV; 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=NONE 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 h192si13495875pgc.123.2018.01.22.00.00.30; Mon, 22 Jan 2018 00:00:43 -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=sM4fWNIV; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751249AbeAVH7l (ORCPT + 99 others); Mon, 22 Jan 2018 02:59:41 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36426 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751110AbeAVH6z (ORCPT ); Mon, 22 Jan 2018 02:58:55 -0500 Received: by mail-pf0-f193.google.com with SMTP id 23so6473134pfp.3; Sun, 21 Jan 2018 23:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q3gVCPnVad4OqtNVlqqbDGqqHzBX1+sjI/cDj5m/D0I=; b=sM4fWNIVNyxQ5WIcQOGYfd8aQTsrqGI6iEBK3PWftGLnrPtYcedbtwyBEFtPHBhtBx wvOs+jwtkTaxmJq+vrrF3OcsZAnkrePMsS6yCM6eMoWOnjtRQY0C6ZJMct2xvWllD7Op +daxCSxh95iyBGgsoN7p8YTLsBxdHF9U3QEpXlODkJQwB3YKxAGp3sXYg5jCIQzDDnuj JfY5NTyE667KmJef/5gA6t/TkWFIMygz0uWY+3ReY022PK609h1TGVaZ1CaKQFDOUJv9 2Ibj4yJ+kVKvp+TGV6FZUODkUxZd3DbGQUNyOEJXsy8nVuIHdIKku+Pshd0bonK32EWw SMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q3gVCPnVad4OqtNVlqqbDGqqHzBX1+sjI/cDj5m/D0I=; b=H8HF58ep4Fvus3xAiAc/6JbjpCu+l9a3PgNhIoCeuUkBVYV97wMk7yZpC5QxBwEru8 Ve5z1t6KwSrDLff8YBq585cAcTj0qwlFZrp6u8b5hnVFrFAMQy1fGtr02tmPU3tZU2wX s9aQRt2dHMj+0fAbAPNeoutSqRgfVTIcGsE5HEZsykwy/6GVDamVbkV9wr2D21y3ixtX FqwNGjH34+u0gmb1MZEkp6+x2D/uvEPEdlPE5RUO0wBa564Y4Aej63D6+OC9GnemKoIc gPxkITNTaXtpABBiEd4thE15gEfGRDaa9A8+4pTjug4zM2pZ23eUVTnqCiU8x6TwaYCN fERQ== X-Gm-Message-State: AKwxytc3YD71IxgQQOOflwxj1mJXA8v1gHnPrXMd7LjnNbBdgDs+B74l FAem546X82nWO4VLbJtTdkE= X-Received: by 10.99.65.133 with SMTP id o127mr6654607pga.13.1516607934382; Sun, 21 Jan 2018 23:58:54 -0800 (PST) Received: from localhost (59-120-186-245.HINET-IP.hinet.net. [59.120.186.245]) by smtp.gmail.com with ESMTPSA id w2sm10403752pgm.59.2018.01.21.23.58.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jan 2018 23:58:53 -0800 (PST) From: "Ji-Ze Hong (Peter Hong)" X-Google-Original-From: "Ji-Ze Hong (Peter Hong)" To: johan@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, "Ji-Ze Hong (Peter Hong)" Subject: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin Date: Mon, 22 Jan 2018 15:58:45 +0800 Message-Id: <1516607927-8887-3-git-send-email-hpeter+linux_kernel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> References: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The F81232 can do remote wakeup via RX/RI pin with pulse. This patch will use device_set_wakeup_enable to enable this feature. Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index bdd7f337cd5f..dadf024ae494 100644 --- a/drivers/usb/serial/f81232.c +++ b/drivers/usb/serial/f81232.c @@ -742,6 +742,7 @@ static int f81232_port_probe(struct usb_serial_port *port) port->port.drain_delay = 256; priv->port = port; + device_set_wakeup_enable(&port->serial->dev->dev, true); return 0; } @@ -752,6 +753,7 @@ static int f81232_port_remove(struct usb_serial_port *port) priv = usb_get_serial_port_data(port); kfree(priv); + device_set_wakeup_enable(&port->serial->dev->dev, false); return 0; } -- 2.7.4