<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/extcon, branch v5.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.6</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2019-12-16T01:23:19Z</updated>
<entry>
<title>extcon: sm5502: Remove unneeded semicolon</title>
<updated>2019-12-16T01:23:19Z</updated>
<author>
<name>Xu Wang</name>
<email>vulab@iscas.ac.cn</email>
</author>
<published>2019-12-13T09:48:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2ddf50a75dab49eeb534dbdad92972f56a84046d'/>
<id>urn:sha1:2ddf50a75dab49eeb534dbdad92972f56a84046d</id>
<content type='text'>
Remove unneeded semicolon reported by coccinelle.

Signed-off-by: Xu Wang &lt;vulab@iscas.ac.cn&gt;
[cw00.choi: Edit patch title and description]
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Factor out microphone and button detection</title>
<updated>2019-12-09T11:18:15Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4b28b25c3062002eebdef1a4e6bab2f8293308f1'/>
<id>urn:sha1:4b28b25c3062002eebdef1a4e6bab2f8293308f1</id>
<content type='text'>
Continue refactoring the microphone detect handling by factoring
out the handling for microphone detection and button detection
into separate functions. This both makes the code a little clearer
and prepares for some planned future refactoring to make the state
handling in the driver more explicit.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Factor out microphone impedance into a function</title>
<updated>2019-12-09T11:18:15Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7e14fc437c8144d1d5587d7b3a8d33e732144227'/>
<id>urn:sha1:7e14fc437c8144d1d5587d7b3a8d33e732144227</id>
<content type='text'>
The microphone detection handler is very long, start breaking it up
by factoring out the actual reading of the impedance value into a
separate functions. Additionally, this also fixes a minor bug and
ensures that the microphone timeout will be rescheduled in all error
cases.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Invert logic of check in arizona_hpdet_do_id</title>
<updated>2019-12-09T11:18:15Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3dfa743dcd2e39064475ff7f622d05db61b65375'/>
<id>urn:sha1:3dfa743dcd2e39064475ff7f622d05db61b65375</id>
<content type='text'>
Invert the check of hpdet_acc_id at the top of arizona_hpdet_do_id to
reduce the identation within the function.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Remove excessive WARN_ON</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8267ebcc46176d90b7b169440ebbc890e09a5010'/>
<id>urn:sha1:8267ebcc46176d90b7b169440ebbc890e09a5010</id>
<content type='text'>
A WARN_ON is very strong for simply finding a button that is out of
range, downgrade this to a simple error message in the log.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Remove unnecessary sets of ACCDET_MODE</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f4ba6c0ba762e10b0bad42b5d28f7e2ab1fe5ff9'/>
<id>urn:sha1:f4ba6c0ba762e10b0bad42b5d28f7e2ab1fe5ff9</id>
<content type='text'>
arizona_start_mic sets ACCDET_MODE as required for the microphone
detection as such it is redundant to set this outside of this function.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Tidy up transition from mic to headphone detect</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d5aa46ddf9ed7cf0d7ea0b86bec20412733ac870'/>
<id>urn:sha1:d5aa46ddf9ed7cf0d7ea0b86bec20412733ac870</id>
<content type='text'>
Moving from microphone detection to headphone detection is done fairly
haphazardly at the moment, sometimes calling arizona_stop_mic at the
call site sometimes relying on a call inside arizona_identify_headphone.
Simplify all this and always call arizona_stop_mic at the top of
arizona_identify_headphone.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Clear jack status regardless of detection type</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac7614fab9dd1054ec6bd082f02a436bb5cb082f'/>
<id>urn:sha1:ac7614fab9dd1054ec6bd082f02a436bb5cb082f</id>
<content type='text'>
It makes sense to clear the internal state of the jack detection
regardless of if the headphone detect based accessory detection or
the normal microphone detect based flow is used.

No issues are currently known because of this but the change makes
more logical sense and eases future refactoring of the code.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Move pdata extraction to probe</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=be87cb72bf7513fb92fa0e9e4ae83f958c73c042'/>
<id>urn:sha1:be87cb72bf7513fb92fa0e9e4ae83f958c73c042</id>
<content type='text'>
It makes no sense to be extracting values from pdata for the first time
in the jack detection handler function, move this to probe time where it
belongs.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
<entry>
<title>extcon: arizona: Make rev A register sequences atomic</title>
<updated>2019-12-09T11:18:14Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.cirrus.com</email>
</author>
<published>2019-12-09T11:09:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b82f871a335a8b0de178ace526c847183d17f66d'/>
<id>urn:sha1:b82f871a335a8b0de178ace526c847183d17f66d</id>
<content type='text'>
The special register sequences that are applied for rev A of wm5102
should be applied atomically with respect to any other register writes.
Use regmap_multi_reg_write to ensure all writes happen under the regmap
lock.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Signed-off-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
</content>
</entry>
</feed>
