From: Lukasz Stelmach <l.stelmach@samsung.com>
To: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 02/13] net: Replace all spi->chip_select and spi->cs_gpiod references with function call
Date: Thu, 02 Feb 2023 23:36:33 +0100 [thread overview]
Message-ID: <dleftjedr7itji.fsf%l.stelmach@samsung.com> (raw)
In-Reply-To: <20230202152258.512973-3-amit.kumar-mahapatra@amd.com> (Amit Kumar Mahapatra's message of "Thu, 2 Feb 2023 20:52:47 +0530")
[-- Attachment #1: Type: text/plain, Size: 2164 bytes --]
It was <2023-02-02 czw 20:52>, when Amit Kumar Mahapatra wrote:
> Supporting multi-cs in spi drivers would require the chip_select & cs_gpiod
> members of struct spi_device to be an array. But changing the type of these
> members to array would break the spi driver functionality. To make the
> transition smoother introduced four new APIs to get/set the
> spi->chip_select & spi->cs_gpiod and replaced all spi->chip_select and
> spi->cs_gpiod references with get or set API calls.
> While adding multi-cs support in further patches the chip_select & cs_gpiod
> members of the spi_device structure would be converted to arrays & the
> "idx" parameter of the APIs would be used as array index i.e.,
> spi->chip_select[idx] & spi->cs_gpiod[idx] respectively.
>
> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
> Reviewed-by: Michal Simek <michal.simek@amd.com>
> ---
> drivers/net/ethernet/adi/adin1110.c | 2 +-
> drivers/net/ethernet/asix/ax88796c_main.c | 2 +-
For ax88796c
Acked-by: Lukasz Stelmach <l.stelmach@samsung.com>
Thanks.
> drivers/net/ethernet/davicom/dm9051.c | 2 +-
> drivers/net/ethernet/qualcomm/qca_debug.c | 2 +-
> drivers/net/ieee802154/ca8210.c | 2 +-
> drivers/net/wan/slic_ds26522.c | 2 +-
> drivers/net/wireless/marvell/libertas/if_spi.c | 2 +-
> drivers/net/wireless/silabs/wfx/bus_spi.c | 2 +-
> drivers/net/wireless/st/cw1200/cw1200_spi.c | 2 +-
> 9 files changed, 9 insertions(+), 9 deletions(-)
>
[...]
> --- a/drivers/net/ethernet/asix/ax88796c_main.c
> +++ b/drivers/net/ethernet/asix/ax88796c_main.c
> @@ -1006,7 +1006,7 @@ static int ax88796c_probe(struct spi_device *spi)
> ax_local->mdiobus->parent = &spi->dev;
>
> snprintf(ax_local->mdiobus->id, MII_BUS_ID_SIZE,
> - "ax88796c-%s.%u", dev_name(&spi->dev), spi->chip_select);
> + "ax88796c-%s.%u", dev_name(&spi->dev), spi_get_chipselect(spi, 0));
>
> ret = devm_mdiobus_register(&spi->dev, ax_local->mdiobus);
> if (ret < 0) {
[...]
--
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2023-02-02 22:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-02 15:22 [PATCH v3 00/13] spi: Add support for stacked/parallel memories Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 01/13] spi: Replace all spi->chip_select and spi->cs_gpiod references with function call Amit Kumar Mahapatra
2023-02-02 16:40 ` Jernej Škrabec
2023-02-04 15:40 ` Serge Semin
2023-02-09 14:30 ` Mark Brown
2023-02-02 15:22 ` [PATCH v3 02/13] net: " Amit Kumar Mahapatra
[not found] ` <CGME20230202223633eucas1p2d9ec5e0fee227cb5a1bcb81c3c137859@eucas1p2.samsung.com>
2023-02-02 22:36 ` Lukasz Stelmach [this message]
2023-02-02 15:22 ` [PATCH v3 03/13] iio: imu: " Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 04/13] mtd: devices: " Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 05/13] staging: " Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 06/13] platform/x86: serial-multi-instantiate: " Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 07/13] spi: Add stacked and parallel memories support in SPI core Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 08/13] mtd: spi-nor: Convert macros with inline functions Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 09/13] mtd: spi-nor: Add APIs to set/get nor->params Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 10/13] mtd: spi-nor: Add stacked memories support in spi-nor Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 11/13] spi: spi-zynqmp-gqspi: Add stacked memories support in GQSPI driver Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 12/13] mtd: spi-nor: Add parallel memories support in spi-nor Amit Kumar Mahapatra
2023-02-02 15:22 ` [PATCH v3 13/13] spi: spi-zynqmp-gqspi: Add parallel memories support in GQSPI driver Amit Kumar Mahapatra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dleftjedr7itji.fsf%l.stelmach@samsung.com \
--to=l.stelmach@samsung.com \
--cc=amit.kumar-mahapatra@amd.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®