ti81xx: fbdev buffer address is not 16 byte alignment

	driver does not make sure that buffer address is 16 byte alignment if application use
 horizontal panning(var.xoffset).

      this patch is to fix this.

Signed-off-by: Yihe Hu <yihehu@ti.com>
drivers: net: cpsw: fix build error when cpts built as module

When CPTS is build as module, CONFIG_PTP_1588_CLOCK_CPTS is not define and
CONFIG_PTP_1588_CLOCK_CPTS_MODULE is defined. so changed #if to check
CONFIG_PTP_1588_CLOCK_CPTS and CONFIG_PTP_1588_CLOCK_CPTS_MODULE.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
dm814x: fix to select right pll source for the DVO2 display

    In dm814x/dm813x,  DVO2 display can be drived either from
HDMI_PLL or VIDEO1_PLL,
  /sys/devices/platform/vpss/display1/source is provided to choose.

   The implementation accidently does such configuraiton only if
 current platform is DM816X. So applicaiton can not use this sysfs entry
to choose the pll source for DVO2.

    This patch is to fix.

Signed-off-by: Yihe Hu <yihehu@ti.com>
dm814x: add support to choose dvo2 pll source when loaded module

      Add support to choose different dvo2 pll source when loaded module.

The usage is as below:

    use HDMI pll to drive DVO2
    insmod vpss.ko clksrc=dvo2:hdmi

    use VIDEO1_PLL to drive DVO2(default)
    insmod vpss.ko or insmod vpss.ko clksrc=dvo2:dvo2

Signed-off-by: Yihe Hu <yihehu@ti.com>
vpss: remove wrong error print .

below printing should not present under normal condition.

VPSS_DCTRL: Wrong clock source

Signed-off-by: Yihe Hu <yihehu@ti.com>
libata: Implement ATA_FLAG_NO_DIPM and apply it to mcp65

NVIDIA mcp65 familiy of controllers cause command timeouts when DIPM
is used.  Implement ATA_FLAG_NO_DIPM and apply it.

This problem was reported by Stefan Bader in the following thread.

 http://thread.gmane.org/gmane.linux.ide/48841

stable: applicable to 2.6.37 and 38.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stefan Bader <stefan.bader@canonical.com>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
ahci: add AHCI_HFLAG_DELAY_ENGINE host flag

The following commit was intended to fix problems with specific AHCI
controller(s) that would become bricks if the AHCI specification was not
followed strictly (that is, if ahci_start_engine() was called while the
controller was in the wrong state):

    commit 7faa33da9b7add01db9f1ad92c6a5d9145e940a7
    ahci: start engine only during soft/hard resets

However, some devices currently have issues with that fix, so we must
implement a flag that delays the ahci_start_engine() call only for specific
controllers.

This commit simply introduces the flag, without enabling it in any driver.

Note that even when AHCI_HFLAG_DELAY_ENGINE is not enabled, this patch does
not constitue a full revert to commit 7faa33da; there is still a change in
behavior to the ahci_port_suspend() failure path.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
ahci: move AHCI_HFLAGS() macro to ahci.h

We will need this macro in both ahci.c and ahci_platform.c, so just move it
to the header.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
[libata] ahci_platform: Add the board_ids and pi refer to different features

On imx53 AHCI, soft reset fails with IPMS set when PMP
is enabled but SATA HDD/ODD is connected to SATA port,
do soft reset again to port 0.
So the 'ahci_pmp_retry_srst_ops' is required when imx53
ahci is present.

Signed-off-by: Richard Zhu <richard.zhu@linaro.org>
Acked-by: Eric Miao <eric.miao@linaro.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
ahci_platform: add STRICT_AHCI platform type

Some platforms need to make use of the AHCI_HFLAG_DELAY_ENGINE flag.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
ahci: move ahci_sb600_softreset to libahci.c and rename it

ahci_sb600_softreset was in ahci.c. This function is used
to fix soft reset failure and renames as ahci_pmp_retry_softreset
in libahci.c.

Signed-off-by: Yuan-Hsin Chen <yhchen@faraday-tech.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Sriramakrishnan A G <srk@ti.com>
ti81xx : sata ahci : enable retry and Staggered spin up

enable additional soft reset and also enabled Staggered spin
up for devices connected to ti81xx

Signed-off-by: Sriramakrishnan A G <srk@ti.com>
TI811X: Audio playback output muted issue fixed

Fixed the audio mute issue while stress playback
testscipt on TI811x plaform due to the register
cache sync lost.

The actual root cause of the issue is unknow
and need to revisit to add a proper fix.

Signed-off-by: Raj, Deepu <deepu.raj@ti.com>
drivers: net: cpsw: add promiscuous support

Add promiscuous support for CPSW.
In Dual EMAC promiscuous support for one port is common
for both the interfaces.
Promiscuous mode is not supported in Switch mode.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
davinci_mdio: Fix MDIO timeout check

Under heavy load (flood ping) it is possible for the MDIO timeout to
expire before the loop checks the GO bit again. This patch adds an
additional check whether the operation was done before actually
returning -ETIMEDOUT.

To reproduce this bug, flood ping the device, e.g., ping -f -l 1000
After some time, a "timed out waiting for user access" warning
may appear. And even worse, link may go down since the PHY reported a
timeout.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: <stable@vger.kernel.org>
Cc: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
TI81xx : HDMI : Bug fix - msleep / mutual exclusion in EDID read

 1. Used msleep instead of udelay. This minimizes CPU
	utilization when wait is required.
 2. Added mutual exclusion when reding the EDID.

Signed-off-by: sujith <sujith.s@ti.com>
TI81xx HDMI - Misc comment updates

Signed-off-by: sujith <sujith.s@ti.com>
TI81XX:  HDMI - EDID parsing features updates

1. EDID Audio data block parsing code updated.
2. Added interface to retrive parsed EDID info
3. Added code parse EDID information

Signed-off-by: sujith <sujith.s@ti.com>
TI81XX: HDMI audio bug fixes and code cleanup

Fixed the following bugs
 * sending wrong audio infoframe packets
 * TV compatabiliy in s/w CTS mode(SONY/SAMSUNG TV models)
 * update the configs & channel status bits for IEC-60958-3

Signed-off-by: Raj, Deepu <deepu.raj@ti.com>
TI81XX - HDMI Updates/bug fix.

1. Changed HDMI / DVI mode selection based on v_core_cfg,
instead of supplied value.
2. EDID - Parsing
 2.1. Updated video format identifier to use actual length
 2.2. Updated audio format identifier to mask out, reserved bit for width
 2.3. Added a flag that specifies if EDID is read / parsed.
 On subsequent EDID read request from apps, the value is
 copied instead of re-read. This flag is cleared when
 a. HPD, b. display stopped. 2.4. Parse video / audio
 information only in case of HDMI sink
3. IRQ bug - fix
 3.1. If the HDMI is stopped, when HDMI was already stopped.
 An kernel crash was seen. Essentially IRQ was being released
 twice. Used the state indicator hdmi.status to check if enabled,
 before disabling.
4. Added support to return the EDID version, in parsed EDID strucutre.

Signed-off-by: sujith <sujith.s@ti.com>