public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Weber" <xmw@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/xmw:master commit in: dev-embedded/msp430-uart/files/, dev-embedded/msp430-uart/
Date: Tue,  8 Jul 2014 16:00:48 +0000 (UTC)	[thread overview]
Message-ID: <1404835201.af846a4e98002a4fcd475bb1079b8a6e8440db4f.xmw@gentoo> (raw)

commit:     af846a4e98002a4fcd475bb1079b8a6e8440db4f
Author:     Michael Weber <michael <AT> xmw <DOT> de>
AuthorDate: Tue Jul  8 16:00:01 2014 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 16:00:01 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=af846a4e

Revbump to address newer kernels

Package-Manager: portage-2.2.10
Manifest-Sign-Key:

---
 dev-embedded/msp430-uart/ChangeLog                 |  6 +++
 .../files/msp430-uart-0-cdc-acm-3.4.10.patch       | 33 ++++++++++++++++
 dev-embedded/msp430-uart/msp430-uart-0-r1.ebuild   | 44 ++++++++++++++++++++++
 3 files changed, 83 insertions(+)

diff --git a/dev-embedded/msp430-uart/ChangeLog b/dev-embedded/msp430-uart/ChangeLog
index 142e3cb..898b950 100644
--- a/dev-embedded/msp430-uart/ChangeLog
+++ b/dev-embedded/msp430-uart/ChangeLog
@@ -1,3 +1,9 @@
+*msp430-uart-0-r1 (08 Jul 2014)
+
+  08 Jul 2014; Michael Weber <xmw@gentoo.org>
+  +files/msp430-uart-0-cdc-acm-3.4.10.patch, +msp430-uart-0-r1.ebuild:
+  Revbump to address newer kernels
+
 *msp430-uart-0 (06 Sep 2013)
 
   06 Sep 2013; Michael Weber <xmw@gentoo.org>

diff --git a/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm-3.4.10.patch b/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm-3.4.10.patch
new file mode 100644
index 0000000..f57824e
--- /dev/null
+++ b/dev-embedded/msp430-uart/files/msp430-uart-0-cdc-acm-3.4.10.patch
@@ -0,0 +1,33 @@
+From https://aur.archlinux.org/packages.php?ID=63769
+
+--- cdc-acm.c
++++ cdc-acm.c
+@@ -532,11 +532,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);
+ 
+ 	/*
+@@ -559,8 +554,6 @@
+ 		usb_kill_urb(acm->read_urbs[i]);
+ 	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:
+@@ -594,7 +587,6 @@
+ 	mutex_lock(&acm->mutex);
+ 	if (!acm->disconnected) {
+ 		pm_err = usb_autopm_get_interface(acm->control);
+-		acm_set_control(acm, acm->ctrlout = 0);
+ 
+ 		for (;;) {
+ 			urb = usb_get_from_anchor(&acm->delayed);

diff --git a/dev-embedded/msp430-uart/msp430-uart-0-r1.ebuild b/dev-embedded/msp430-uart/msp430-uart-0-r1.ebuild
new file mode 100644
index 0000000..be0c4eb
--- /dev/null
+++ b/dev-embedded/msp430-uart/msp430-uart-0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 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_unpack() {
+	default
+	cp -v "${KERNEL_DIR}"/drivers/usb/class/cdc-acm.{c,h} . || die
+}
+
+src_prepare() {
+	if kernel_is ge 3 14 10 ; then
+		epatch "${FILESDIR}"/${P}-cdc-acm-3.4.10.patch
+	else
+		epatch "${FILESDIR}"/${P}-cdc-acm.patch
+	fi
+	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}"
+}


             reply	other threads:[~2014-07-08 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08 16:00 Michael Weber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-07-22  0:22 [gentoo-commits] dev/xmw:master commit in: dev-embedded/msp430-uart/files/, dev-embedded/msp430-uart/ Michael Weber
2013-09-06 22:20 Michael Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1404835201.af846a4e98002a4fcd475bb1079b8a6e8440db4f.xmw@gentoo \
    --to=xmw@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox