linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: torvalds@linux-foundation.org, akpm@linux-foundation.org,
	alan@lxorguk.ukuu.org.uk,
	Ramneek Mehresh <ramneek.mehresh@freescale.com>,
	Peter Chen <peter.chen@freescale.com>
Subject: [ 030/149] usb: Fix build error due to dma_mask is not at pdev_archdata at ARM
Date: Fri, 30 Mar 2012 12:49:03 -0700	[thread overview]
Message-ID: <20120330194839.655785482@linuxfoundation.org> (raw)
In-Reply-To: <20120330195823.GA31857@kroah.com>

3.2-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Peter Chen <peter.chen@freescale.com>

commit e90fc3cb087ce5c5f81e814358222cd6d197b5db upstream.

When build i.mx platform with imx_v6_v7_defconfig, and after adding
USB Gadget support, it has below build error:

CC      drivers/usb/host/fsl-mph-dr-of.o
drivers/usb/host/fsl-mph-dr-of.c: In function 'fsl_usb2_device_register':
drivers/usb/host/fsl-mph-dr-of.c:97: error: 'struct pdev_archdata'
has no member named 'dma_mask'

It has discussed at: http://www.spinics.net/lists/linux-usb/msg57302.html

For PowerPC, there is dma_mask at struct pdev_archdata, but there is
no dma_mask at struct pdev_archdata for ARM. The pdev_archdata is
related to specific platform, it should NOT be accessed by
cross platform drivers, like USB.

The code for pdev_archdata should be useless, as for PowerPC,
it has already gotten the value for pdev->dev.dma_mask at function
arch_setup_pdev_archdata of arch/powerpc/kernel/setup-common.c.

Tested-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/usb/host/fsl-mph-dr-of.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/usb/host/fsl-mph-dr-of.c
+++ b/drivers/usb/host/fsl-mph-dr-of.c
@@ -94,7 +94,6 @@ struct platform_device * __devinit fsl_u
 	pdev->dev.parent = &ofdev->dev;
 
 	pdev->dev.coherent_dma_mask = ofdev->dev.coherent_dma_mask;
-	pdev->dev.dma_mask = &pdev->archdata.dma_mask;
 	*pdev->dev.dma_mask = *ofdev->dev.dma_mask;
 
 	retval = platform_device_add_data(pdev, pdata, sizeof(*pdata));



  parent reply	other threads:[~2012-03-30 21:10 UTC|newest]

Thread overview: 169+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30 19:58 [ 000/149] 3.2.14-stable review Greg KH
2012-03-30 19:48 ` [ 001/149] USB: option: Add MediaTek MT6276M modem&app interfaces Greg KH
2012-03-30 19:48 ` [ 002/149] USB: option driver: adding support for Telit CC864-SINGLE, CC864-DUAL and DE910-DUAL modems Greg KH
2012-03-30 19:48 ` [ 003/149] USB: option: make interface blacklist work again Greg KH
2012-03-30 19:48 ` [ 004/149] USB: option: add ZTE MF820D Greg KH
2012-03-30 19:48 ` [ 005/149] staging: zcache: avoid AB-BA deadlock condition Greg KH
2012-03-30 19:48 ` [ 006/149] USB: ftdi_sio: fix problem when the manufacture is a NULL string Greg KH
2012-03-30 19:48 ` [ 007/149] USB: ftdi_sio: add support for BeagleBone rev A5+ Greg KH
2012-03-30 19:48 ` [ 008/149] USB: Microchip VID mislabeled as Hornby VID in ftdi_sio Greg KH
2012-03-30 19:48 ` [ 009/149] USB: ftdi_sio: new PID: Distortec JTAG-lock-pick Greg KH
2012-03-30 19:48 ` [ 010/149] USB: ftdi_sio: add support for FT-X series devices Greg KH
2012-03-30 19:48 ` [ 011/149] USB: ftdi_sio: new PID: LUMEL PD12 Greg KH
2012-03-30 19:48 ` [ 012/149] powerpc/usb: fix bug of kernel hang when initializing usb Greg KH
2012-03-30 19:48 ` [ 013/149] staging: r8712u: Add missing initialization and remove configuration parameter CONFIG_R8712_AP Greg KH
2012-03-30 19:48 ` [ 014/149] staging: r8712u: Fix regression introduced by commit a5ee652 Greg KH
2012-03-30 19:48 ` [ 015/149] staging: r8712u: Fix regression in signal level after commit c6dc001 Greg KH
2012-03-30 19:48 ` [ 016/149] usb: dwc3: fix bogus test in dwc3_gadget_start_isoc Greg KH
2012-03-30 19:48 ` [ 017/149] usb: dwc3: use proper function for setting endpoint name Greg KH
2012-03-30 19:48 ` [ 018/149] usb: musb: Reselect index reg in interrupt context Greg KH
2012-03-30 19:48 ` [ 019/149] usb: renesas_usbhs: bugfix: add .release function to gpriv->gadget.dev Greg KH
2012-03-30 19:48 ` [ 020/149] usb: gadgetfs: return number of bytes on ep0 read request Greg KH
2012-03-30 19:48 ` [ 021/149] USB: gadget: Make g_hid device class conform to spec Greg KH
2012-03-30 19:48 ` [ 022/149] futex: Cover all PI opcodes with cmpxchg enabled check Greg KH
2012-03-30 19:48 ` [ 023/149] sysfs: Fix memory leak in sysfs_sd_setsecdata() Greg KH
2012-03-30 19:48 ` [ 024/149] tty: moxa: fix bit test in moxa_start() Greg KH
2012-03-30 19:48 ` [ 025/149] TTY: Wrong unicode value copied in con_set_unimap() Greg KH
2012-03-30 19:48 ` [ 026/149] USB: serial: fix console error reporting Greg KH
2012-03-30 19:49 ` [ 027/149] cdc-wdm: Fix more races on the read path Greg KH
2012-03-30 19:49 ` [ 028/149] cdc-wdm: Dont clear WDM_READ unless entire read buffer is emptied Greg KH
2012-03-30 19:49 ` [ 029/149] usb: fsl_udc_core: Fix scheduling while atomic dump message Greg KH
2012-03-30 19:49 ` Greg KH [this message]
2012-03-30 19:49 ` [ 031/149] USB: ums_realtek: do not use stack memory for DMA in __do_config_autodelink Greg KH
2012-03-30 19:49 ` [ 032/149] USB: qcserial: add several new serial devices Greg KH
2012-04-01 16:00   ` Ben Hutchings
2012-04-02 16:24     ` Greg KH
2012-03-30 19:49 ` [ 033/149] USB: qcserial: dont grab QMI port on Gobi 1000 devices Greg KH
2012-03-30 19:49 ` [ 034/149] usb-serial: Add support for the Sealevel SeaLINK+8 2038-ROHS device Greg KH
2012-03-30 19:49 ` [ 035/149] usb: cp210x: Update to support CP2105 and multiple interface devices Greg KH
2012-03-30 19:49 ` [ 036/149] USB: serial: mos7840: Fixed MCS7820 device attach problem Greg KH
2012-03-30 19:49 ` [ 037/149] rt2x00: Add support for D-Link DWA-127 to rt2800usb Greg KH
2012-03-30 19:49 ` [ 038/149] rtlwifi: rtl8192c_common: rtl8192de: Check for allocation failures Greg KH
2012-03-30 19:49 ` [ 039/149] rtlwifi: Handle previous allocation failures when freeing device memory Greg KH
2012-03-30 19:49 ` [ 040/149] rtlwifi: rtl8192c: Prevent sleeping from invalid context in rtl8192cu Greg KH
2012-03-30 19:49 ` [ 041/149] rtlwifi: rtl8192ce: Fix loss of receive performance Greg KH
2012-03-30 19:49 ` [ 042/149] serial: PL011: clear pending interrupts Greg KH
2012-03-30 19:49 ` [ 043/149] iwlwifi: always monitor for stuck queues Greg KH
2012-03-30 19:49 ` [ 044/149] math: Introduce div64_long Greg KH
2012-03-30 19:49 ` [ 045/149] ntp: Fix integer overflow when setting time Greg KH
2012-03-30 19:49 ` [ 046/149] uevent: send events in correct order according to seqnum (v3) Greg KH
2012-03-30 19:49 ` [ 047/149] genirq: Fix long-term regression in genirq irq_set_irq_type() handling Greg KH
2012-03-30 19:49 ` [ 048/149] genirq: Fix incorrect check for forced IRQ thread handler Greg KH
2012-03-30 19:49 ` [ 049/149] rtc: Disable the alarm in the hardware (v2) Greg KH
2012-11-05  9:11   ` [regression] " Jonathan Nieder
2012-11-05 10:13     ` Greg KH
2012-11-05 22:55       ` Heinz Wiesinger
2012-11-06  2:12         ` Greg KH
2012-11-13 10:29           ` Rabin Vincent
2012-12-03 23:14         ` John Stultz
2012-12-04 10:34           ` Heinz Wiesinger
2012-12-04 18:34             ` John Stultz
2012-12-08 11:10               ` Heinz Wiesinger
2012-12-11  1:56                 ` John Stultz
2012-12-22 12:48                   ` Heinz Wiesinger
2012-03-30 19:49 ` [ 050/149] p54spi: Release GPIO lines and IRQ on error in p54spi_probe Greg KH
2012-03-30 19:49 ` [ 051/149] rtnetlink: Fix VF IFLA policy Greg KH
2012-03-30 19:49 ` [ 052/149] IB/iser: Post initial receive buffers before sending the final login request Greg KH
2012-03-30 19:49 ` [ 053/149] ima: fix Kconfig dependencies Greg KH
2012-03-30 19:49 ` [ 054/149] x86/ioapic: Add register level checks to detect bogus io-apic entries Greg KH
2012-03-30 19:49 ` [ 055/149] mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode Greg KH
2012-03-30 19:49 ` [ 056/149] TPM: Zero buffer whole after copying to userspace Greg KH
2012-03-30 19:49 ` [ 057/149] PM / Domains: Fix handling of wakeup devices during system resume Greg KH
2012-03-30 19:49 ` [ 058/149] bootmem/sparsemem: remove limit constraint in alloc_bootmem_section Greg KH
2012-03-30 19:49 ` [ 059/149] hugetlbfs: avoid taking i_mutex from hugetlbfs_read() Greg KH
2012-03-30 19:49 ` [ 060/149] ASoC: fsl: p1022ds: tell the WM8776 codec driver that its the master Greg KH
2012-03-30 19:49 ` [ 061/149] ASoC: pxa-ssp: atomically set stream active masks Greg KH
2012-03-30 19:49 ` [ 062/149] tcm_loop: Set residual field for SCSI commands Greg KH
2012-03-30 19:49 ` [ 063/149] iscsi-target: Fix iscsit_alloc_buffs() failure cases Greg KH
2012-03-30 19:49 ` [ 064/149] iscsi-target: Fix dynamic -> explict NodeACL pointer reference Greg KH
2012-03-30 19:49 ` [ 065/149] ALSA: hda - fix printing of high HDMI sample rates Greg KH
2012-03-30 19:49 ` [ 066/149] usb gadget: fix a section mismatch when compiling g_ffs with CONFIG_USB_FUNCTIONFS_ETH Greg KH
2012-03-30 19:49 ` [ 067/149] udlfb: remove sysfs framebuffer device with USB .disconnect() Greg KH
2012-03-30 19:49 ` [ 068/149] tcm_fc: Fix fc_exch memory leak in ft_send_resp_status Greg KH
2012-03-30 19:49 ` [ 069/149] md/bitmap: ensure to load bitmap when creating via sysfs Greg KH
2012-03-30 19:49 ` [ 070/149] md: dont set md arrays to readonly on shutdown Greg KH
2012-03-30 19:49 ` [ 071/149] md/raid1,raid10: avoid deadlock during resync/recovery Greg KH
2012-03-30 19:49 ` [ 072/149] md: fix clearing of the changed flags for the bad blocks list Greg KH
2012-03-30 19:49 ` [ 073/149] drm/i915: Only clear the GPU domains upon a successful finish Greg KH
2012-03-30 19:49 ` [ 074/149] drm/radeon: Restrict offset for legacy hardware cursor Greg KH
2012-03-30 19:49 ` [ 075/149] drm/radeon/kms: fix analog load detection on DVI-I connectors Greg KH
2012-03-30 19:49 ` [ 076/149] drm/radeon/kms: add connector quirk for Fujitsu D3003-S2 board Greg KH
2012-03-30 19:49 ` [ 077/149] target: Dont set WBUS16 or SYNC bits in INQUIRY response Greg KH
2012-03-30 19:49 ` [ 078/149] target: fix use after free in target_report_luns Greg KH
2012-03-30 19:49 ` [ 079/149] target: prevent NULL pointer dereference " Greg KH
2012-03-30 19:49 ` [ 080/149] target: Fix 16-bit target ports for SET TARGET PORT GROUPS emulation Greg KH
2012-03-30 19:49 ` [ 081/149] Bluetooth: Add AR30XX device ID on Asus laptops Greg KH
2012-03-30 19:49 ` [ 082/149] HID: add extra hotkeys in Asus AIO keyboards Greg KH
2012-03-30 19:49 ` [ 083/149] HID: add more " Greg KH
2012-03-30 19:49 ` [ 084/149] pata_legacy: correctly mask recovery field for HT6560B Greg KH
2012-03-30 19:49 ` [ 085/149] firewire: ohci: fix too-early completion of IR multichannel buffers Greg KH
2012-03-30 19:49 ` [ 086/149] video:uvesafb: Fix oops that uvesafb try to execute NX-protected page Greg KH
2012-03-30 21:30   ` Florian Tobias Schandinat
2012-03-31 18:03     ` Greg KH
2012-03-31 20:37       ` Alan Cox
2012-03-31 21:11         ` Florian Tobias Schandinat
2012-03-30 19:50 ` [ 087/149] KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid" Greg KH
2012-03-30 19:50 ` [ 088/149] KVM: x86: fix missing checks in syscall emulation Greg KH
2012-03-30 19:50 ` [ 089/149] NFS: Properly handle the case where the delegation is revoked Greg KH
2012-03-30 19:50 ` [ 090/149] NFSv4: Return the delegation if the server returns NFS4ERR_OPENMODE Greg KH
2012-03-30 19:50 ` [ 091/149] xfs: fix inode lookup race Greg KH
2012-03-30 19:50 ` [ 092/149] CIFS: Respect negotiated MaxMpxCount Greg KH
2012-03-30 19:50 ` [ 093/149] cifs: fix issue mounting of DFS ROOT when redirecting from one domain controller to the next Greg KH
2012-03-30 19:50 ` [ 094/149] CIFS: Fix a spurious error in cifs_push_posix_locks Greg KH
2012-03-30 19:50 ` [ 095/149] UBI: fix error handling in ubi_scan() Greg KH
2012-03-30 19:50 ` [ 096/149] UBI: fix eraseblock picking criteria Greg KH
2012-03-30 19:50 ` [ 097/149] SUNRPC: We must not use list_for_each_entry_safe() in rpc_wake_up() Greg KH
2012-03-30 19:50 ` [ 098/149] usbnet: increase URB reference count before usb_unlink_urb Greg KH
2012-03-30 19:50 ` [ 099/149] usbnet: dont clear urb->dev in tx_complete Greg KH
2012-03-30 19:50 ` [ 100/149] e1000e: Avoid wrong check on TX hang Greg KH
2012-03-30 19:50 ` [ 101/149] x86-32: Fix endless loop when processing signals for kernel tasks Greg KH
2012-03-30 19:50 ` [ 102/149] proc-ns: use d_set_d_op() API to set dentry ops in proc_ns_instantiate() Greg KH
2012-03-30 19:50 ` [ 103/149] iommu/amd: Fix section warning for prealloc_protection_domains Greg KH
2012-03-30 19:50 ` [ 104/149] sysctl: protect poll() in entries that may go away Greg KH
2012-03-30 19:50 ` [ 105/149] hwmon: (fam15h_power) Correct sign extension of running_avg_capture Greg KH
2012-03-30 19:50 ` [ 106/149] [media] lgdt330x: fix signedness error in i2c_read_demod_bytes() Greg KH
2012-03-30 19:50 ` [ 107/149] [media] pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5 Greg KH
2012-03-30 19:50 ` [ 108/149] [media] mxl111sf: fix error on stream stop in mxl111sf_ep6_streaming_ctrl() Greg KH
2012-03-30 19:50 ` [ 109/149] NFSv4: Rate limit the state manager warning messages Greg KH
2012-03-30 19:50 ` [ 110/149] PM / Hibernate: Enable usermodehelpers in hibernate() error path Greg KH
2012-03-30 19:50 ` [ 111/149] jbd2: clear BH_Delay & BH_Unwritten in journal_unmap_buffer Greg KH
2012-03-30 19:50 ` [ 112/149] ext4: ignore EXT4_INODE_JOURNAL_DATA flag with delalloc Greg KH
2012-03-30 19:50 ` [ 113/149] ext4: fix race between unwritten extent conversion and truncate Greg KH
2012-03-30 19:50 ` [ 114/149] ext4: fix race between sync and completed io work Greg KH
2012-03-30 19:50 ` [ 115/149] ext4: check for zero length extent Greg KH
2012-03-30 19:50 ` [ 116/149] vfs: fix d_ancestor() case in d_materialize_unique Greg KH
2012-03-30 19:50 ` [ 117/149] ARM: tegra: select required CPU and L2 errata options Greg KH
2012-03-30 19:50 ` [ 118/149] udf: Fix deadlock in udf_release_file() Greg KH
2012-03-30 19:50 ` [ 119/149] gpio/omap: fix _set_gpio_irqenable implementation Greg KH
2012-03-30 19:50 ` [ 120/149] gpio/davinci: fix oops on unbanked gpio irq request Greg KH
2012-03-30 19:50 ` [ 121/149] gpio/davinci: fix enabling unbanked GPIO IRQs Greg KH
2012-03-30 19:50 ` [ 122/149] dm crypt: fix mempool deadlock Greg KH
2012-03-30 19:50 ` [ 123/149] dm crypt: add missing error handling Greg KH
2012-03-30 19:50 ` [ 124/149] dm exception store: fix init error path Greg KH
2012-03-30 19:50 ` [ 125/149] dm persistent data: fix btree rebalancing after remove Greg KH
2012-03-30 19:50 ` [ 126/149] dm thin: fix stacked bi_next usage Greg KH
2012-03-30 19:50 ` [ 127/149] backlight: fix typo in tosa_lcd.c Greg KH
2012-03-30 19:50 ` [ 128/149] xfs: Fix oops on IO error during xlog_recover_process_iunlinks() Greg KH
2012-03-30 19:50 ` [ 129/149] slub: Do not hold slub_lock when calling sysfs_slab_add() Greg KH
2012-03-30 19:50 ` [ 130/149] NFSv4: Fix two infinite loops in the mount code Greg KH
2012-03-30 19:50 ` [ 131/149] NFSv4.1: Fix layoutcommit error handling Greg KH
2012-04-01 21:23   ` Ben Hutchings
2012-04-01 23:59     ` Myklebust, Trond
2012-03-30 19:50 ` [ 132/149] module: Remove module size limit Greg KH
2012-03-30 19:50 ` [ 133/149] Bluetooth: btusb: fix bInterval for high/super speed isochronous endpoints Greg KH
2012-03-30 19:50 ` [ 134/149] drm/i915: suspend fbdev device around suspend/hibernate Greg KH
2012-03-30 19:50 ` [ 135/149] Fix pppol2tp getsockname() Greg KH
2012-03-30 19:50 ` [ 136/149] ipv6: fix incorrent ipv6 ipsec packet fragment Greg KH
2012-03-30 19:50 ` [ 137/149] net: bpf_jit: fix BPF_S_LDX_B_MSH compilation Greg KH
2012-03-30 19:50 ` [ 138/149] net: fix a potential rcu_read_lock() imbalance in rt6_fill_node() Greg KH
2012-03-30 19:50 ` [ 139/149] net: fix napi_reuse_skb() skb reserve Greg KH
2012-03-30 19:50 ` [ 140/149] Remove printk from rds_sendmsg Greg KH
2012-03-30 19:50 ` [ 141/149] sky2: override for PCI legacy power management Greg KH
2012-03-30 19:50 ` [ 142/149] xfrm: Access the replay notify functions via the registered callbacks Greg KH
2012-03-30 19:50 ` [ 143/149] lockd: fix arg parsing for grace_period and timeout Greg KH
2012-03-30 19:50 ` [ 144/149] x86, tsc: Skip refined tsc calibration on systems with reliable TSC Greg KH
2012-03-30 19:50 ` [ 145/149] x86, tls: Off by one limit check Greg KH
2012-03-30 19:50 ` [ 146/149] compat: use sys_sendfile64() implementation for sendfile syscall Greg KH
2012-03-30 19:51 ` [ 147/149] rtc: Provide flag for rtc devices that dont support UIE Greg KH
2012-03-30 19:51 ` [ 148/149] nfsd: dont allow zero length strings in cache_parse() Greg KH
2012-03-30 19:51 ` [ 149/149] serial: sh-sci: fix a race of DMA submit_tx on transfer Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120330194839.655785482@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.chen@freescale.com \
    --cc=ramneek.mehresh@freescale.com \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).