Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   dyoung
Date:           Wed Mar 12 18:02:22 UTC 2008

Modified Files:
        src/sys/dev: audio.c
        src/sys/dev/acpi: acpi.c
        src/sys/dev/apm: apm.c
        src/sys/dev/cardbus: cardbus.c if_ath_cardbus.c if_rtw_cardbus.c
        src/sys/dev/ic: ath.c athvar.h rtw.c rtwvar.h
        src/sys/dev/pci: if_ath_pci.c if_rtw_pci.c if_sip.c
        src/sys/kern: kern_drvctl.c kern_pmf.c subr_autoconf.c
        src/sys/sys: device.h pmf.h

Log Message:
Use device_t and its accessors throughout.  Use aprint_*_dev().

Improve PMF-ability.

        Add a 'flags' argument to suspend/resume handlers and
        callers such as pmf_system_suspend().

        Define a flag, PMF_F_SELF, which indicates to PMF that a
        device is suspending/resuming itself.  Add helper routines,
        pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
        that call pmf_device_suspend(dev, PMF_F_SELF) and
        pmf_device_resume(dev, PMF_F_SELF), respectively.  Use
        PMF_F_SELF to suspend/resume self in ath(4), audio(4),
        rtw(4), and sip(4).

        In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
        callbacks, provided by the bus front-end, with
        self-suspension/resumption.  Also, clean up the bus
        front-ends.  Make sure that the interrupt handler is
        disestablished during suspension.  Get rid of driver-private
        flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
        device_is_active()/device_has_power() calls, instead.

        In the network-class suspend handler, call if_stop(, 0)
        instead of if_stop(, 1), because the latter is superfluous
        (bus- and driver-suspension hooks will 'disable' the NIC),
        and it may cause recursion.

        In the network-class resume handler, prevent infinite
        recursion through if_init() by getting out early if we are
        self-suspending (PMF_F_SELF).

rtw(4) improvements:

        Destroy rtw(4) callouts when we detach it.  Make rtw at
        pci detachable.  Print some more information with the "rx
        frame too long" warning.

Remove activate() methods:

        Get rid of rtw_activate() and ath_activate().  The device
        activate() methods are not good for much these days.

Make ath at cardbus resume with crypto functions intact:

        Introduce a boolean device property, "pmf-powerdown".  If
        pmf-powerdown is present and false, it indicates that a
        bus back-end should not remove power from a device.

        Honor this property in cardbus_child_suspend().

        Set this property to 'false' in ath_attach(), since removing
        power from an ath at cardbus seems to lobotomize the WPA
        crypto engine.  XXX Should the pmf-powerdown property
        propagate toward the root of the device tree?

Miscellaneous ath(4) changes:

        Warn if ath(4) tries to write crypto keys to suspended
        hardware.

        Reduce differences between FreeBSD and NetBSD in ath(4)
        multicast filter setup.

        Make ath_printrxbuf() print an rx descriptor's status &
        key index, to help debug crypto errors.

        Shorten a staircase in ath_ioctl().  Don't check for
        ieee80211_ioctl() return code ERESTART, it never happens.


To generate a diff of this commit:
cvs rdiff -r1.236 -r1.237 src/sys/dev/audio.c
cvs rdiff -r1.111 -r1.112 src/sys/dev/acpi/acpi.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/apm/apm.c
cvs rdiff -r1.90 -r1.91 src/sys/dev/cardbus/cardbus.c
cvs rdiff -r1.25 -r1.26 src/sys/dev/cardbus/if_ath_cardbus.c
cvs rdiff -r1.22 -r1.23 src/sys/dev/cardbus/if_rtw_cardbus.c
cvs rdiff -r1.98 -r1.99 src/sys/dev/ic/ath.c
cvs rdiff -r1.23 -r1.24 src/sys/dev/ic/athvar.h
cvs rdiff -r1.100 -r1.101 src/sys/dev/ic/rtw.c
cvs rdiff -r1.36 -r1.37 src/sys/dev/ic/rtwvar.h
cvs rdiff -r1.29 -r1.30 src/sys/dev/pci/if_ath_pci.c
cvs rdiff -r1.9 -r1.10 src/sys/dev/pci/if_rtw_pci.c
cvs rdiff -r1.129 -r1.130 src/sys/dev/pci/if_sip.c
cvs rdiff -r1.15 -r1.16 src/sys/kern/kern_drvctl.c
cvs rdiff -r1.16 -r1.17 src/sys/kern/kern_pmf.c
cvs rdiff -r1.140 -r1.141 src/sys/kern/subr_autoconf.c
cvs rdiff -r1.108 -r1.109 src/sys/sys/device.h
cvs rdiff -r1.9 -r1.10 src/sys/sys/pmf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index