u-boot-2016/drivers
Gabe Black 22e0f5a9ec x86: Fix some bugs in the i8402 driver when no controller is present
If no controller is present, the i8402 driver should return immediately and
not attempt to operate on the missing hardware.

In kbd_input_empty, the status register is checked every millisecond to see
whether the input buffer is empty, up to a timeout which is tracked by
decrimenting a counter each time the check is performed. The decrement is
performed with a postfix -- operator, and the value of the counter is
checked in place. That means that when the counter reaches zero and the
loop terminates, it will actually be decrimented one more time and become
-1. That value is returned as the return value of the function. That would
give the right answer if it wasn't for that extra decrement because a
timeout would indicate that the buffer never became empty.

This change fixes both of those bugs.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
2011-11-29 21:31:35 +11:00
..
bios_emulator drivers/bios_emulator/x86emu/ops2.c: Fix GCC 4.6 build warning 2011-11-27 15:45:47 +01:00
block ftide020: fix incorrect information display format 2011-11-18 17:26:14 +08:00
dma iMX28: Add APBH DMA driver 2011-11-11 11:36:57 +01:00
fpga FPGA: drivers/fpga/ivm_core.c: GCC4.6 fix build warnings 2011-11-16 20:49:40 +01:00
gpio Merge branch 'sr@denx.de' of git://git.denx.de/u-boot-staging 2011-11-21 22:11:05 +01:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c drivers/i2c/davinci_i2c.c: Fix GCC 4.6 warning 2011-11-23 21:22:39 +01:00
input x86: Fix some bugs in the i8402 driver when no controller is present 2011-11-29 21:31:35 +11:00
misc misc: pmic: fix regression in pmic_fsl.c (SPI) 2011-11-03 22:56:18 +01:00
mmc Revert "mmc: retry the cmd8 to meet 74 clocks requirement in the spec" 2011-11-25 17:43:05 -06:00
mtd Fix Stelian's email address 2011-11-27 19:44:21 +01:00
net Merge branch 'hs@denx.de' of git://git.denx.de/u-boot-staging 2011-11-23 21:23:45 +01:00
pci GCC4.6: Squash warnings in fsl_pci_init.c 2011-10-27 23:54:05 +02:00
pcmcia drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning 2011-11-07 22:11:46 +01:00
power mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
qe drivers/qe/uec.c: Fix GCC 4.6 build warning 2011-11-11 07:49:01 -06:00
rtc drivers/rtc/s3c24x0_rtc.c: fix GCC 4.6 warnings 2011-11-16 21:37:37 +01:00
serial PXA: Cleanup serial_pxa 2011-11-15 22:24:50 +01:00
spi drivers/spi/atmel_spi.c: Fix GCC 4.6 warning 2011-11-16 21:28:25 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Merge branch 'hs@denx.de' of git://git.denx.de/u-boot-staging 2011-11-23 21:23:45 +01:00
video DIU: 1080P and 720P support 2011-11-24 22:59:51 +01:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00