# logging # # Logging abilities for the shell initialisation scripts # # Copyright © 1994-2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.madduck.net/etc/zsh.git # __log() { local level; level="$1"; shift echo "${level}: $@" >&2 } __do_debug() { [ -n "${ZDEBUG:-}" ] } error() { [[ -o xtrace ]] && set +x && local __XTRACE=1 __log E "$@" [ "${__XTRACE:-}" ] && set -x } warn() { [[ -o xtrace ]] && set +x && local __XTRACE=1 __log W "$@" [ "${__XTRACE:-}" ] && set -x } info() { [[ -o xtrace ]] && set +x && local __XTRACE=1 __log I "$@" [ "${__XTRACE:-}" ] && set -x } debug() { [[ -o xtrace ]] && set +x && local __XTRACE=1 __do_debug && __log D "$@" [ "${__XTRACE:-}" ] && set -x } # vim:ft=zsh in'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pci
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2016-03-02 17:43:07 +0800
committerBjorn Helgaas <bhelgaas@google.com>2016-03-11 12:14:39 -0600
commiteff31f4002c4e25b9b8c39d0a3a551c6c64c77e8 (patch)
treeed1034d5b9b3dc8bced688ec31df47ecc1af7581 /Documentation/devicetree/bindings/pci
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
PCI: altera: Fix altera_pcie_link_is_up()
Originally altera_pcie_link_is_up() decided the link was up if any of the low four bits of the LTSSM register were set. But the link is only up if the LTSSM state is L0, so check for that exact value. [bhelgaas: changelog] Signed-off-by: Ley Foon Tan <lftan@altera.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Documentation/devicetree/bindings/pci')