Commit Graph

38224 Commits

Author SHA1 Message Date
isaki
b01e228efb Remove obsoleted comment. 2020-01-08 13:05:02 +00:00
yamaguchi
479915944e Not stop kpreempt if unnecessary, ixl(4) 2020-01-08 09:12:11 +00:00
isaki
ab1308759b Move mutex_exit() correct place to protect sc_async_mixer.
Thanks maxv@!
2020-01-08 08:10:15 +00:00
nonaka
866b8f41d8 Added some RNDIS status definitions from FreeBSD. 2020-01-08 04:53:38 +00:00
msaitoh
0d3a42e824 - Fix SFF_SFP_ETH_FLAGS_100FX. It's not 0x10 but 0x20.
- Define SFF_SFP_ETH_FLAGS_100LX with 0x10.
2020-01-08 03:51:37 +00:00
maxv
f76a68287e Localify, constify. 2020-01-07 06:42:26 +00:00
maxv
b946d2dc5e Set 'ld_sync' to NULL as part of 'again', to prevent use-after-free. 2020-01-07 06:12:09 +00:00
maxv
f810e291ae Fix big bugs. 2020-01-07 06:10:18 +00:00
msaitoh
9ffb315967 Fix a bug that IFF_ALLMULTI is almost always set. 2020-01-06 15:19:00 +00:00
nisimura
f93891eb30 correct bogus comparison. pointed by msaitoh@ 2020-01-06 07:57:06 +00:00
msaitoh
af30e39a49 Protect ec_multicnt. 2020-01-06 07:15:03 +00:00
tkusumi
05e54a628c dm: Add "Copyright (c) 2015 The DragonFly Project." to dm-flakey
which I missed in my initial dm-flakey commit.
2020-01-05 08:11:10 +00:00
tkusumi
ea24dc8dcc dm: Add dm-delay target
Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/delay.txt

Due to "tick" in hz(9) not working (which results in dmdlthread spinning
forever in _submit_queue() without dp extracted from delayed list
and queued into submit list), this hasn't been hooked to dm.kmod yet.

taken-from: DragonFlyBSD
2020-01-05 08:08:26 +00:00
mlelstv
90e85cec6c Avoid race condition. Patch from bouyer@ 2020-01-04 22:30:06 +00:00
mlelstv
e34bd76845 Be less noisy for some commands. 2020-01-04 22:28:26 +00:00
mlelstv
85cc294a62 size check was backwards. 2020-01-04 14:52:52 +00:00
jmcneill
bb3a17a5a7 If the backlight node does not have an enable gpio, set the lowest duty
cycle to turn the display off instead.
2020-01-04 12:09:54 +00:00
jmcneill
d63ecae318 Emit PMFE_DISPLAY_{ON,OFF} events in response to DPMS requests. 2020-01-04 12:08:32 +00:00
thorpej
47e0e1cb69 No need to use I2C_F_POLL here. 2020-01-04 02:21:15 +00:00
jmcneill
ae22bf259b Add driver for CellWise CW2015 Fuel Gauge IC. 2020-01-03 18:00:05 +00:00
pgoyette
ae43fc77bd Fix some typos in comments.
From vezhlys on freenode IRC.
2020-01-03 12:59:46 +00:00
jmcneill
c47914cb8a Add a quirk for the HAILUCK USB keyboard / touchpad device with product 1e.
The keyboard does not function properly unless the touchpad's intr endpoint
is active.
2020-01-03 12:39:39 +00:00
jmcneill
7ee1f951f1 regen 2020-01-03 12:35:57 +00:00
jmcneill
f0cf68d29b Add HAILUCK keyboard (product 1e) 2020-01-03 12:35:33 +00:00
thorpej
585dd234ff Eliminate all of the #ifdefs for the "strtc" driver. Define model
properties (similar to what the "dsrtc" driver does), and provide
DT compat strings corresponding to those models.  Allow config flags
to specify the model for non-FDT platforms (also like "dsrtc").
2020-01-03 03:44:42 +00:00
jmcneill
10fbab57ee If the rockchip,system-power-controller property is present, try to power off with the PMIC 2020-01-03 01:17:29 +00:00
jmcneill
cabfb0e2b3 Avoid sleeping while the audio intr lock is held. 2020-01-03 01:00:08 +00:00
jmcneill
183eeb09af Add driver for Everest Semi ES8316 Low Power Audio CODEC 2020-01-02 22:06:59 +00:00
thorpej
7ba18fd1e6 - Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.
2020-01-02 19:24:48 +00:00
thorpej
2d5ff157d0 - Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.
2020-01-02 19:11:12 +00:00
thorpej
9f0d6bd066 Use todr_gettime_ymdhms / todr_settime_ymdhms. 2020-01-02 19:00:34 +00:00
thorpej
6591db0cc5 - Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.
2020-01-02 18:57:58 +00:00
thorpej
8f96eb4ccf - No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.
2020-01-02 17:40:27 +00:00
thorpej
0f5a10535e - No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.
2020-01-02 17:17:36 +00:00
thorpej
da309899fb No need to use I2C_F_POLL here.
XXX This entire driver needs to have its error reporting overhauled.
2020-01-02 17:09:59 +00:00
thorpej
ba0c87dc2c - No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.
2020-01-02 17:03:05 +00:00
thorpej
7a369120e6 No need to use I2C_F_POLL here. 2020-01-02 16:53:05 +00:00
thorpej
7fc242e39a - No need to use I2C_F_POLL here.
- Properly propagate errors up the stack.
2020-01-02 16:48:05 +00:00
thorpej
4a018c1296 No need to use I2C_F_POLL here. 2020-01-02 16:24:51 +00:00
thorpej
c22653c723 Also force I2C_F_POLL if shutting_down. 2020-01-02 16:18:37 +00:00
maxv
56fc3d1e80 Remove the call to KERNEL_UNLOCK_ONE(), it was forgotten when the biglock
was dropped in rev1.63. Found via vHCI.
2020-01-02 08:08:30 +00:00
tkusumi
8dab45b63f dm: Add dm-flakey target
Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt

Due to two technical issues, this hasn't been hooked to dm.kmod yet.
1) "tick" in hz(9) not working.
2) Unable to use ->b_private in nestiobuf callback when it's already
 used for mbp (see HAS_BUF_PRIV2).

taken-from: DragonFlyBSD
2020-01-02 06:22:23 +00:00
jmcneill
ec17524941 Add driver for simple-audio-amplifier binding 2020-01-02 00:57:09 +00:00
mlelstv
6ee7d63e9e Add support for single power writes, and enable for Ricoh 5u823. 2020-01-01 23:28:31 +00:00
thorpej
273224623b Pull in <sys/stdbool.h>. 2020-01-01 23:07:38 +00:00
thorpej
599c240526 - Introduce a new global kernel variable "shutting_down" to indicate that
the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
  just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
  places remain where it's still called directly, but those are in early
  pre-main() machdep locations.

Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.
2020-01-01 22:57:16 +00:00
thorpej
a1e56ffa5f First steps towards properly serializing access to the TOD clock.
- Add a mutex around the TODR, and provide lock/unlock/lock-owned
  functions to manipulate it.
- Rename inittodr() to todr_set_systime() and resettodr() to
  todr_save_systime() to better reflect what they do.  These functions
  are intended to be called with the TODR lock held, which will allow
  for a pattern like:
	-> todr_lock()
	-> todr_save_systime()
	-> [do machine-dependent stuff to sleep/suspend]
	-> [magically awaken]
	-> todr_set_systime(...)
	-> todr_unlock()
- Provide historically-named wrappers inittodr() and resettodr() that
  do the dance of acquiring / releasing the lock around the actual
  substance.

NOTE: resettodr()'s use of the TODR lock is currently disabled (and
todr_save_systime() does not assert it's held) until such time as
issues around shutdown / reboot under duress can be addressed.
2020-01-01 21:09:11 +00:00
thorpej
7e14229cb0 Fix some issues around todr_wenable():
- As previously defined, it was not possible to return an error from the
  back-end RTC driver.  Make it a real function so that it can do so.
- Only the mc146818 and mk48txx drivers used it (for historical reasons).
  Centralize the logic for how it's used in kern_todr.c (and make it private
  to that file) for consistency.
2020-01-01 19:24:03 +00:00
thorpej
3144c91f33 No need to use I2C_F_POLL here. 2020-01-01 18:09:44 +00:00
thorpej
c5d2bbb7ef todr_gettime() and todr_settime() are not referenced outside of kern_todr.c,
so make them private to that file.
2020-01-01 18:08:11 +00:00