Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e0b11c3c
Commit
e0b11c3c
authored
Oct 28, 2010
by
Ben Dooks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2637/i2c/samsung' into next-i2c
parents
37516385
d2360b8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
drivers/i2c/busses/i2c-s3c2410.c
drivers/i2c/busses/i2c-s3c2410.c
+9
-1
No files found.
drivers/i2c/busses/i2c-s3c2410.c
View file @
e0b11c3c
...
...
@@ -554,18 +554,23 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
int
retry
;
int
ret
;
clk_enable
(
i2c
->
clk
);
for
(
retry
=
0
;
retry
<
adap
->
retries
;
retry
++
)
{
ret
=
s3c24xx_i2c_doxfer
(
i2c
,
msgs
,
num
);
if
(
ret
!=
-
EAGAIN
)
if
(
ret
!=
-
EAGAIN
)
{
clk_disable
(
i2c
->
clk
);
return
ret
;
}
dev_dbg
(
i2c
->
dev
,
"Retrying transmission (%d)
\n
"
,
retry
);
udelay
(
100
);
}
clk_disable
(
i2c
->
clk
);
return
-
EREMOTEIO
;
}
...
...
@@ -910,6 +915,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
platform_set_drvdata
(
pdev
,
i2c
);
dev_info
(
&
pdev
->
dev
,
"%s: S3C I2C adapter
\n
"
,
dev_name
(
&
i2c
->
adap
.
dev
));
clk_disable
(
i2c
->
clk
);
return
0
;
err_cpufreq:
...
...
@@ -977,7 +983,9 @@ static int s3c24xx_i2c_resume(struct device *dev)
struct
s3c24xx_i2c
*
i2c
=
platform_get_drvdata
(
pdev
);
i2c
->
suspended
=
0
;
clk_enable
(
i2c
->
clk
);
s3c24xx_i2c_init
(
i2c
);
clk_disable
(
i2c
->
clk
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment