<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/sound/soc/apple/Kconfig, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/sound/soc/apple/Kconfig?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/sound/soc/apple/Kconfig?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-09-01T11:49:21Z</updated>
<entry>
<title>ASoC: apple: mca: Unselect COMMON_CLK in Kconfig</title>
<updated>2022-09-01T11:49:21Z</updated>
<author>
<name>Martin Povišer</name>
<email>povik+lin@cutebit.org</email>
</author>
<published>2022-09-01T11:34:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7d2497b7fd3bf45706360bfe289f19d61d37f536'/>
<id>urn:sha1:7d2497b7fd3bf45706360bfe289f19d61d37f536</id>
<content type='text'>
The MCA driver selects COMMON_CLK, which leads to misconfiguration
on platforms with HAVE_LEGACY_CLK (under compile test). Kconfig catches
the conflict with the following warning:

  WARNING: unmet direct dependencies detected for COMMON_CLK
  Depends on [n]: !HAVE_LEGACY_CLK [=y]
  Selected by [m]:
  - SND_SOC_APPLE_MCA [=m] &amp;&amp; SOUND [=m] &amp;&amp; !UML &amp;&amp; SND [=m] &amp;&amp;
    SND_SOC [=m] &amp;&amp; (ARCH_APPLE || COMPILE_TEST [=y])

Eventually the build fails with errors like:

&gt;&gt; drivers/clk/clk.c:867:6: error: redefinition of 'clk_unprepare'
     867 | void clk_unprepare(struct clk *clk)
         |      ^~~~~~~~~~~~~
   In file included from drivers/clk/clk.c:9:
   include/linux/clk.h:303:20: note: previous definition of 'clk_unprepare' with type 'void(struct clk *)'
     303 | static inline void clk_unprepare(struct clk *clk)
         |                    ^~~~~~~~~~~~~

which appears to be because COMMON_CLK is selected but HAVE_CLK_PREPARE
is not. In the end it seems we had no business selecting COMMON_CLK from
an unrelated driver like that, so remove the selection. The linux/clk.h
API is there anyway.

Fixes: 3df5d0d97289 ("ASoC: apple: mca: Start new platform driver")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Martin Povišer &lt;povik+lin@cutebit.org&gt;
Link: https://lore.kernel.org/r/20220901113415.27449-1-povik+lin@cutebit.org
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ASoC: apple: mca: Start new platform driver</title>
<updated>2022-08-25T12:51:34Z</updated>
<author>
<name>Martin Povišer</name>
<email>povik+lin@cutebit.org</email>
</author>
<published>2022-08-24T16:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3df5d0d972893d3c0df5aead8152fe1ad48ef45c'/>
<id>urn:sha1:3df5d0d972893d3c0df5aead8152fe1ad48ef45c</id>
<content type='text'>
Add ASoC platform driver for the MCA peripheral found on Apple M1 and
other chips.

Signed-off-by: Martin Povišer &lt;povik+lin@cutebit.org&gt;
Link: https://lore.kernel.org/r/20220824160715.95779-4-povik+lin@cutebit.org
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
