<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/mhi, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-10-07T05:53:19Z</updated>
<entry>
<title>drivers: net: mhi: fix error path in mhi_net_newlink</title>
<updated>2021-10-07T05:53:19Z</updated>
<author>
<name>Daniele Palmas</name>
</author>
<published>2021-09-24T09:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7d4cb29f556949f6dce60ead930ce207717054b'/>
<id>urn:sha1:a7d4cb29f556949f6dce60ead930ce207717054b</id>
<content type='text'>
commit 4526fe74c3c5095cc55931a3a6fb4932f9e06002 upstream.

Fix double free_netdev when mhi_prepare_for_transfer fails.

Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Daniele Palmas &lt;dnlplm@gmail.com&gt;
Reviewed-by: Manivannan Sadhasivam &lt;mani@kernel.org&gt;
Reviewed-by: Loic Poulain &lt;loic.poulain@linaro.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Revert "net: really fix the build..."</title>
<updated>2021-08-26T18:08:32Z</updated>
<author>
<name>Kalle Valo</name>
</author>
<published>2021-08-26T17:28:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ebc2758d0bbed951511d1709be0717178ec2660'/>
<id>urn:sha1:9ebc2758d0bbed951511d1709be0717178ec2660</id>
<content type='text'>
This reverts commit ce78ffa3ef1681065ba451cfd545da6126f5ca88.

Wren and Nicolas reported that ath11k was failing to initialise QCA6390
Wi-Fi 6 device with error:

qcom_mhi_qrtr: probe of mhi0_IPCR failed with error -22

Commit ce78ffa3ef16 ("net: really fix the build..."), introduced in
v5.14-rc5, caused this regression in qrtr. Most likely all ath11k
devices are broken, but I only tested QCA6390. Let's revert the broken
commit so that ath11k works again.

Reported-by: Wren Turkal &lt;wt@penguintechs.org&gt;
Reported-by: Nicolas Schichan &lt;nschichan@freebox.fr&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210826172816.24478-1-kvalo@codeaurora.org
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: really fix the build...</title>
<updated>2021-08-03T10:14:03Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2021-08-03T10:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ce78ffa3ef1681065ba451cfd545da6126f5ca88'/>
<id>urn:sha1:ce78ffa3ef1681065ba451cfd545da6126f5ca88</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>wwan: core: add WWAN common private data for netdev</title>
<updated>2021-06-22T17:01:17Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2021-06-21T22:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=699409240389c2994e5fa1cb7d7599129bc7cfdf'/>
<id>urn:sha1:699409240389c2994e5fa1cb7d7599129bc7cfdf</id>
<content type='text'>
The WWAN core not only multiplex the netdev configuration data, but
process it too, and needs some space to store its private data
associated with the netdev. Add a structure to keep common WWAN core
data. The structure will be stored inside the netdev private data before
WWAN driver private data and have a field to make it easier to access
the driver data. Also add a helper function that simplifies drivers
access to their data.

At the moment we use the common WWAN private data to store the WWAN data
link (channel) id at the time the link is created, and report it back to
user using the .fill_info() RTNL callback. This should help the user to
be aware which network interface is bound to which WWAN device data
channel.

Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
CC: M Chetan Kumar &lt;m.chetan.kumar@intel.com&gt;
CC: Intel Corporation &lt;linuxwwan@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>wwan: core: support default netdev creation</title>
<updated>2021-06-22T17:01:16Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2021-06-21T22:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca374290aaade741a4781ae5f6e1ba7515e4e5fa'/>
<id>urn:sha1:ca374290aaade741a4781ae5f6e1ba7515e4e5fa</id>
<content type='text'>
Most, if not each WWAN device driver will create a netdev for the
default data channel. Therefore, add an option for the WWAN netdev ops
registration function to create a default netdev for the WWAN device.

A WWAN device driver should pass a default data channel link id to the
ops registering function to request the creation of a default netdev, or
a special value WWAN_NO_DEFAULT_LINK to inform the WWAN core that the
default netdev should not be created.

For now, only wwan_hwsim utilize the default link creation option. Other
drivers will be reworked next.

Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
CC: M Chetan Kumar &lt;m.chetan.kumar@intel.com&gt;
CC: Intel Corporation &lt;linuxwwan@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>wwan: core: no more hold netdev ops owning module</title>
<updated>2021-06-22T17:01:16Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2021-06-21T22:50:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f0248ea476ee59d336d7c8bf1a5d0919d93d030'/>
<id>urn:sha1:9f0248ea476ee59d336d7c8bf1a5d0919d93d030</id>
<content type='text'>
The WWAN netdev ops owner holding was used to protect from the
unexpected memory disappear. This approach causes a dependency cycle
(driver -&gt; core -&gt; driver) and effectively prevents a WWAN driver
unloading. E.g. WWAN hwsim could not be unloaded until all simulated
devices are removed:

~# modprobe wwan_hwsim devices=2
~# lsmod | grep wwan
wwan_hwsim             16384  2
wwan                   20480  1 wwan_hwsim
~# rmmod wwan_hwsim
rmmod: ERROR: Module wwan_hwsim is in use
~# echo &gt; /sys/kernel/debug/wwan_hwsim/hwsim0/destroy
~# echo &gt; /sys/kernel/debug/wwan_hwsim/hwsim1/destroy
~# lsmod | grep wwan
wwan_hwsim             16384  0
wwan                   20480  1 wwan_hwsim
~# rmmod wwan_hwsim

For a real device driver this will cause an inability to unload module
until a served device is physically detached.

Since the last commit we are removing all child netdev(s) when a driver
unregister the netdev ops. This allows us to permit the driver
unloading, since any sane driver will call ops unregistering on a device
deinitialization. So, remove the holding of an ops owner to make it
easier to unload a driver module. The owner field has also beed removed
from the ops structure as there are no more users of this field.

Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Reviewed-by: Loic Poulain &lt;loic.poulain@linaro.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2021-06-19T02:47:02Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2021-06-19T02:47:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adc2e56ebe6377f5c032d96aee0feac30a640453'/>
<id>urn:sha1:adc2e56ebe6377f5c032d96aee0feac30a640453</id>
<content type='text'>
Trivial conflicts in net/can/isotp.c and
tools/testing/selftests/net/mptcp/mptcp_connect.sh

scaled_ppm_to_ppb() was moved from drivers/ptp/ptp_clock.c
to include/linux/ptp_clock_kernel.h in -next so re-apply
the fix there.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: mhi_net: make mhi_wwan_ops static</title>
<updated>2021-06-16T07:38:02Z</updated>
<author>
<name>Jiapeng Chong</name>
</author>
<published>2021-06-16T05:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d0bbbf22b744153044a5e98c19df866dfbd18ea'/>
<id>urn:sha1:1d0bbbf22b744153044a5e98c19df866dfbd18ea</id>
<content type='text'>
This symbol is not used outside of net.c, so marks it static.

Fix the following sparse warning:

drivers/net/mhi/net.c:385:23: warning: symbol 'mhi_wwan_ops' was not
declared. Should it be static?

Reported-by: Abaci Robot &lt;abaci@linux.alibaba.com&gt;
Signed-off-by: Jiapeng Chong &lt;jiapeng.chong@linux.alibaba.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mhi_net: Update the transmit handler prototype</title>
<updated>2021-06-14T21:13:09Z</updated>
<author>
<name>Subash Abhinov Kasiviswanathan</name>
</author>
<published>2021-06-14T21:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2214fb53006e6cfa6371b706070cb99794c68c3b'/>
<id>urn:sha1:2214fb53006e6cfa6371b706070cb99794c68c3b</id>
<content type='text'>
Update the function prototype of mhi_ndo_xmit to match
ndo_start_xmit. This otherwise leads to run time failures when
CFI is enabled in kernel.

Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Subash Abhinov Kasiviswanathan &lt;subashab@codeaurora.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mhi_net: Register wwan_ops for link creation</title>
<updated>2021-06-12T20:16:45Z</updated>
<author>
<name>Loic Poulain</name>
</author>
<published>2021-06-12T08:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13adac032982c61bb590669e8e87e51558917ca1'/>
<id>urn:sha1:13adac032982c61bb590669e8e87e51558917ca1</id>
<content type='text'>
Register wwan_ops for link management via wwan rtnetlink. This is
only basic support for now, since we only support creating one
single link (link-0), but is useful to validate new wwan rtnetlink
interface.

For backward compatibity support, we still register a default netdev
at probe time, except if 'create_default_iface' module parameter is
set to false.

This has been tested with iproute2 and mbimcli:
$ ip link add dev wwan0-0 parentdev-name wwan0 type wwan linkid 0
$ mbimcli -p -d /dev/wwan0p2MBIM --connect apn=free
$ ip link set dev wwan0-0 up
$ ip addr add dev wwan0 ${IP}
$ ip route replace default via ${IP}
$ ping 8.8.8.8
...

Signed-off-by: Loic Poulain &lt;loic.poulain@linaro.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
