<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net/wireless/microchip, branch v5.14</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.14</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.14'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2021-06-15T13:35:18Z</updated>
<entry>
<title>wilc1000: Fix clock name binding</title>
<updated>2021-06-15T13:35:18Z</updated>
<author>
<name>Tudor Ambarus</name>
<email>tudor.ambarus@microchip.com</email>
</author>
<published>2021-04-28T02:54:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d4f23164cff08de41abfd95ad8610b94137cdf9c'/>
<id>urn:sha1:d4f23164cff08de41abfd95ad8610b94137cdf9c</id>
<content type='text'>
Documentation/devicetree/bindings/net/wireless/microchip,wilc1000.yaml
requires an "rtc" clock name.
drivers/net/wireless/microchip/wilc1000/sdio.c is using "rtc" clock name
as well. Comply with the binding in wilc1000/spi.c too.

Fixes: 854d66df74ae ("staging: wilc1000: look for rtc_clk clock in spi mode")
Signed-off-by: Tudor Ambarus &lt;tudor.ambarus@microchip.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210428025445.81953-1-tudor.ambarus@microchip.com
</content>
</entry>
<entry>
<title>wilc1000: Remove duplicate struct declaration</title>
<updated>2021-04-18T06:33:09Z</updated>
<author>
<name>Wan Jiabing</name>
<email>wanjiabing@vivo.com</email>
</author>
<published>2021-03-31T02:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=444a9af68b5cc2ca33d073605f747e0f00d6e7b9'/>
<id>urn:sha1:444a9af68b5cc2ca33d073605f747e0f00d6e7b9</id>
<content type='text'>
struct wilc is declared twice. One has been declared
at 352nd line. Remove the duplicate.

Signed-off-by: Wan Jiabing &lt;wanjiabing@vivo.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210331023557.2804128-3-wanjiabing@vivo.com
</content>
</entry>
<entry>
<title>wilc1000: fix a loop timeout condition</title>
<updated>2021-04-17T17:54:22Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2021-03-19T14:47:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2f51061edab942988b1a3c057d21228e938603db'/>
<id>urn:sha1:2f51061edab942988b1a3c057d21228e938603db</id>
<content type='text'>
If the loop fails, the "while(trials--) {" loop will exit with "trials"
set to -1.  The test for that expects it to end with "trials" set to 0
so the warning message will not be printed.

Fix this by changing from a post-op to a pre-op.  This does mean that
we only make 99 attempts instead of 100 but that's okay.

Fixes: f135a1571a05 ("wilc1000: Support chip sleep over SPI")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Ajay Singh &lt;ajay.kathat@microchip.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/YFS5gx/gi70zlIaO@mwanda
</content>
</entry>
<entry>
<title>wilc1000: Bring MAC address setting in line with typical Linux behavior</title>
<updated>2021-04-17T17:51:06Z</updated>
<author>
<name>David Mosberger-Tang</name>
<email>davidm@egauge.net</email>
</author>
<published>2021-03-03T19:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a381b78a1598dde34a6e40dae2842024308a6ef2'/>
<id>urn:sha1:a381b78a1598dde34a6e40dae2842024308a6ef2</id>
<content type='text'>
Linux network drivers normally disallow changing the MAC address when
the interface is up.  This driver has been different in that it allows
to change the MAC address *only* when it's up.  This patch brings
wilc1000 behavior more in line with other network drivers.  We could
have replaced wilc_set_mac_addr() with eth_mac_addr() but that would
break existing documentation on how to change the MAC address.
Likewise, return -EADDRNOTAVAIL (not -EINVAL) when the specified MAC
address is invalid or unavailable.

Signed-off-by: David Mosberger-Tang &lt;davidm@egauge.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210303194846.1823596-1-davidm@egauge.net
</content>
</entry>
<entry>
<title>wilc1000: Add support for enabling CRC</title>
<updated>2021-04-17T17:47:40Z</updated>
<author>
<name>David Mosberger-Tang</name>
<email>davidm@egauge.net</email>
</author>
<published>2021-02-27T17:31:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c872e7ae056f16e27311fb30d637032cc3b1cb46'/>
<id>urn:sha1:c872e7ae056f16e27311fb30d637032cc3b1cb46</id>
<content type='text'>
The driver so far has always disabled CRC protection.  This means any
data corruption that occurrs during the SPI transfers could go
undetected.  This patch adds module parameters enable_crc7 and
enable_crc16 to selectively turn on CRC7 (for command transfers) and
CRC16 (for data transfers), respectively.

The default configuration remains unchanged, with both CRC7 and CRC16
off.

The performance impact of CRC was measured by running ttcp -t four
times in a row on a SAMA5 device:

 CRC7 CRC16 Throughput: Standard deviation:
 ---- ----- ----------- -------------------
  off   off 1720 	+/- 48 KB/s
   on   off 1658 	+/- 58 KB/s
   on    on 1579 	+/- 84 KB/s

Signed-off-by: David Mosberger-Tang &lt;davidm@egauge.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210227172818.1711071-4-davidm@egauge.net
</content>
</entry>
<entry>
<title>wilc1000: Check for errors at end of DMA write</title>
<updated>2021-04-17T17:47:30Z</updated>
<author>
<name>David Mosberger-Tang</name>
<email>davidm@egauge.net</email>
</author>
<published>2021-02-27T17:29:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ce3b933832b6286d181c30f646449d6ccc2a2c8c'/>
<id>urn:sha1:ce3b933832b6286d181c30f646449d6ccc2a2c8c</id>
<content type='text'>
After a DMA write to the WILC chip, check for and report any errors.

This is based on code from the wilc driver in the linux-at91
repository.

Signed-off-by: David Mosberger-Tang &lt;davidm@egauge.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210227172818.1711071-3-davidm@egauge.net
</content>
</entry>
<entry>
<title>wilc1000: Introduce symbolic names for SPI protocol register</title>
<updated>2021-04-17T17:47:18Z</updated>
<author>
<name>David Mosberger-Tang</name>
<email>davidm@egauge.net</email>
</author>
<published>2021-02-27T17:29:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5ee2d9dd73fc7b371d208bea0971f81585b5ad3d'/>
<id>urn:sha1:5ee2d9dd73fc7b371d208bea0971f81585b5ad3d</id>
<content type='text'>
The WILC1000 protocol control register has bits for enabling the CRCs
(CRC7 for commands and CRC16 for data) and to set the data packet
size.  Define symbolic names for those so the code is more easily
understood.

Signed-off-by: David Mosberger-Tang &lt;davidm@egauge.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210227172818.1711071-2-davidm@egauge.net
</content>
</entry>
<entry>
<title>wilc1000: Make SPI transfers work at 48MHz</title>
<updated>2021-04-17T17:47:16Z</updated>
<author>
<name>David Mosberger-Tang</name>
<email>davidm@egauge.net</email>
</author>
<published>2021-02-27T17:29:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f2131fa516b883841a593fc877dede57edd1ab0e'/>
<id>urn:sha1:f2131fa516b883841a593fc877dede57edd1ab0e</id>
<content type='text'>
For CMD_SINGLE_READ and CMD_INTERNAL_READ, WILC may insert one or more
zero bytes between the command response and the DATA Start tag (0xf3).
This behavior appears to be undocumented in "ATWILC1000 USER GUIDE"
(https://tinyurl.com/4hhshdts) but we have observed 1-4 zero bytes
when the SPI bus operates at 48MHz and none when it operates at 1MHz.

This code is derived from the equivalent code of the wilc driver in
the linux-at91 repository.

Signed-off-by: David Mosberger-Tang &lt;davidm@egauge.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210227172818.1711071-1-davidm@egauge.net
</content>
</entry>
<entry>
<title>wilc1000: use wilc handler as cookie in request_threaded_irq()</title>
<updated>2021-03-15T08:26:28Z</updated>
<author>
<name>Ajay Singh</name>
<email>ajay.kathat@microchip.com</email>
</author>
<published>2021-02-25T04:23:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=50773696301bdd083af57bad82bb99779719f0c7'/>
<id>urn:sha1:50773696301bdd083af57bad82bb99779719f0c7</id>
<content type='text'>
Use same cookie for request_threaded_irq() &amp; free_irq() to properly free
IRQ during module unload. free_irq() already uses *wilc* handler so the
changes are required for request_threaded_irq().

Signed-off-by: Ajay Singh &lt;ajay.kathat@microchip.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210225042302.17048-1-ajay.kathat@microchip.com
</content>
</entry>
<entry>
<title>wilc1000: write value to WILC_INTR2_ENABLE register</title>
<updated>2021-03-15T08:25:16Z</updated>
<author>
<name>Marcus Folkesson</name>
<email>marcus.folkesson@gmail.com</email>
</author>
<published>2021-02-24T16:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e21b6e5a54628cd3935f200049d4430c25c54e03'/>
<id>urn:sha1:e21b6e5a54628cd3935f200049d4430c25c54e03</id>
<content type='text'>
Write the value instead of reading it twice.

Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")
Signed-off-by: Marcus Folkesson &lt;marcus.folkesson@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210224163706.519658-1-marcus.folkesson@gmail.com
</content>
</entry>
</feed>
