ARM: tegra: board:disable the unaligned dma buffer
Rakesh Bodla [Tue, 30 Jul 2013 08:01:40 +0000 (13:01 +0530)]
Disable usb h/w alignment fix.

Bug 1289107

Change-Id: Ice6c9b6d561bea3ef629e12fe9c5773512a9df04
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/255419
(cherry picked from commit 949ac7681ee99dae5ad75fba6903ece3690700a1)
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/256763
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

arch/arm/mach-tegra/board-ardbeg.c
arch/arm/mach-tegra/board-macallan.c

index ccc8c15..401706c 100644 (file)
@@ -520,6 +520,7 @@ static struct platform_device *ardbeg_devices[] __initdata = {
 static struct tegra_usb_platform_data tegra_udc_pdata = {
        .port_otg = true,
        .has_hostpc = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_DEVICE,
        .u_data.dev = {
@@ -544,7 +545,7 @@ static struct tegra_usb_platform_data tegra_udc_pdata = {
 static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
        .port_otg = true,
        .has_hostpc = true,
-       .unaligned_dma_buf_supported = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_HOST,
        .u_data.host = {
@@ -572,7 +573,7 @@ static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
 static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = {
        .port_otg = false,
        .has_hostpc = true,
-       .unaligned_dma_buf_supported = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_HOST,
        .u_data.host = {
@@ -599,7 +600,7 @@ static struct tegra_usb_platform_data tegra_ehci2_utmi_pdata = {
 static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = {
        .port_otg = false,
        .has_hostpc = true,
-       .unaligned_dma_buf_supported = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_HOST,
        .u_data.host = {
@@ -630,7 +631,7 @@ static struct gpio modem_gpios[] = { /* Bruce modem */
 static struct tegra_usb_platform_data tegra_ehci2_hsic_baseband_pdata = {
        .port_otg = false,
        .has_hostpc = true,
-       .unaligned_dma_buf_supported = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_HSIC,
        .op_mode = TEGRA_USB_OPMODE_HOST,
        .u_data.host = {
@@ -644,7 +645,7 @@ static struct tegra_usb_platform_data tegra_ehci2_hsic_baseband_pdata = {
 static struct tegra_usb_platform_data tegra_ehci2_hsic_smsc_hub_pdata = {
        .port_otg = false,
        .has_hostpc = true,
-       .unaligned_dma_buf_supported = true,
+       .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_HSIC,
        .op_mode        = TEGRA_USB_OPMODE_HOST,
        .u_data.host = {
index c550302..4d3ea2a 100644 (file)
@@ -513,11 +513,6 @@ static void macallan_modem_init(void)
        int usb_port_owner_info = tegra_get_usb_port_owner_info();
        switch (modem_id) {
        case TEGRA_BB_NEMO: /* on board i500 HSIC */
-               if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11) &&
-                   (tegra_revision == TEGRA_REVISION_A02)) {
-                       tegra_ehci2_hsic_baseband_pdata \
-                       .unaligned_dma_buf_supported = true;
-               }
                if (!(usb_port_owner_info & HSIC1_PORT_OWNER_XUSB))
                        platform_device_register(&icera_nemo_device);
                break;