The process_deferred_inactive() function locks the vnodes of the ufs
mount, which means that is must not be called while the snaplock is
owned.  The vfs_write_resume(9) does call the function as the
VFS_SUSP_CLEAN() method, which is too early and falls into the region
still protected by snaplock.

Add yet another flag for the vfs_write_resume_flags() to avoid calling
suspension cleanup handler after the suspend is lifted, and use it in
the ffs_snapshot() call to vfs_write_resume.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unneeded semicolons.

Reviewed by:	md5 of the object files


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244926 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing DPADD.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
pflogd does not depend on libutil


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing DPADD


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a dependency


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Overhauled CPSW driver for TI CPSW Ethernet module
(as used in AM335x SoC for BeagleBone).

Among other things:
 * Watchdog reset doesn't hang the driver.
 * Disconnecting cable doesn't hang the driver.
 * ifconfig up/down doesn't hang the driver
 * Out-of-memory no longer panics the driver.

Known issues:
 * Doesn't have good support for fragmented packets
   (calls m_defrag() on TX, assumes RX packets are never fragmented)
 * Promisc and allmulti still unimplimented
 * addmulti and delmulti still unimplemented
 * TX queue still stalls (but watchdog now consistently recovers in ~5s)
 * No sysctl monitoring
 * Only supports port0
 * No switch configuration support
 * Not tested on anything but BeagleBone

Committed from: BeagleBone


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libedit: bind the correct command when using "bind -k".

"ed-argument-digit" (i. e. command 0) was incorrectly used
instead.
This bug comes from the original sources imported in 1994
and has been confirmed in upstream NetBSD.

Reported by:	Yamagi Burmeister
Submitted by:	Christoph Mallon
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge @219932 from Perforce:

  FDT headers can't be included if the kernel is compiled without
  FDT support, due to dependence on generated kobj headers.  BERI
  supports both FDT and non-FDT kernels.

  Spotted by:	bz


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244942 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bring over the basic spectral scan framework code from Qualcomm Atheros.

This includes the HAL routines to setup, enable/activate/disable spectral
scan and configure the relevant registers.

This still requires driver interaction to enable spectral scan reporting.
Specifically:

* call ah_spectralConfigure() to configure and enable spectral scan;
* .. there's currently no way to disable spectral scan... that will have
  to follow.
* call ah_spectralStart() to force start a spectral report;
* call ah_spectralStop() to force stop an active spectral report.

The spectral scan results appear as PHY errors (type 0x5 on the AR9280,
same as radar) but with the spectral scan bit set (0x10 in the last byte
of the frame) identifying it as a spectral report rather than a radar
FFT report.

Caveats:

* It's likely quite difficult to run spectral _and_ radar at the same
  time.  Enabling spectral scan disables the radar thresholds but
  leaves radar enabled.  Thus, the driver (for now) needs to ensure
  that only one or the other is enabled.

* .. it needs testing on HT40 mode.

Tested:

* AR9280 in STA mode, HT/20 only

TODO:

* Test on AR9285, AR9287;
* Test in both HT20 and HT40 modes;
* .. all the driver glue.

Obtained from:	Qualcomm Atheros


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing update to link ar5416_spectral.c into the build.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244945 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a method to explicitly disable radar reporting if required.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add spectral HAL accessor methods.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the short repeat option code to not flip the option to 0 when
we call this w/ NOVAL set.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a new (skeleton) spectral mode manager module.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Link if_ath_spectral.c into the build.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a very skeletal spectral scan control application.

The main use for this is to manually trigger spectral scan operations
(athspectral -i athX start) whilst doing debugging.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing dependancy.

Submitted by:	Michael Butler
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make sade actually be a symlink to partedit, as per the commit message in
r244859, rather than a hardlink. This fixes installation if /usr/sbin
is on a different filesystem than /usr/libexec.

Submitted by:	se


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix incorrect format string.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f