mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00:00
ca2e16faa7
The i2c handling in tfp410 driver, which handles converting parallel RGB
to DVI, was changed in 958f2717b8
(OMAPDSS: TFP410: pdata rewrite). The patch changed what value the
driver considers as invalid/undefined. Before the patch, 0 was the
invalid value, but as 0 is a valid bus number, the patch changed this to
-1.
However, the fact was missed that many board files do not define the bus
number at all, thus it's left to 0. This causes the driver to fail to
get the i2c bus, exiting from the driver's probe with an error, meaning
that the DVI output does not work for those boards.
This patch fixes the issue by changing the i2c_bus number field in the
driver's platform data from u16 to int, and setting the bus number to -1
in the board files for the boards that did not define the bus. The
exception is devkit8000, for which the bus is set to 1, which is the
correct bus for that board.
The bug exists in v3.5+ kernels.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: Thomas Weber <thomas@tomweber.eu>
Cc: Thomas Weber <thomas@tomweber.eu>
Cc: <stable@vger.kernel.org> # v3.5+
Signed-off-by: Tony Lindgren <tony@atomide.com>
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* Header for TFP410 chip driver
|
|
*
|
|
* Copyright (C) 2011 Texas Instruments Inc
|
|
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
* the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __OMAP_PANEL_TFP410_H
|
|
#define __OMAP_PANEL_TFP410_H
|
|
|
|
struct omap_dss_device;
|
|
|
|
/**
|
|
* struct tfp410_platform_data - panel driver configuration data
|
|
* @i2c_bus_num: i2c bus id for the panel
|
|
* @power_down_gpio: gpio number for PD pin (or -1 if not available)
|
|
*/
|
|
struct tfp410_platform_data {
|
|
int i2c_bus_num;
|
|
int power_down_gpio;
|
|
};
|
|
|
|
#endif /* __OMAP_PANEL_TFP410_H */
|