<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/usb/serial/f81232.c, branch v4.9.331</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.9.331</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.9.331'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2019-05-10T15:52:10+00:00</updated>
<entry>
<title>USB: serial: f81232: fix interrupt worker not stop</title>
<updated>2019-05-10T15:52:10+00:00</updated>
<author>
<name>Ji-Ze Hong (Peter Hong)</name>
<email>hpeter@gmail.com</email>
</author>
<published>2019-04-30T01:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=61e808674840b5bfcec091c82bff928893da9dea'/>
<id>urn:sha1:61e808674840b5bfcec091c82bff928893da9dea</id>
<content type='text'>
commit 804dbee1e49774918339c1e5a87400988c0819e8 upstream.

The F81232 will use interrupt worker to handle MSR change.
This patch will fix the issue that interrupt work should stop
in close() and suspend().

This also fixes line-status events being disabled after a suspend cycle
until the port is re-opened.

Signed-off-by: Ji-Ze Hong (Peter Hong) &lt;hpeter+linux_kernel@gmail.com&gt;
[ johan: amend commit message ]
Fixes: 87fe5adcd8de ("USB: f81232: implement read IIR/MSR with endpoint")
Cc: stable &lt;stable@vger.kernel.org&gt;	# 4.1
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>USB: f81232: fix some minor style issues</title>
<updated>2015-03-27T16:36:29+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2015-03-27T16:33:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=65dd82ae453f5290be0ea83ed0f23163ea49c0eb'/>
<id>urn:sha1:65dd82ae453f5290be0ea83ed0f23163ea49c0eb</id>
<content type='text'>
Fix some really minor coding-style issues.

Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: modify/add author</title>
<updated>2015-03-27T16:29:28+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=96ee85c06515407453e2ac09d6fbdece0c791087'/>
<id>urn:sha1:96ee85c06515407453e2ac09d6fbdece0c791087</id>
<content type='text'>
Add me to co-author and fix no '&gt;' in greg kh's email

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: cleanup non-used define</title>
<updated>2015-03-27T16:29:28+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9e7d953bbf746cf704238965a716e0afcfe0f5f4'/>
<id>urn:sha1:9e7d953bbf746cf704238965a716e0afcfe0f5f4</id>
<content type='text'>
We remove non-used define in this patch to avoid wrong usage.

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: clarify f81232_ioctl() and fix</title>
<updated>2015-03-27T16:29:27+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=88d35cffff83cc0b11d6e7a2bef73b602f156da0'/>
<id>urn:sha1:88d35cffff83cc0b11d6e7a2bef73b602f156da0</id>
<content type='text'>
We extract TIOCGSERIAL section in f81232_ioctl() to f81232_get_serial_info()
to make it clarify.

Also we fix device type from 16654 to 16550A, and set it's baud_base
to 115200 (1.8432MHz/16).

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: implement set_termios()</title>
<updated>2015-03-27T16:29:27+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8bb4ca6b56bdf65944d0848561ea8dcf53a87507'/>
<id>urn:sha1:8bb4ca6b56bdf65944d0848561ea8dcf53a87507</id>
<content type='text'>
The original driver had do not any h/w change in driver.
This patch implements with configure H/W for
baud/parity/word length/stop bits functional in f81232_set_termios().

This patch also implement DTR/RTS control when baudrate B0.
We drop DTR/RTS when B0, otherwise enable it.

We are checking baudrate in set_termios() too, If baudrate larger then 115200,
it will be changed to 115200 and use tty_encode_baud_rate() to encode into tty

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: implement port enable/disable method</title>
<updated>2015-03-27T16:29:27+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=94f87309fb12e3d41dbc56df899f3b357277d0bf'/>
<id>urn:sha1:94f87309fb12e3d41dbc56df899f3b357277d0bf</id>
<content type='text'>
We put FCR/IER initial step to f81232_port_enable()/f81232_port_disable().
When port is open, it set MSR interrupt on. Otherwise set it off.

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: implement MCR/MSR function</title>
<updated>2015-03-27T16:29:26+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=691545fd92551baea6207781b33c95aa6444bf0d'/>
<id>urn:sha1:691545fd92551baea6207781b33c95aa6444bf0d</id>
<content type='text'>
This patch implement relative MCR/MSR function, such like
tiocmget()/tiocmset()/dtr_rts()/carrier_raised()

original f81232_carrier_raised() compared with wrong value UART_DCD.
It's should compared with UART_MSR_DCD.

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: implement read IIR/MSR with endpoint</title>
<updated>2015-03-27T16:29:26+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=87fe5adcd8de001160d9208def72cc11f3780845'/>
<id>urn:sha1:87fe5adcd8de001160d9208def72cc11f3780845</id>
<content type='text'>
The interrupt endpoint will report current IIR. If we got IIR with MSR changed
, We will do read MSR with interrupt_work worker to do f81232_read_msr()
function.

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
<entry>
<title>USB: f81232: change lock mechanism</title>
<updated>2015-03-27T16:29:26+00:00</updated>
<author>
<name>Peter Hung</name>
<email>hpeter@gmail.com</email>
</author>
<published>2015-03-17T09:48:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7139c932859f5b35b5a928b445e03f5a43610fa7'/>
<id>urn:sha1:7139c932859f5b35b5a928b445e03f5a43610fa7</id>
<content type='text'>
The original driver lock with spin_lock_irqsave()/spin_unlock_irqrestore()
because of it's maybe used in interrupt context f81232_process_read_urb().

We had remove it from previous patch "implement RX bulk-in EP", so we can
change it from busying loop spin_lock to sleepable mutex_lock.

Signed-off-by: Peter Hung &lt;hpeter+linux_kernel@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
</content>
</entry>
</feed>
