summaryrefslogtreecommitdiff
path: root/link.h
blob: 67ec43351d35f033d08047f4e2b58d9ded90a977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef LINK_H
#define LINK_H

#include <stdint.h>
#include <sys/socket.h>
#include <linux/ethtool.h>
#include <linux/wireless.h>

#include "built_in.h"

extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
extern int wireless_rangemax_sigqual(const char *ifname);
extern u32 wireless_bitrate(const char *ifname);
extern u32 ethtool_bitrate(const char *ifname);
extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
extern int ethtool_link(const char *ifname);

#endif /* LINK_H */
t>
authorNobuteru Hayashi <hayashi.nbb@ncos.nec.co.jp>2016-03-18 11:35:21 +0000
committerMark Brown <broonie@kernel.org>2016-03-28 19:41:18 +0100
commit6319a68011b86fa61dc63e94dc4fb716628037f3 (patch)
tree2dbe35310b327e166e31cdc4f0e4752ce7889cbb /Documentation
parentaa70e567c4f0eeb849c6bcef3685bdf1fc3ca19d (diff)
spi/fsl-espi: avoid infinite loops on fsl_espi_cpu_irq()
It brought nearly infinite loops, and was possible to be occurred only if the SPI transaction total size are not alighed with 4. Loops are here at while (tmp--), tmp is unsigned, and set it with minus value. The loops are executed as a result of unexpected RX interrupt occurrence after that. This interrupt may be hardware eratta and is not fixed. Fix mspi->len from minus value to 0 and print warning message. Signed-off-by: Nobuteru Hayashi <hayashi.nbb@ncos.nec.co.jp> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')