Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754799Ab1DFCq4 (ORCPT ); Tue, 5 Apr 2011 22:46:56 -0400 Received: from smtp-out.google.com ([74.125.121.67]:58122 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344Ab1DFCqx (ORCPT ); Tue, 5 Apr 2011 22:46:53 -0400 From: Sonny Rao To: jic23@cam.ac.uk Cc: linux-pm@lists.linux-foundation.org, bleung@chromium.org, snanda@chromium.org, Sonny Rao , Greg Kroah-Hartman , Manuel Stahl , Andrew Morton , Phillip Kurtenbach , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] Enable async suspend/resume on industrial IO devices Date: Tue, 5 Apr 2011 19:45:14 -0700 Message-Id: <1302057915-13549-1-git-send-email-sonnyrao@chromium.org> X-Mailer: git-send-email 1.7.3.1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 30 Industrial I/O devices can sometimes take a long time to resume, allowing them to be asynchronus saves 50ms on one light sensor Signed-off-by: Sonny Rao --- drivers/staging/iio/industrialio-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c index 768f448..a4b099f 100644 --- a/drivers/staging/iio/industrialio-core.c +++ b/drivers/staging/iio/industrialio-core.c @@ -811,6 +811,8 @@ int iio_device_register(struct iio_dev *dev_info) if (dev_info->modes & INDIO_RING_TRIGGERED) iio_device_register_trigger_consumer(dev_info); + device_enable_async_suspend(&dev_info->dev); + return 0; error_free_sysfs: -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/