From patchwork Tue May 19 15:52:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 24751 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4JFr1aX005548 for ; Tue, 19 May 2009 15:53:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbZESPw6 (ORCPT ); Tue, 19 May 2009 11:52:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752276AbZESPw6 (ORCPT ); Tue, 19 May 2009 11:52:58 -0400 Received: from web110812.mail.gq1.yahoo.com ([67.195.13.235]:29312 "HELO web110812.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752108AbZESPw5 (ORCPT ); Tue, 19 May 2009 11:52:57 -0400 Received: (qmail 47671 invoked by uid 60001); 19 May 2009 15:52:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242748378; bh=jV7EaWDFh1u2YG/Vup0qR/tHaXmRJElJOPeqJQTavA8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=eWQCoMfcilwmwDgMnlMkgX1xxpzSmW0VxzHpHMBWLxA5GrjTC9iaU+lJFDIZumlXn/qMQ4jBOiXUvv6aaX/4Oy54AufzkKpLuxFjFWnrN5aDe0F5KfrPjBzBK7D6WBULGU45lbONqNxlHW1JFQsfQHhcbzTA454mMCAIz78Csfc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=T83mhmQEfCg2ilRVLJW6ttysI6CW/ZYr/VEv0WrvgsBi/N6cJ1amp5+1jaDR5kqFmIFX2KUGklkLgP2WC5qBz5g+pUc8TqF6cFe5tOvsYxGnx0/60rTabxMhZ9VbSAztg/rbepp7PAGEZcf2EtNtcN/UtEM7PwZ0B7OIl0RGWB0=; Message-ID: <459659.47420.qm@web110812.mail.gq1.yahoo.com> X-YMail-OSG: FLq6TooVM1n6KA5D_kxpTCYOaI7BbSQfOzCho.NZPYSX7hpOTFFLucrbwnLoSRbN8ps3dlJaVtNKW_NqkNfNasBQ3.9Jz5Hu4Ra5LmUrLVgUqLKcHjbUGgbMpdfcVJUqahIZ_bJF.EyAHxMegLBCsBMLO_DQy72bRn28fC4E7iTNNdqj3.Z35vvh4ROBOVRFLqD.5ychOxa7toswbz3cbzqt8k5WtiR2npMmhxjdSwDsAg5bZoDqOByhuRmxhoVO0EGHUYRbq7Utfehv71ppyqnk0OVwC0ULXbdlF69dQJhSlE4rlJKyQ8ka8C8oGo_VVmSEKGSHJDWiQu0QuywPVDkiE8z4H44JqIf2F_zJw4WbYxYGgYA7zzD4Ww-- Received: from [199.203.99.233] by web110812.mail.gq1.yahoo.com via HTTP; Tue, 19 May 2009 08:52:58 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Tue, 19 May 2009 08:52:58 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [09051_51] Siano: smscore - bind the GPIO SMS protocol To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1242748628 -10800 # Node ID 11b56bb92bc853666fdc1f7dc1fb799e227a2b41 # Parent a93ebe0069b3d7d8d791ccb620a7797508cf724c [09051_51] Siano: smscore - bind the GPIO SMS protocol From: Uri Shkolnik Bind SMS protocol commands to the GPIO commands Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r a93ebe0069b3 -r 11b56bb92bc8 linux/drivers/media/dvb/siano/smscoreapi.c --- a/linux/drivers/media/dvb/siano/smscoreapi.c Tue May 19 18:53:19 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.c Tue May 19 18:57:08 2009 +0300 @@ -360,6 +360,9 @@ int smscore_register_device(struct smsde init_completion(&dev->init_device_done); init_completion(&dev->reload_start_done); init_completion(&dev->resume_done); + init_completion(&dev->gpio_configuration_done); + init_completion(&dev->gpio_set_level_done); + init_completion(&dev->gpio_get_level_done); init_completion(&dev->ir_init_done); /* Buffer management */ @@ -1151,6 +1154,23 @@ void smscore_onresponse(struct smscore_d case MSG_SMS_SLEEP_RESUME_COMP_IND: complete(&coredev->resume_done); break; + case MSG_SMS_GPIO_CONFIG_EX_RES: + sms_debug("MSG_SMS_GPIO_CONFIG_EX_RES"); + complete(&coredev->gpio_configuration_done); + break; + case MSG_SMS_GPIO_SET_LEVEL_RES: + sms_debug("MSG_SMS_GPIO_SET_LEVEL_RES"); + complete(&coredev->gpio_set_level_done); + break; + case MSG_SMS_GPIO_GET_LEVEL_RES: + { + u32 *msgdata = (u32 *) phdr; + coredev->gpio_get_res = msgdata[1]; + sms_debug("MSG_SMS_GPIO_GET_LEVEL_RES gpio level %d", + coredev->gpio_get_res); + complete(&coredev->gpio_get_level_done); + break; + } case MSG_SMS_START_IR_RES: complete(&coredev->ir_init_done); break;