From: Jérôme Pouiller
Some structs members were not properly aligned.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bus_sdio.c | 12 ++---
drivers/staging/wfx/bus_spi.c | 12 ++---
drivers/staging/wfx/debug.c| 2 +-
drivers/staging/wfx/fwio.c | 6 +--
d to write code on 100 columns.
This patch just unify the code to use 100 columns.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bh.c | 12 ++---
drivers/staging/wfx/bus.h| 6 +--
drivers/staging/wfx/bus_sdio.c | 12 ++---
drivers/staging/wfx/bus_spi.c| 24 +++-
d to write code on 100 columns.
This patch just unify the code to use 100 columns in every comments.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bh.c | 26 ++-
drivers/staging/wfx/bus_spi.c | 14 ++---
drivers/staging/wfx/data_rx.c | 4 ++-
From: Jérôme Pouiller
All the types related to a driver should use the same prefix.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bh.c | 12 +--
drivers/staging/wfx/data_rx.c | 2 +-
drivers/staging/wfx/data_rx.h | 4 +-
drivers/staging/wfx/data_tx.c
From: Jérôme Pouiller
All the types related to a driver should use the same prefix.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bus.h | 2 +-
drivers/staging/wfx/bus_sdio.c | 2 +-
drivers/staging/wfx/bus_spi.c | 2 +-
drivers/staging/wfx/data_tx.c | 38
From: Jérôme Pouiller
tx_policy_is_equal() was the only function from data_tx.c without the
prefix wfx_.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/data_tx.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/wfx/data_tx.c
From: Jérôme Pouiller
All the functions related to a driver should use the same prefix.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bh.c | 8 +--
drivers/staging/wfx/fwio.c | 78 ++--
drivers/staging/wfx/hif_tx.c | 2 +-
drivers/staging/wfx/hwio.c | 135
From: Jérôme Pouiller
All the functions related to a driver should use the same prefix.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/debug.c | 6 +++---
drivers/staging/wfx/debug.h | 6 +++---
drivers/staging/wfx/hif_tx.c | 8
3 files changed, 10 insertions(+), 10
From: Jérôme Pouiller
All the functions related to a driver should use the same prefix.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/data_tx.c| 2 +-
drivers/staging/wfx/debug.c | 2 +-
drivers/staging/wfx/hif_rx.c | 103 +-
From: Jérôme Pouiller
The prefix 'ieee80211' is reserved for mac80211. It should not been
used.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/scan.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c
index
From: Jérôme Pouiller
The prefix 'ieee80211' is reserved for mac80211. It should not been
used.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/data_tx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wfx/data_tx.c
From: Jérôme Pouiller
The hardware fills struct hif_ind_startup with little endian values. So,
declare it with little endian fields.
It is now a bit more verbose to access to fields of struct
hif_ind_startup, but it is less confusing.
Signed-off-by: Jérôme Pouiller
---
From: Jérôme Pouiller
Magic values are not recommended.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/hif_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c
index 6963b54d5593..5e675d2c3e82 100644
---
From: Jérôme Pouiller
Magic values are not recommended.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/hwio.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c
index a2a37efc51a6..977b9325f496 100644
---
From: Jérôme Pouiller
It "IS_ALIGNED(ptr, 4)" is more explicit than "ptr & 3".
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bus_sdio.c | 9 +
drivers/staging/wfx/hwio.c | 5 +++--
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git
From: Jérôme Pouiller
In the old days, this file was shared with other projects. Obviously,
this "#ifdef __KERNEL__" have no reasons to be in the kernel.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/hif_api_general.h | 6 --
1 file changed, 6 deletions(-)
diff --git
From: Jérôme Pouiller
Braces are not necessary for single statement blocks
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c
index
From: Jérôme Pouiller
I have got questions about this line from several reviewers. A comment
is definitively welcome.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/wfx/Makefile b/drivers/staging/wfx/Makefile
From: Jérôme Pouiller
Using DMA with stack allocated buffers is not supported, whatever the
value of CONFIG_VMAP_STACK.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/hwio.c | 12
drivers/staging/wfx/hwio.h | 4
2 files changed, 4 insertions(+), 12 deletions(-)
From: Jérôme Pouiller
Each headers files should include every types it needs to compile (ie.
"gcc $CFLAGS -xc file.h" should compile)
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/bh.h | 1 +
drivers/staging/wfx/hif_tx.h | 4
drivers/staging/wfx/hif_tx_mib.h | 7
From: Jérôme Pouiller
Apache-2.0 is not allowed in the kernel.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/hif_api_cmd.h | 2 +-
drivers/staging/wfx/hif_api_general.h | 2 +-
drivers/staging/wfx/hif_api_mib.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff
From: Jérôme Pouiller
Most of the patches of this series are the result of the review process on
linux-wireless[1].
The patches 1 to 25 are cosmetics. The last 3 patches are not fully backward
compatible. I believe it is not a problem in the staging area.
[1]:
From: Jérôme Pouiller
License was missing in Kconfig.
Makefile license was GPL-2.0 while rest of the driver use GPL-2.0-only.
Signed-off-by: Jérôme Pouiller
---
drivers/staging/wfx/Kconfig | 1 +
drivers/staging/wfx/Makefile | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff
On Wednesday 12 January 2022 18:48:48 CET Pali Rohár wrote:
> CAUTION: This email originated from outside of the organization. Do not click
> links or open attachments unless you recognize the sender and know the
> content is safe.
>
>
> On Wednesday 12 January 2022 17:45:45 Jérôme Pouiller
On Wednesday 12 January 2022 17:45:45 Jérôme Pouiller wrote:
> On Wednesday 12 January 2022 12:43:32 CET Pali Rohár wrote:
> >
> > On Wednesday 12 January 2022 12:18:58 Jérôme Pouiller wrote:
> > > On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote:
> > > > On Tuesday 11 January 2022
On Wednesday 12 January 2022 12:43:32 CET Pali Rohár wrote:
>
> On Wednesday 12 January 2022 12:18:58 Jérôme Pouiller wrote:
> > On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote:
> > > On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote:
> > > > +static const struct sdio_device_id
On Wed, 12 Jan 2022 at 12:43, Pali Rohár wrote:
>
> On Wednesday 12 January 2022 12:18:58 Jérôme Pouiller wrote:
> > On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote:
> > > On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote:
> > > > +static const struct sdio_device_id
Jérôme Pouiller writes:
> On Wednesday 12 January 2022 08:49:54 CET Kalle Valo wrote:
>> Jerome Pouiller writes:
>>
>> > From: Jérôme Pouiller
>> >
>> > Signed-off-by: Jérôme Pouiller
>> > ---
>> > .../bindings/net/wireless/silabs,wfx.yaml | 125 ---
>> > drivers/staging/wfx/Kconfig
red in
>> the DT.
>>
>> So, to apply the quirks necessary for the Silabs WF200, we rely on the
>> DT rather than on the SDIO VID/PID.
>>
>> Signed-off-by: Jérôme Pouiller
>
> I guess the series is getting close to getting queued up?
>
> As an option to mak
On Wednesday 12 January 2022 13:06:17 Greg Kroah-Hartman wrote:
> On Wed, Jan 12, 2022 at 12:43:32PM +0100, Pali Rohár wrote:
> > Btw, is there any project which maintains SDIO ids, like there is
> > pci-ids.ucw.cz for PCI or www.linux-usb.org/usb-ids.html for USB?
>
> Both of those projects have
On Wed, Jan 12, 2022 at 12:43:32PM +0100, Pali Rohár wrote:
> Btw, is there any project which maintains SDIO ids, like there is
> pci-ids.ucw.cz for PCI or www.linux-usb.org/usb-ids.html for USB?
Both of those projects have nothing to do with the kernel drivers or
values at all, they are only for
On Wednesday 12 January 2022 12:18:58 Jérôme Pouiller wrote:
> On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote:
> > On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote:
> > > +static const struct sdio_device_id wfx_sdio_ids[] = {
> > > + { SDIO_DEVICE(SDIO_VENDOR_ID_SILABS,
On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote:
> On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote:
> > +static const struct sdio_device_id wfx_sdio_ids[] = {
> > + { SDIO_DEVICE(SDIO_VENDOR_ID_SILABS, SDIO_DEVICE_ID_SILABS_WF200) },
> > + { },
> > +};
>
> Hello! Is
necessary for the Silabs WF200, we rely on the
> DT rather than on the SDIO VID/PID.
>
> Signed-off-by: Jérôme Pouiller
I guess the series is getting close to getting queued up?
As an option to make sure $subject patch doesn't cause a problem for
that, I can queue it up and send it fo
On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote:
> +static const struct sdio_device_id wfx_sdio_ids[] = {
> + { SDIO_DEVICE(SDIO_VENDOR_ID_SILABS, SDIO_DEVICE_ID_SILABS_WF200) },
> + { },
> +};
Hello! Is this table still required?
> +MODULE_DEVICE_TABLE(sdio, wfx_sdio_ids);
> +
[...]
> +static const struct of_device_id wfx_sdio_of_match[] = {
> + { .compatible = "silabs,wf200",.data = _wf200 },
> + { .compatible = "silabs,brd4001a", .data = _brd4001a },
> + { .compatible = "silabs,brd8022a", .data = _brd8022a },
> + { .compatible =
On Tuesday 11 January 2022 23:19:56 CET Rob Herring wrote:
> On Tue, Jan 11, 2022 at 06:14:02PM +0100, Jerome Pouiller wrote:
> > From: Jérôme Pouiller
> >
> > Prepare the inclusion of the wfx driver in the kernel.
> >
> > Signed-off-by: Jérôme Pouiller
> > ---
> >
On Wednesday 12 January 2022 08:49:54 CET Kalle Valo wrote:
> Jerome Pouiller writes:
>
> > From: Jérôme Pouiller
> >
> > Signed-off-by: Jérôme Pouiller
> > ---
> > .../bindings/net/wireless/silabs,wfx.yaml | 125 ---
> > drivers/staging/wfx/Kconfig | 8 -
> >
Jerome Pouiller writes:
> From: Jérôme Pouiller
>
> Signed-off-by: Jérôme Pouiller
> ---
> .../bindings/net/wireless/silabs,wfx.yaml | 125 ---
> drivers/staging/wfx/Kconfig | 8 -
> drivers/staging/wfx/Makefile | 25 -
> drivers/staging/wfx/bh.c
On Tue, Jan 11, 2022 at 06:14:02PM +0100, Jerome Pouiller wrote:
> From: Jérôme Pouiller
>
> Prepare the inclusion of the wfx driver in the kernel.
>
> Signed-off-by: Jérôme Pouiller
> ---
> .../bindings/net/wireless/silabs,wfx.yaml | 138 ++
> 1 file changed, 138
changed, 138 insertions(+)
> create mode 100644
> Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings
From: Jérôme Pouiller
The wfx driver is now mature enough to leave the staging area.
Signed-off-by: Jérôme Pouiller
---
MAINTAINERS | 3 ++-
drivers/net/wireless/Kconfig | 1 +
drivers/net/wireless/Makefile| 1 +
drivers/net/wireless/silabs/Kconfig
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/traces.h | 496 +++
1 file changed, 496 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/traces.h
diff --git a/drivers/net/wireless/silabs/wfx/traces.h
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/debug.c | 331
drivers/net/wireless/silabs/wfx/debug.h | 19 ++
2 files changed, 350 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/debug.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/scan.c | 144 +
drivers/net/wireless/silabs/wfx/scan.h | 22
2 files changed, 166 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/scan.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/sta.c | 798 ++
drivers/net/wireless/silabs/wfx/sta.h | 67 +++
2 files changed, 865 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/sta.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/data_tx.c | 572 ++
drivers/net/wireless/silabs/wfx/data_tx.h | 66 +++
2 files changed, 638 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/data_tx.c
create mode
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/queue.c | 298
drivers/net/wireless/silabs/wfx/queue.h | 44
2 files changed, 342 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/queue.c
create mode
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/data_rx.c | 92 +++
drivers/net/wireless/silabs/wfx/data_rx.h | 17 +
2 files changed, 109 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/data_rx.c
create mode
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/hif_rx.c | 392 +++
drivers/net/wireless/silabs/wfx/hif_rx.h | 17 +
2 files changed, 409 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/hif_rx.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/key.c | 227 ++
drivers/net/wireless/silabs/wfx/key.h | 19 +++
2 files changed, 246 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/key.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/hif_tx.c | 492 +++
drivers/net/wireless/silabs/wfx/hif_tx.h | 61 +++
drivers/net/wireless/silabs/wfx/hif_tx_mib.c | 308
drivers/net/wireless/silabs/wfx/hif_tx_mib.h
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/hif_api_cmd.h | 554 ++
.../net/wireless/silabs/wfx/hif_api_general.h | 252
drivers/net/wireless/silabs/wfx/hif_api_mib.h | 346 +++
3 files changed, 1152 insertions(+)
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/bh.c | 323 +++
drivers/net/wireless/silabs/wfx/bh.h | 34 +++
2 files changed, 357 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/bh.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/fwio.c | 390 +
drivers/net/wireless/silabs/wfx/fwio.h | 15 +
2 files changed, 405 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/fwio.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/hwio.c | 335 +
drivers/net/wireless/silabs/wfx/hwio.h | 78 ++
2 files changed, 413 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/hwio.c
create mode
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/bus_sdio.c | 283 +
1 file changed, 283 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/bus_sdio.c
diff --git a/drivers/net/wireless/silabs/wfx/bus_sdio.c
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/bus_spi.c | 297 ++
1 file changed, 297 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/bus_spi.c
diff --git a/drivers/net/wireless/silabs/wfx/bus_spi.c
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/bus.h | 36 +++
1 file changed, 36 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/bus.h
diff --git a/drivers/net/wireless/silabs/wfx/bus.h
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/main.c | 485 +
drivers/net/wireless/silabs/wfx/main.h | 42 +++
2 files changed, 527 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/main.c
create mode 100644
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/wfx.h | 166 ++
1 file changed, 166 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/wfx.h
diff --git a/drivers/net/wireless/silabs/wfx/wfx.h
From: Jérôme Pouiller
Signed-off-by: Jérôme Pouiller
---
drivers/net/wireless/silabs/wfx/Kconfig | 13
drivers/net/wireless/silabs/wfx/Makefile | 26
2 files changed, 39 insertions(+)
create mode 100644 drivers/net/wireless/silabs/wfx/Kconfig
create
From: Jérôme Pouiller
Prepare the inclusion of the wfx driver in the kernel.
Signed-off-by: Jérôme Pouiller
---
.../bindings/net/wireless/silabs,wfx.yaml | 138 ++
1 file changed, 138 insertions(+)
create mode 100644
as soon as Kalle will have validated the new format.
[1]: https://lore.kernel.org/linux-firmware/2833354.gXvVfaC4I7@pc-42/
As requested by Kalle[2], I send one file per patch. At the end, all the
patches (or at least the patches 3 to 24) will be squashed (therefore, I
didn't bother to write real
From: Jérôme Pouiller
Note that the values used by Silabs are uncommon. A driver cannot fully
rely on the SDIO PnP. It should also check if the device is declared in
the DT.
So, to apply the quirks necessary for the Silabs WF200, we rely on the
DT rather than on the SDIO VID/PID.
Send DPCD command to downstream before anx7625 power down,
let downstream monitor enter into standby mode.
Signed-off-by: Xin Ji
---
drivers/gpu/drm/bridge/analogix/anx7625.c | 42 +++
1 file changed, 35 insertions(+), 7 deletions(-)
diff --git
Send DPCD command to downstream before anx7625 power down,
let downstream monitor enter into standby mode.
Signed-off-by: Xin Ji
---
drivers/gpu/drm/bridge/analogix/anx7625.c | 40 ---
1 file changed, 35 insertions(+), 5 deletions(-)
diff --git
On Mon, Jan 03, 2022 at 12:11:32PM +0100, Alberto Merciai wrote:
> Replace camelcase field CustomerID to customer_id, compliant
> with linux kernel coding style.
Apologize, don't consider it, wrong branch was used.
Regards,
Alberto Merciai
___
devel
Replace camelcase field CustomerID to customer_id, compliant
with linux kernel coding style.
Signed-off-by: Alberto Merciai
---
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c | 2 +-
drivers/staging/rtl8188eu/hal/usb_halinit.c | 2 +-
drivers/staging/rtl8188eu/include/rtl8188e_hal.h | 2
EID_HT_CAPABILITY,
>sizeof(struct ieee80211_ht_cap),
>(unsigned char *)_capie, pout_len);
> phtpriv->ht_option = 1;
> @@ -1699,13 +1672,13 @@ static void update_ht_cap(struct _adapter *padapter,
> u8 *pie,
Fixed multiple line dereferences
Signed-off-by: Agam Kohli
---
drivers/staging/rtl8712/rtl871x_mlme.c | 125 ++---
1 file changed, 49 insertions(+), 76 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c
b/drivers/staging/rtl8712/rtl871x_mlme.c
index
On Mon, Dec 20, 2021 at 11:01:50AM -0800, Todd Kjos wrote:
> In 4.13, commit 74310e06be4d ("android: binder: Move buffer out of area
> shared with user space")
> fixed a kernel structure visibility issue. As part of that patch,
> sizeof(void *) was used as the buffer
On Mon, Dec 20, 2021 at 11:06:09AM -0800, Todd Kjos wrote:
> On Mon, Dec 20, 2021 at 11:02 AM Todd Kjos wrote:
> >
> > In 4.13, commit 74310e06be4d ("android: binder: Move buffer out of area
> > shared with user space")
> > fixed a kernel structure vi
From: Lee Jones
Supply additional checks in order to prevent unexpected results.
Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
Suggested-by: Dan Carpenter
Signed-off-by: Lee Jones
Signed-off-by: Greg Kroah-Hartman
---
drivers/staging/android/ion/ion.c |6 ++
1 file
From: Lee Jones
Supply additional checks in order to prevent unexpected results.
Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
Suggested-by: Dan Carpenter
Signed-off-by: Lee Jones
Signed-off-by: Greg Kroah-Hartman
---
drivers/staging/android/ion/ion.c |6 ++
1 file
On Tue, Nov 30, 2021 at 10:51:51AM -0800, Todd Kjos wrote:
> This patch is to prepare for an up coming patch where we read
> pre-translated fds from the sender buffer and translate them before
> copying them to the target. It does not change run time.
>
> The patch adds two
On Tue, Nov 30, 2021 at 10:51:49AM -0800, Todd Kjos wrote:
> If a memory copy function fails to copy the whole buffer,
> a positive integar with the remaining bytes is returned.
> In binder_translate_fd_array() this can result in an fd being
> skipped due to the failed copy, but the loop continues
On Tue, Nov 30, 2021 at 10:51:50AM -0800, Todd Kjos wrote:
> Transactions are copied from the sender to the target
> first and objects like BINDER_TYPE_PTR and BINDER_TYPE_FDA
> are then fixed up. This means there is a short period where
> the sender's version of these objects are visible to the
>
On Tue, Nov 30, 2021 at 10:51:48AM -0800, Todd Kjos wrote:
> v2:
> - add "binder: fix handling of error during copy" to fix
> bug noticed by Dan Carpenter
> - address Dan Carpenter's comments
Thanks!
regards,
dan carpenter
___
devel mailing list
Le 29/11/2021 à 21:13, Adam Ford a écrit :
On Wed, Apr 7, 2021 at 2:37 AM Benjamin Gaignard
wrote:
Introducing the G2 hevc video decoder requires modifications of the bindings to
allow
one node per VPU.
VPUs share one hardware control block which is provided as a phandle on
a syscon.
Each
On Wed, Apr 7, 2021 at 2:37 AM Benjamin Gaignard
wrote:
>
> Introducing the G2 hevc video decoder requires modifications of the bindings
> to allow
> one node per VPU.
>
> VPUs share one hardware control block which is provided as a phandle on
> a syscon.
> Each node has now one reg and one
This is a note to let you know that I've just added the patch titled
staging: ion: Prevent incorrect reference counting behavour
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch
On Fri, Nov 26, 2021 at 10:33:35AM +, Lee Jones wrote:
> Supply additional checks in order to prevent unexpected results.
>
> Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
> Suggested-by: Dan Carpenter
> Signed-off-by: Lee Jones
> ---
> Destined for v4.4.y and v4.9.y
>
>
This is a note to let you know that I've just added the patch titled
staging: ion: Prevent incorrect reference counting behavour
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch
On Fri, Nov 26, 2021 at 10:33:35AM +, Lee Jones wrote:
> Supply additional checks in order to prevent unexpected results.
>
> Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
> Suggested-by: Dan Carpenter
> Signed-off-by: Lee Jones
> ---
> Destined for v4.4.y and v4.9.y
Thanks!
Supply additional checks in order to prevent unexpected results.
Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
Suggested-by: Dan Carpenter
Signed-off-by: Lee Jones
---
Destined for v4.4.y and v4.9.y
drivers/staging/android/ion/ion.c | 6 ++
1 file changed, 6 insertions(+)
diff
+ if (handle->kmap_cnt == INT_MAX)
> > > + return ERR_PTR(-EOVERFLOW);
> > > handle->kmap_cnt++;
> > > return buffer->vaddr;
> > > }
> >
> > Which is all well and good until somebody changes
On Fri, Nov 26, 2021 at 08:56:27AM +, Lee Jones wrote:
> On Fri, 26 Nov 2021, Dan Carpenter wrote:
>
> > On Thu, Nov 25, 2021 at 06:18:22PM +0300, Dan Carpenter wrote:
> > > I had thought that ->kmap_cnt was a regular int and not an unsigned
> > > int, but I would have to pull a stable tree
On Fri, Nov 26, 2021 at 08:56:27AM +, Lee Jones wrote:
> On Fri, 26 Nov 2021, Dan Carpenter wrote:
>
> > On Thu, Nov 25, 2021 at 06:18:22PM +0300, Dan Carpenter wrote:
> > > I had thought that ->kmap_cnt was a regular int and not an unsigned
> > > int, but I would have to pull a stable tree
On Fri, 26 Nov 2021, Dan Carpenter wrote:
> On Thu, Nov 25, 2021 at 06:18:22PM +0300, Dan Carpenter wrote:
> > I had thought that ->kmap_cnt was a regular int and not an unsigned
> > int, but I would have to pull a stable tree to see where I misread the
> > code.
>
> I was looking at (struct
On Thu, Nov 25, 2021 at 06:18:22PM +0300, Dan Carpenter wrote:
> I had thought that ->kmap_cnt was a regular int and not an unsigned
> int, but I would have to pull a stable tree to see where I misread the
> code.
I was looking at (struct ion_buffer)->kmap_cnt but this is
(struct
all. It's a double increment on the
> > > success path and it leave handle->kmap_cnt overflowed on failure path.
> >
> > I read the helper to take copies of the original variables.
> >
> > #define __unsigned_add_overflow(a, b, d) ({ \
> > typeof(a) __
\
> typeof(b) __b = (b);\
> typeof(d) __d = (d);\
> (void) (&__a == &__b); \
> (void) (&__a == __d); \
> *__d = __a + __b; \
^^
b);\
> typeof(d) __d = (d);\
> (void) (&__a == &__b); \
> (void) (&__a == __d); \
> *__d = __a + __b; \
> *__d < __a;
\
typeof(b) __b = (b);\
typeof(d) __d = (d);\
(void) (&__a == &__b); \
(void) (&__a == __d); \
*__d = __a + __b; \
*__d < __a;
On Thu, Nov 25, 2021 at 02:20:04PM +, Lee Jones wrote:
> Supply additional checks in order to prevent unexpected results.
>
> Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
> Signed-off-by: Lee Jones
> ---
> Should be back-ported from v4.9 and earlier.
>
>
Supply additional checks in order to prevent unexpected results.
Fixes: b892bf75b2034 ("ion: Switch ion to use dma-buf")
Signed-off-by: Lee Jones
---
Should be back-ported from v4.9 and earlier.
drivers/staging/android/ion/ion.c | 5 +
1 file changed, 5 insertions(+)
diff --git
t; > >
> > > > Looks like they're not widely used.
> > > >
> > > > I'll try them out and see how they go.
> > > >
> > > > > > + return ERR_PTR(-EOVERFLOW);
> > > > > > +
> > > > &g
return ERR_PTR(-EOVERFLOW);
> > > > > +
> > > > > handle->kmap_cnt++;
> > > > > return buffer->vaddr;
> > > > > }
> > > >
> > > > What stable kernel branch(e
l try them out and see how they go.
> >
> > > > + return ERR_PTR(-EOVERFLOW);
> > > > +
> > > > handle->kmap_cnt++;
> > > > return buffer->vaddr;
> > > > }
> > &g
201 - 300 of 94028 matches
Mail list logo