mbox series

[net-next,v2,0/2] sfc: simplify mtd partitions list handling

Message ID 20220524062243.9206-1-ihuguet@redhat.com (mailing list archive)
Headers show
Series sfc: simplify mtd partitions list handling | expand

Message

Íñigo Huguet May 24, 2022, 6:22 a.m. UTC
Simplify the mtd list handling to make more clear how it works and avoid
potential future problems.

Tested: module load and unload in a system with Siena and EF10 cards
installed, both modules sfc and sfc_siena.

v2:
* Dropped patch fixing memory leak, already fixed in net
* Apply changes also in new siena driver

Íñigo Huguet (2):
  sfc: simplify mtd partitions list handling
  sfc/siena: simplify mtd partitions list handling

 drivers/net/ethernet/sfc/ef10.c             | 12 ++++--
 drivers/net/ethernet/sfc/efx.h              |  4 +-
 drivers/net/ethernet/sfc/efx_common.c       |  3 --
 drivers/net/ethernet/sfc/mtd.c              | 42 ++++++++-------------
 drivers/net/ethernet/sfc/net_driver.h       |  9 +++--
 drivers/net/ethernet/sfc/siena/efx.h        |  4 +-
 drivers/net/ethernet/sfc/siena/efx_common.c |  3 --
 drivers/net/ethernet/sfc/siena/mtd.c        | 42 ++++++++-------------
 drivers/net/ethernet/sfc/siena/net_driver.h |  9 +++--
 drivers/net/ethernet/sfc/siena/siena.c      | 12 ++++--
 10 files changed, 66 insertions(+), 74 deletions(-)

Comments

Paolo Abeni May 24, 2022, 10:17 a.m. UTC | #1
Hello,

On Tue, 2022-05-24 at 08:22 +0200, Íñigo Huguet wrote:
> Simplify the mtd list handling to make more clear how it works and avoid
> potential future problems.
> 
> Tested: module load and unload in a system with Siena and EF10 cards
> installed, both modules sfc and sfc_siena.
> 
> v2:
> * Dropped patch fixing memory leak, already fixed in net
> * Apply changes also in new siena driver
> 
> Íñigo Huguet (2):
>   sfc: simplify mtd partitions list handling
>   sfc/siena: simplify mtd partitions list handling
> 
>  drivers/net/ethernet/sfc/ef10.c             | 12 ++++--
>  drivers/net/ethernet/sfc/efx.h              |  4 +-
>  drivers/net/ethernet/sfc/efx_common.c       |  3 --
>  drivers/net/ethernet/sfc/mtd.c              | 42 ++++++++-------------
>  drivers/net/ethernet/sfc/net_driver.h       |  9 +++--
>  drivers/net/ethernet/sfc/siena/efx.h        |  4 +-
>  drivers/net/ethernet/sfc/siena/efx_common.c |  3 --
>  drivers/net/ethernet/sfc/siena/mtd.c        | 42 ++++++++-------------
>  drivers/net/ethernet/sfc/siena/net_driver.h |  9 +++--
>  drivers/net/ethernet/sfc/siena/siena.c      | 12 ++++--
>  10 files changed, 66 insertions(+), 74 deletions(-)
> 
net-next is currently closed. Please wait untill it reopens and re-
post.

thanks!

Paolo