lkml.org 
[lkml]   [2008]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 11/11] memstick: add support for JMicron jmb38x MemoryStick host controller
On Wed,  5 Mar 2008 03:02:28 +1100
oakad@exemail.com.au wrote:

> +static void jmb38x_ms_reset(struct jmb38x_ms_host *host)
> +{
> + unsigned int host_ctl = readl(host->addr + HOST_CONTROL);
> +
> + writel(host_ctl | HOST_CONTROL_RESET_REQ | HOST_CONTROL_RESET,
> + host->addr + HOST_CONTROL);
> +
> + while (HOST_CONTROL_RESET_REQ
> + & (host_ctl = readl(host->addr + HOST_CONTROL))) {

host_ctl is written to but is not used again.

> + ndelay(100);
> + dev_dbg(&host->chip->pdev->dev, "reset\n");
> + }
> +
> + writel(INT_STATUS_ALL, host->addr + INT_STATUS_ENABLE);
> + writel(INT_STATUS_ALL, host->addr + INT_SIGNAL_ENABLE);
> +
> + dev_dbg(&host->chip->pdev->dev, "reset\n");
> +}


\
 
 \ /
  Last update: 2008-03-06 00:21    [W:0.062 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site