summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Persson <per.xb.persson@stericsson.com>2011-09-29 10:32:18 +0200
committerJonas ABERG <jonas.aberg@stericsson.com>2011-09-29 15:58:06 +0200
commit93c366533210c9bdde4faa40278f6f9f1aae710f (patch)
tree5e1459af065c489fd340b3a3fc6281eb6f6c4b70
parentad430df7e5faa5d1f42bd8ad297e662bb5b59a74 (diff)
video: hdmi: Fix fb creation failure
This patch ensures that av8100 firmware download is completed before proceeding with commands that require fw. ST-Ericsson ID: 364550 ST-Ericsson Linux next: Not tested ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I0ee7005874bd43bfe1b557c05bdb12e2a9ebad1d Signed-off-by: Per Persson <per.xb.persson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32469 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
-rw-r--r--drivers/video/av8100/hdmi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/av8100/hdmi.c b/drivers/video/av8100/hdmi.c
index 653cb5b2b23..0e06c648bed 100644
--- a/drivers/video/av8100/hdmi.c
+++ b/drivers/video/av8100/hdmi.c
@@ -260,7 +260,7 @@ static int edidread(struct hdmi_device *hdev, struct edid_read *edidread,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -307,7 +307,7 @@ static int cecread(struct hdmi_device *hdev, u8 *src, u8 *dest, u8 *data_len,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -378,7 +378,7 @@ static int cecsend(struct hdmi_device *hdev, u8 src, u8 dest, u8 data_len,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -433,7 +433,7 @@ static int infofrsend(struct hdmi_device *hdev, u8 type, u8 version, u8 crc,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -478,7 +478,7 @@ static int hdcpchkaesotp(struct hdmi_device *hdev, u8 *crc, u8 *progged)
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -525,7 +525,7 @@ static int hdcpfuseaes(struct hdmi_device *hdev, u8 *key, u8 crc, u8 *result)
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -579,7 +579,7 @@ static int hdcploadaes(struct hdmi_device *hdev, u8 block, u8 key_len, u8 *key,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -625,7 +625,7 @@ static int hdcpauthencr(struct hdmi_device *hdev, u8 auth_type, u8 encr_type,
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;
@@ -736,7 +736,7 @@ static int audiocfg(struct hdmi_device *hdev, struct audio_cfg *cfg)
}
}
- if (status.av8100_state < AV8100_OPMODE_INIT) {
+ if (status.av8100_state <= AV8100_OPMODE_INIT) {
if (av8100_download_firmware(I2C_INTERFACE) != 0) {
dev_err(hdev->dev, "av8100 dl fw FAIL\n");
return -EINVAL;