On Fri, 13 Mar 2020 16:54:51 +0530
Shreeya Patel wrote:
> Replace calls to kmalloc followed by a memcpy with a direct call to
> kmemdup.
>
> The Coccinelle semantic patch used to make this change is as follows:
> @@
> expression from,to,size,flag;
> statement S;
> @@
>
> - to = \(kmalloc\|kzal
On Fri, 13 Mar 2020 15:59:12 +0530
Shreeya Patel wrote:
> Remove unnecessary if and else conditions since both are leading to the
> initialization of "phtpriv->ampdu_enable" with the same value.
> Also, remove the unnecessary else-if condition since it does nothing.
>
> Signed-off-by: Shreeya Pa
In order to simplify driver code and decrease a bit LOC add new
function 'mt7621_phy_rmw' where clear and set bits are passed as
arguments.
Signed-off-by: Sergio Paracuellos
---
.../staging/mt7621-pci-phy/pci-mt7621-phy.c | 158 --
1 file changed, 71 insertions(+), 87 deletions
On Sat, 2020-03-14 at 16:58 +0530, Shreeya Patel wrote:
> This could be:
> > if ((!(phtpriv->ampdu_enable) && pregistrypriv->ampdu_enable ==
> > 1)) ||
> > pregistrypriv->ampdu_enable == 2)
> > phtpriv->ampdu_enable = true;
> >
> > Though it is probably more sensible to jus
Hi Sergio,
On 13/3/20 3:45 pm, Sergio Paracuellos wrote:
On Fri, Mar 13, 2020 at 4:51 AM Greg Ungerer wrote:
[snip]
I applied the patches to the staging git tree for testing.
I have seen a couple of different problems on boot up:
...
rt2880-pinmux pinctrl: pcie is already enabled
mt7621-pci
Hi Greg,
On Sun, Mar 15, 2020 at 1:32 PM Greg Ungerer wrote:
>
> Hi Sergio,
>
> On 13/3/20 3:45 pm, Sergio Paracuellos wrote:
> > On Fri, Mar 13, 2020 at 4:51 AM Greg Ungerer wrote:
> > [snip]
> >>
> >> I applied the patches to the staging git tree for testing.
> >> I have seen a couple of diffe
Hi,
On Sat, Mar 14, 2020 at 11:42 AM Sergio Paracuellos
wrote:
[snip]
> >
> > Changes in v4:
> > * Make use of 'devm_gpiod_get_index_optional' instead of
> > 'devm_gpiod_get_index'.
> > * Use 'dev_err' instead of 'dev_notice' and return ERR_PTR if
> > 'devm_gpiod_get_index_optional' fails.
> >
Due to unknown reason, H6 needs larger intraprediction buffer for 4K
videos than other SoCs. This was discovered by playing 4096x2304 video,
which is maximum what H6 VPU is supposed to support.
Fixes: 03e612e701a6 ("media: cedrus: Fix H264 4k support")
Signed-off-by: Jernej Skrabec
---
drivers/s