From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C0DA91381F3 for ; Fri, 6 Sep 2013 22:20:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5EB0E0C2C; Fri, 6 Sep 2013 22:20:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 351CFE0C2C for ; Fri, 6 Sep 2013 22:20:35 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2487E33EBCE for ; Fri, 6 Sep 2013 22:20:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A718FE468F for ; Fri, 6 Sep 2013 22:20:32 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1378506023.519339fac12cf7c441911ef2ae67b4301908f37c.xmw@gentoo> Subject: [gentoo-commits] dev/xmw:master commit in: dev-embedded/msp430-uart/files/, dev-embedded/msp430-uart/ X-VCS-Repository: dev/xmw X-VCS-Files: dev-embedded/msp430-uart/ChangeLog dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm.patch dev-embedded/msp430-uart/metadata.xml dev-embedded/msp430-uart/msp430-uart-0.ebuild X-VCS-Directories: dev-embedded/msp430-uart/files/ dev-embedded/msp430-uart/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: 519339fac12cf7c441911ef2ae67b4301908f37c X-VCS-Branch: master Date: Fri, 6 Sep 2013 22:20:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6c70eccd-a8d9-4e23-9827-a98855152f93 X-Archives-Hash: a7d50b74c59e0a0c1f2f13e7a54a8c19 commit: 519339fac12cf7c441911ef2ae67b4301908f37c Author: Michael Weber xmw de> AuthorDate: Fri Sep 6 22:20:23 2013 +0000 Commit: Michael Weber gentoo org> CommitDate: Fri Sep 6 22:20:23 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=519339fa Initial import Package-Manager: portage-2.2.0 Manifest-Sign-Key: 62EEF090 --- dev-embedded/msp430-uart/ChangeLog | 5 +++ .../msp430-uart/files/msp430-uart-0-cdc-acm.patch | 33 ++++++++++++++++++++ dev-embedded/msp430-uart/metadata.xml | 8 +++++ dev-embedded/msp430-uart/msp430-uart-0.ebuild | 36 ++++++++++++++++++++++ 4 files changed, 82 insertions(+) diff --git a/dev-embedded/msp430-uart/ChangeLog b/dev-embedded/msp430-uart/ChangeLog new file mode 100644 index 0000000..142e3cb --- /dev/null +++ b/dev-embedded/msp430-uart/ChangeLog @@ -0,0 +1,5 @@ +*msp430-uart-0 (06 Sep 2013) + + 06 Sep 2013; Michael Weber + +files/msp430-uart-0-cdc-acm.patch, +metadata.xml, +msp430-uart-0.ebuild: + Initial import diff --git a/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm.patch b/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm.patch new file mode 100644 index 0000000..3936f1b --- /dev/null +++ b/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm.patch @@ -0,0 +1,33 @@ +From https://aur.archlinux.org/packages.php?ID=63769 + +--- cdc-acm.c.orig 2013-04-11 20:33:24.000000000 +0400 ++++ cdc-acm.c 2013-04-11 20:33:41.463683982 +0400 +@@ -552,11 +552,6 @@ + goto error_submit_urb; + } + +- acm->ctrlout = ACM_CTRL_DTR | ACM_CTRL_RTS; +- if (acm_set_control(acm, acm->ctrlout) < 0 && +- (acm->ctrl_caps & USB_CDC_CAP_LINE)) +- goto error_set_control; +- + usb_autopm_put_interface(acm->control); + + /* +@@ -577,8 +572,6 @@ + error_submit_read_urbs: + acm->ctrlout = 0; + acm_set_control(acm, acm->ctrlout); +-error_set_control: +- usb_kill_urb(acm->ctrlurb); + error_submit_urb: + usb_autopm_put_interface(acm->control); + error_get_interface: +@@ -609,7 +602,6 @@ + mutex_lock(&acm->mutex); + if (!acm->disconnected) { + usb_autopm_get_interface(acm->control); +- acm_set_control(acm, acm->ctrlout = 0); + usb_kill_urb(acm->ctrlurb); + for (i = 0; i < ACM_NW; i++) + usb_kill_urb(acm->wb[i].urb); diff --git a/dev-embedded/msp430-uart/metadata.xml b/dev-embedded/msp430-uart/metadata.xml new file mode 100644 index 0000000..5b80fb9 --- /dev/null +++ b/dev-embedded/msp430-uart/metadata.xml @@ -0,0 +1,8 @@ + + + + +xmw@gentoo.org +Michael Weber + + diff --git a/dev-embedded/msp430-uart/msp430-uart-0.ebuild b/dev-embedded/msp430-uart/msp430-uart-0.ebuild new file mode 100644 index 0000000..c432280 --- /dev/null +++ b/dev-embedded/msp430-uart/msp430-uart-0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit linux-info linux-mod eutils + +DESCRIPTION="kernel module fix for the MSP430 LaunchPad UART" +HOMEPAGE="https://aur.archlinux.org/packages.php?ID=63769" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +CONFIG_CHECK="~!USB_SERIAL_TI" +ERROR_X86_ACPI_CPUFREQ="CONFIG_USB_SERIAL_TI has to be configured to Module to enable the replacement of cdc-acm with msp430-uart." +MODULE_NAMES="${PN}(misc:)" +BUILD_TARGETS="module" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_prepare() { + cp -v "${KERNEL_DIR}"/drivers/usb/class/cdc-acm.{c,h} . || die + epatch "${FILESDIR}"/${P}-cdc-acm.patch + echo "obj-m := ${PN}.o" >> Makefile + echo "module:" >> Makefile + echo " \$(MAKE) -C "${KERNEL_DIR}" M="${S}" modules" >> Makefile + mv cdc-acm.c ${PN}.c || die + export KERNEL_DIR="${KERNEL_DIR}" +}