Re: [PATCH v4 1/2] phy: qcom: Add driver for QCOM APQ8064 SATA PHY

2014-07-15 Thread Srinivas Kandagatla
On 15/07/14 17:56, Bartlomiej Zolnierkiewicz wrote: + >+/* Helper function to do poll and timeout */ >+static int read_poll_timeout(void __iomem *addr, u32 mask) >+{ >+ unsigned long timeout = jiffies + msecs_to_jiffies(TIMEOUT_MS); >+ >+ do { >+ if (readl_relaxed(addr) & mask) >+

Re: [PATCH v4 1/2] phy: qcom: Add driver for QCOM APQ8064 SATA PHY

2014-07-15 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, July 14, 2014 12:17:59 PM Srinivas Kandagatla wrote: > Add a PHY driver for uses with AHCI based SATA controller driver on the > APQ8064 family of SoCs. > > This patch is a forward port from Qualcomm's v3.4 andriod kernel. > > Tested on IFC6410 board. > > CC: Sujit Reddy Thumma