luv2charitys | 29 Nov 05:54 2014
Picon

Charity Work

Hello,this is Mr Paul N,i sent you an email on charity work but i am yet to hear fom you,do reply with this code
CHA-2015 to my email address paulcharity <at> qq.com  i Look forward to hearing from you this time,God bless 
Brother Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dmitriy Fitisov | 28 Nov 19:39 2014
Picon

Making our own device work under Linux

Hello everyone,
we have made our own device using STM32 chip and it works well under Windows using serial communication
through USB.
We used ST Micro supplied driver and firmware example.

  Now we have a task to make it work under Linux.
USB configuration is declared it as CDC modem, therefore Linux pickups cdc-acm driver and attach it to the device.
I tested it under Ununtu and it seems that once device is attached some program 
tests it using AT commands. I would guess it is ModemManager which is started in /etc/init/modemmanager.conf
I updated firmware on our device to process those commands, now I think I may simply remove ModemManager
from startup and it would be fine.

But our final platform should be Raspberry.
It seems init here a little bit different, I do not see initctl program, man init differs and I'm getting
different data on my device.
It sounds like terminal sequence, with lot of "0x20 0x08" bytes after start sequence.

So, I need to find out what program/daemon/service trying to communicate with cdc-acm.
Is there a simple easy way without recompiling kernel with debug info?

Thank you.
Dmitriy--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Andy Shevchenko | 28 Nov 15:17 2014
Picon

[PATCH v1] serial: 8250_dma: terminate transfer explicitly when timeout

There is no need to terminate transfer in the __dma_rx_complete() since it's
called at the end of transfer. Special case when serial timeout occurs is
handled separately where we have to terminate transfer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko <at> linux.intel.com>
---
 drivers/tty/serial/8250/8250_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index fcd7ac6..e508939 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
 <at>  <at>  -59,7 +59,6  <at>  <at>  static void __dma_rx_complete(void *param)

 	dma->rx_running = 0;
 	dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state);
-	dmaengine_terminate_all(dma->rxchan);

 	count = dma->rx_size - state.residue;

 <at>  <at>  -131,6 +130,7  <at>  <at>  int serial8250_rx_dma(struct uart_8250_port *p, unsigned int iir)
 		if (dma->rx_running) {
 			dmaengine_pause(dma->rxchan);
 			__dma_rx_complete(p);
+			dmaengine_terminate_all(dma->rxchan);
 		}
 		return -ETIMEDOUT;
 	default:
--

-- 
(Continue reading)

Fabio Estevam | 27 Nov 20:08 2014
Picon

[PATCH 1/4] serial: mxs-auart: Remove unneeded goto label

From: Fabio Estevam <fabio.estevam <at> freescale.com>

Instead of jumping to the 'out' label, let's return the error immediately, which
makes the code shorter and cleaner.

Signed-off-by: Fabio Estevam <fabio.estevam <at> freescale.com>
---
 drivers/tty/serial/mxs-auart.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
index ec553f8..a9e7fa6 100644
--- a/drivers/tty/serial/mxs-auart.c
+++ b/drivers/tty/serial/mxs-auart.c
 <at>  <at>  -1232,10 +1232,8  <at>  <at>  static int mxs_auart_probe(struct platform_device *pdev)
 	struct resource *r;

 	s = kzalloc(sizeof(struct mxs_auart_port), GFP_KERNEL);
-	if (!s) {
-		ret = -ENOMEM;
-		goto out;
-	}
+	if (!s)
+		return -ENOMEM;

 	ret = serial_mxs_probe_dt(s, pdev);
 	if (ret > 0)
 <at>  <at>  -1314,7 +1312,6  <at>  <at>  out_free_clk:
 	clk_put(s->clk);
 out_free:
(Continue reading)

Dmitry Eremin-Solenikov | 26 Nov 10:21 2014
Picon

[PATCH V2] serial: pxa: hold port.lock when reporting modem line changes

Both uart_handle_dcd_change() and uart_handle_cts_change() require a
port lock to be held and will emit a warning when lockdep is enabled.
Held corresponding lock.

This fixes the following warnings:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at drivers/tty/serial/serial_core.c:2760 uart_handle_dcd_change+0xc8/0xf8()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.0-rc5+ #26
[<c000dff8>] (unwind_backtrace) from [<c000bc70>] (show_stack+0x10/0x14)
[<c000bc70>] (show_stack) from [<c00192ac>] (warn_slowpath_common+0x6c/0x8c)
[<c00192ac>] (warn_slowpath_common) from [<c00192e8>] (warn_slowpath_null+0x1c/0x24)
[<c00192e8>] (warn_slowpath_null) from [<c0182984>] (uart_handle_dcd_change+0xc8/0xf8)
[<c0182984>] (uart_handle_dcd_change) from [<c018625c>] (serial_pxa_irq+0x268/0x3b0)
[<c018625c>] (serial_pxa_irq) from [<c004d0d4>] (handle_irq_event_percpu+0x50/0x16c)
[<c004d0d4>] (handle_irq_event_percpu) from [<c004d22c>] (handle_irq_event+0x3c/0x5c)
[<c004d22c>] (handle_irq_event) from [<c004f7d0>] (handle_level_irq+0x94/0x118)
[<c004f7d0>] (handle_level_irq) from [<c004ca0c>] (generic_handle_irq+0x20/0x30)
[<c004ca0c>] (generic_handle_irq) from [<c004cbe0>] (__handle_domain_irq+0x38/0x70)
[<c004cbe0>] (__handle_domain_irq) from [<c00085c4>] (ichp_handle_irq+0x24/0x34)
[<c00085c4>] (ichp_handle_irq) from [<c000c7e4>] (__irq_svc+0x44/0x54)
Exception stack(0xc07c7f58 to 0xc07c7fa0)
7f40:                                                       00000001 00000001
7f60: 00000000 20000013 c07c6000 00000000 00000000 c07ce0a4 c07d7798 00000000
7f80: c07e8fb8 0000004c 00000000 c07c7fa0 c0044798 c0009f20 20000013 ffffffff
[<c000c7e4>] (__irq_svc) from [<c0009f20>] (arch_cpu_idle+0x28/0x38)
[<c0009f20>] (arch_cpu_idle) from [<c003c974>] (cpu_startup_entry+0x1b8/0x220)
[<c003c974>] (cpu_startup_entry) from [<c0338c54>] (start_kernel+0x39c/0x40c)
---[ end trace 4c1b7ae03f6d9d30 ]---
(Continue reading)

Guoqing Liu | 26 Nov 07:17 2014
Picon

Uart2 can't work well after the system goto standby and then resume at csr primaII platform

Daer Sir,
   I'm very sorry to trouble you.
     Recently I found the uart2 at csr primaII platform can't work
well after the system  goto standby and then resume.

My test environment is as follows:
     kernel:   3.10.16
     cpu:  csr primaII

 My test process is as follows :
   1> create a thread ,looped transmit data via uart2 every 3s.
   2>primaII goto  standby mode.
   3>primaII goto  resume.
   4>capture the data at uart2 tx pin by the logic analyzer. you will
found  the data is error.
     for example when looped send a test frame  : 5A A5 05 FA 1A 00 00
00 05 E2 A3 3A AA 55 77
        you will got : 5A A5 1A 00 00 00 05 E2 A3 3A AA 55 5C E0 77
or  5A A5 05 00 00 00 05 E2 A3 3A AA 55 77 E8 8B
        the result is not fixed.

 I also tried some tests  as follows:
   1> looped send data and do not goto  standby, the result is right.
   2> disable the uart2 dma at prima2.dtsi, the result is right.
   3> when the frame length is 4*n, the result is right. (for example
16, 20,24)

I also add some log at sirfsoc_uart.c:
  print the xmit buffer at  sirfsoc_uart_pio_rx_chars and
sirfsoc_uart_tx_with_dma.
(Continue reading)

Kevin Cernekee | 25 Nov 00:36 2014
Picon

[PATCH V3 0/7] serial: Configure {big,native}-endian MMIO accesses via DT

My last submission attempted to work around serial driver coexistence
problems on multiplatform kernels.  Since there are still questions
surrounding the best way to solve that problem, this patch series
will focus on the narrower topic of big endian MMIO support on serial.

V2->V3:

 - Document the new DT properties.

 - Add libfdt-based wrapper, to complement the "struct device_node" based
   version.

 - Restructure early_init_dt_scan_chosen_serial() changes to use a
   temporary variable, so it is easy to add more of_setup_earlycon()
   properties later.

 - Make of_serial and serial8250 honor the new "big-endian" property.

This series applies cleanly to:

git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux.git devicetree/next-overlay

but was tested on the mips-for-linux-next branch because my BE platform
isn't supported in mainline yet.

Kevin Cernekee (7):
  of: Add helper function to check MMIO register endianness
  of/fdt: Add endianness helper function for early init code
  of: Document {little,big,native}-endian bindings
  serial: core: Add big-endian iotype
(Continue reading)

Dmitry Eremin-Solenikov | 24 Nov 08:48 2014
Picon

[PATCH] serial: pxa: hold port.lock when reporting modem line changes

Both uart_handle_dcd_change() and uart_handle_cts_change() require a
port lock to be held and will emit a warning when lockdep is enabled.
Held corresponding lock.

This fixes the following warnings:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at drivers/tty/serial/serial_core.c:2760 uart_handle_dcd_change+0xc8/0xf8()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.0-rc5+ #26
[<c000dff8>] (unwind_backtrace) from [<c000bc70>] (show_stack+0x10/0x14)
[<c000bc70>] (show_stack) from [<c00192ac>] (warn_slowpath_common+0x6c/0x8c)
[<c00192ac>] (warn_slowpath_common) from [<c00192e8>] (warn_slowpath_null+0x1c/0x24)
[<c00192e8>] (warn_slowpath_null) from [<c0182984>] (uart_handle_dcd_change+0xc8/0xf8)
[<c0182984>] (uart_handle_dcd_change) from [<c018625c>] (serial_pxa_irq+0x268/0x3b0)
[<c018625c>] (serial_pxa_irq) from [<c004d0d4>] (handle_irq_event_percpu+0x50/0x16c)
[<c004d0d4>] (handle_irq_event_percpu) from [<c004d22c>] (handle_irq_event+0x3c/0x5c)
[<c004d22c>] (handle_irq_event) from [<c004f7d0>] (handle_level_irq+0x94/0x118)
[<c004f7d0>] (handle_level_irq) from [<c004ca0c>] (generic_handle_irq+0x20/0x30)
[<c004ca0c>] (generic_handle_irq) from [<c004cbe0>] (__handle_domain_irq+0x38/0x70)
[<c004cbe0>] (__handle_domain_irq) from [<c00085c4>] (ichp_handle_irq+0x24/0x34)
[<c00085c4>] (ichp_handle_irq) from [<c000c7e4>] (__irq_svc+0x44/0x54)
Exception stack(0xc07c7f58 to 0xc07c7fa0)
7f40:                                                       00000001 00000001
7f60: 00000000 20000013 c07c6000 00000000 00000000 c07ce0a4 c07d7798 00000000
7f80: c07e8fb8 0000004c 00000000 c07c7fa0 c0044798 c0009f20 20000013 ffffffff
[<c000c7e4>] (__irq_svc) from [<c0009f20>] (arch_cpu_idle+0x28/0x38)
[<c0009f20>] (arch_cpu_idle) from [<c003c974>] (cpu_startup_entry+0x1b8/0x220)
[<c003c974>] (cpu_startup_entry) from [<c0338c54>] (start_kernel+0x39c/0x40c)
---[ end trace 4c1b7ae03f6d9d30 ]---
(Continue reading)

Robert Baldyga | 24 Nov 07:56 2014

[PATCH 0/4] serial: samsung: fixes for serial driver

Hi,

This series contains fixes for samsung serial driver. There is one patch
with important fix, which, I think, should be also applied to stable
trees, two patches fixing FIFO handling (they are not critical but,
they can provide better FIFO usage) and one patch with code cleanup.

Best regards,
Robert Baldyga

Robert Baldyga (4):
  serial: samsung: wait for transfer completion before clock disable
  serial: samsung: fix style problems
  serial: samsung: prefer to use fifosize from driver data
  serial: samsung: use port->fifosize instead of hardcoded values

 drivers/tty/serial/samsung.c | 63 ++++++++++++++++++++++++++------------------
 1 file changed, 38 insertions(+), 25 deletions(-)

--

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Arianna Avanzini | 20 Nov 19:00 2014
Picon

[PATCH RFC] tty, serial, 8250: remove __init from function serial8250_console_setup()

Some RS232 adapters handled by this driver are hotpluggable. The function
serial8250_console_setup() is called during device init and is defined with
the __init macro. In case the driver is built-in, hotplugging the device after
the initialization phase has been completed (and the related memory has been
freed) results in a kernel crash.
This commit fixes the issue by removing __init from the function definition.

Signed-off-by: Arianna Avanzini <avanzini.arianna <at> gmail.com>
---
 drivers/tty/serial/8250/8250_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index ca5cfdc..ca8108d 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
 <at>  <at>  -3237,7 +3237,7  <at>  <at>  serial8250_console_write(struct console *co, const char *s, unsigned int count)
 	serial8250_rpm_put(up);
 }

-static int __init serial8250_console_setup(struct console *co, char *options)
+static int serial8250_console_setup(struct console *co, char *options)
 {
 	struct uart_port *port;
 	int baud = 9600;
--

-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
(Continue reading)

CC Foundation | 19 Nov 12:14 2014
Picon

Sie haben für einen Subventions ausgewählt

Attn: Erteilen Nominee

Herzlichen Glückwunsch zu Ihrer Wahl für unsere letzte Quartal des
Jahres Zuschuss / Spende Auszeichnung im Wert von US $ 2.740.000 (zwei
Millionen siebenhundertvierzigtausend US-Dollar) in der deutschen
Kategorie AQ. Ihre Grant-Kategorie wird von unserem Büro in London
ausgezahlt werden, so sind Sie verpflichtet, die Auszahlungen Offizier
verantwortlich für Ihre Kategorie an: Allard Baker für die
Verarbeitung Ihrer Zuschuss. Sie können Allard Baker auf dieser
Telefonnummern zu erreichen: +44 705 382 8108 und E-Mail an ihn:
ddesk.ccfc <at> yahoo.com.hk . Bitte geben Sie Ihre Qualifikation Number:
CCF / 774/2014/1470.

Liivi Kõiv
CCF-Stipendium Cordinator I
Children Charity Foundation
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane