Oleg Evseev
794ecbfd86
Use struct instead of pointer to the struct as sizeof argument in memset in usbmsc.c
...
Otherwise it leads to error: argument to 'sizeof' in 'memset' call is the same pointer type 'struct usbmsc_lun_s *' as the destination
2017-06-19 19:45:35 +03:00
Gregory Nutt
ae17e6bcf0
Cosmetic
2017-05-30 12:04:48 -06:00
Masatoshi Tateishi
80e22691fa
USBMSC: Fix a wrong lun number issue
...
Jira: PDFW15IS-98
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-04-24 09:48:49 +09:00
Wolfgang Reißnegger
cfe7c4012e
USBMSC: Always set LUN readonly flag.
2017-02-08 17:17:19 -08:00
David Sidrane
548108764a
BugFix:uart_ops_s portion of cdcacm will not be initalized with correct functions if CONFIG_SERIAL_DMA is lit.
...
This fixes the issses in a C99 compatible way
2016-12-17 04:29:41 -10:00
Wolfgang Reißnegger
88539a7497
USBMSC: Fix length of mode6 sense reply packet.
2016-11-18 17:23:21 -08:00
Gregory Nutt
4fcbe8e410
drivers: Disable priority inheritance on all semaphores used for signaling
2016-11-03 11:00:47 -06:00
Gregory Nutt
e0b4a10dfa
drivers/serial/pty.c, serial.c, usbdev/cdcacm.c, include/nuttx/fs/ioctl.h: Fix FIONWRITE and add FIONSPACE. All implementations of FIONWRITE were wrong. FIONWRITE should return the number of bytes waiting in the outgoing send queue, not the free space. Rather, FIONSPACE should return the free space in the send queue.
2016-07-25 14:06:32 -06:00
Wolfgang Reissnegger
4f83d58b24
USBMSC: Fix reversed logic on waiting for SCSI thread start.
...
The scsi thread was waiting for the wrong condition.
However, this was masked by the fact that the code creating the scsi thread
was also holding usbmsc_scsi_lock(priv) while initializing data, hence this
lock synchronized the scsi thread start with init completion.
2016-07-23 20:11:00 -07:00
Wolfgang Reissnegger
2974d2b07e
USBMSC: Add locks when removing request from queue.
2016-07-23 20:10:41 -07:00
Wolfgang Reissnegger
81f7758848
USBMSC: Fix usbtrace() string.
2016-07-23 20:10:20 -07:00
ziggurat29
2cadf783fd
cdcacm_unbind leaks write request objects. This arises due to freeing the
...
bulk IN endpoint before the loop that frees the requests via cdcasm_freereq.
That function checks the parameters and skips the freeing if either is NULL.
Freeing the bulk IN enpoint will cause the first param to be NULL, thereby
bypassing the free operation. To fix, I moved the release of the bulk IN
endpoint until after to loop (much as was the case for the OUT and read
requests, which did not exhibit the problem).
2016-07-07 12:02:23 -05:00
Gregory Nutt
a897fd4ccf
Eliminate use of apps/system/usbmonitor. Use drivers/usbmonitor instead.
2016-06-30 13:09:22 -06:00
Gregory Nutt
505ca542e8
Remove some last traces of lowvsyslog that were missed; Add a SYSLOG emergency channel for handling assertion output more cleanly
2016-06-20 16:11:50 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
75a4a5dcbe
Back part of a previous CDC/ACM change. Improve some Kconfig comments.
2016-03-19 12:45:33 -06:00
Gregory Nutt
deed28b8f2
USB composite: Fix some errors in conditional compilation
2016-03-19 08:08:40 -06:00
Gregory Nutt
9644d42e91
USB CDC/ACM device: Trivial configuration clean-up
2016-03-19 07:36:39 -06:00
David Sidrane
d2a017d9bb
rdreqs was defined as CONFIG_CDCACM_NWRREQS size
2016-03-17 21:47:40 +00:00
David Sidrane
2cfa023039
RD - comments were for WR
2016-03-17 21:45:57 +00:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
2244ed46bc
nuttx/drivers: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 07:32:58 -06:00
Gregory Nutt
4a7e28ba96
CDC/ACM: Fix a bad default value in last commit
2015-12-08 07:33:49 -06:00
Gregory Nutt
513cc08c7f
change default size of CDC/ACM serial buffer sizes
2015-12-07 17:18:14 -06:00
Gregory Nutt
2726f0ac7c
USB serial driver Kconfig: Select default sizes for serial buffers so that the can hold even multiples of the max packet size.
2015-12-03 14:17:41 -06:00
Gregory Nutt
cf14f8d1b5
drivers/: Fixes to spacing and alignement
2015-10-10 10:41:00 -06:00
Gregory Nutt
0b12dbf95d
Fix some spacing problems
2015-10-04 15:04:00 -06:00
Gregory Nutt
16b32bbadd
Standardize the width of all comment boxes in C files
2015-10-03 07:25:53 -06:00
Gregory Nutt
5b51a9fcdd
Standardize the width of all comment boxes in C files
2015-10-02 17:43:18 -06:00
Gregory Nutt
dbc9d67b3a
USBDEV Kconfig: CONFIG_USBDEV_TRACE_INITIALIDSET missing from Kconfig file
2015-09-08 07:25:21 -06:00
Paul A. Patience
3b89eabd50
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2.
2015-09-01 13:52:29 -04:00
Gregory Nutt
51f386d08a
Fix more common typos
2015-08-16 11:07:23 -06:00
Gregory Nutt
77f5c34af0
Fix some common typos
2015-08-16 11:00:30 -06:00
Gregory Nutt
e9a4455038
drivers/usbdev: Eliminate some warnings
2015-07-01 10:02:19 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
82f51d01fb
Update some comments
2015-05-18 08:53:24 -06:00
Gregory Nutt
5b687f4b0f
Fix several defien -> define. Thanks Pierre
2015-05-13 06:33:17 -06:00
Gregory Nutt
6ef7977b65
USB device. All class drivers. There needs to be a check to make sure that the size of a returned string does not exceed the size of an allocated request buffer
2015-05-12 14:46:35 -06:00
Gregory Nutt
46e5d0a419
Add options to support all three host CDC/ACM protocols: Compliant, Reduced, and Bulk-Only
2015-05-10 08:16:58 -06:00
Gregory Nutt
c35bb693a9
USB host CDC/ACM fixes. Still kind of buggy
2015-05-08 10:58:41 -06:00
Gregory Nutt
737fd7dcec
drivers/usbhost: Add initial implementatino of a host-side CDC/ACM driver. Completely untested on initial commit (2015-05-06).
2015-05-06 12:49:00 -06:00
Gregory Nutt
81ab453f6a
Fix a mistatement in a comment
2015-05-04 13:44:49 -06:00
Gregory Nutt
726dadffb4
Add CONFIG_CDCACM_IFLOWCONTROL. Just hooks for now
2015-04-16 12:24:56 -06:00
Gregory Nutt
7bf9be7c33
Add hooks to CDC/ACM driver to support RX flow control
2015-04-16 09:11:51 -06:00
Gregory Nutt
26b9b5a252
usbdev: usbmsc_scsi: Add NULL pointer check. From Juha Niskanen
2015-03-12 07:55:53 -06:00
Gregory Nutt
a4a6917267
Fixes some issues found by the PX4 team using Coverity. From Pavel Krienko
2015-01-19 13:01:20 -06:00
Gregory Nutt
2994448d85
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
2014-11-25 13:15:09 -06:00