linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Add MHI bus support and driver for T99W175 5G modem
       [not found] <20210316124237.3469-1-jarvis.w.jiang@gmail.com>
@ 2021-03-16 13:30 ` Mike Rapoport
  2021-03-17  9:37   ` 蒋威
  2021-03-16 21:37 ` Jakub Kicinski
  2021-03-18  8:45 ` Leon Romanovsky
  2 siblings, 1 reply; 5+ messages in thread
From: Mike Rapoport @ 2021-03-16 13:30 UTC (permalink / raw)
  To: Jarvis Jiang
  Cc: davem, akpm, linux-kernel, netdev, linux-mm, cchen50, mpearson

On Tue, Mar 16, 2021 at 05:42:37AM -0700, Jarvis Jiang wrote:
> T99W175 using MBIM or RmNet over PCIe interface with
> MHI protocol support.
> Ported from IPQ8072 platform, including MHI, MBIM, RmNet
> 
> Supporting below PCI devices:
> 
>   PCI_DEVICE(0x17cb, 0x0300)
>   PCI_DEVICE(0x17cb, 0x0301)
>   PCI_DEVICE(0x17cb, 0x0302)
>   PCI_DEVICE(0x17cb, 0x0303)
>   PCI_DEVICE(0x17cb, 0x0304)
>   PCI_DEVICE(0x17cb, 0x0305)
>   PCI_DEVICE(0x17cb, 0x0306)
>   PCI_DEVICE(0x105b, 0xe0ab)
>   PCI_DEVICE(0x105b, 0xe0b0)
>   PCI_DEVICE(0x105b, 0xe0b1)
>   PCI_DEVICE(0x105b, 0xe0b3)
>   PCI_DEVICE(0x1269, 0x00b3)
>   PCI_DEVICE(0x03f0, 0x0a6c)
> 
> Signed-off-by: Jarvis Jiang <jarvis.w.jiang@gmail.com>
> ---
>  MAINTAINERS                                   |   16 +
>  drivers/bus/Kconfig                           |    1 +
>  drivers/bus/Makefile                          |    3 +
>  drivers/bus/mhi/Kconfig                       |   27 +
>  drivers/bus/mhi/Makefile                      |    9 +
>  drivers/bus/mhi/controllers/Kconfig           |   13 +
>  drivers/bus/mhi/controllers/Makefile          |    2 +
>  drivers/bus/mhi/controllers/mhi_arch_qti.c    |  275 ++
>  drivers/bus/mhi/controllers/mhi_qti.c         |  970 +++++++
>  drivers/bus/mhi/controllers/mhi_qti.h         |   44 +
>  drivers/bus/mhi/core/Makefile                 |    2 +
>  drivers/bus/mhi/core/mhi_boot.c               |  590 +++++
>  drivers/bus/mhi/core/mhi_dtr.c                |  223 ++
>  drivers/bus/mhi/core/mhi_init.c               | 1901 ++++++++++++++
>  drivers/bus/mhi/core/mhi_internal.h           |  826 ++++++
>  drivers/bus/mhi/core/mhi_main.c               | 2261 +++++++++++++++++
>  drivers/bus/mhi/core/mhi_pm.c                 | 1158 +++++++++
>  drivers/bus/mhi/devices/Kconfig               |   43 +
>  drivers/bus/mhi/devices/Makefile              |    3 +
>  drivers/bus/mhi/devices/mhi_netdev.c          | 1830 +++++++++++++
>  drivers/bus/mhi/devices/mhi_satellite.c       | 1155 +++++++++
>  drivers/bus/mhi/devices/mhi_uci.c             |  802 ++++++
>  drivers/net/ethernet/qualcomm/rmnet/Makefile  |    2 +-
>  .../ethernet/qualcomm/rmnet/rmnet_config.c    |  131 +-
>  .../ethernet/qualcomm/rmnet/rmnet_config.h    |  110 +-
>  .../qualcomm/rmnet/rmnet_descriptor.c         | 1225 +++++++++
>  .../qualcomm/rmnet/rmnet_descriptor.h         |  152 ++
>  .../ethernet/qualcomm/rmnet/rmnet_handlers.c  |  321 ++-
>  .../ethernet/qualcomm/rmnet/rmnet_handlers.h  |   27 +-
>  .../net/ethernet/qualcomm/rmnet/rmnet_map.h   |  238 +-
>  .../qualcomm/rmnet/rmnet_map_command.c        |  304 ++-
>  .../ethernet/qualcomm/rmnet/rmnet_map_data.c  | 1029 +++++++-
>  .../ethernet/qualcomm/rmnet/rmnet_private.h   |   19 +-
>  .../net/ethernet/qualcomm/rmnet/rmnet_trace.h |  250 ++
>  .../net/ethernet/qualcomm/rmnet/rmnet_vnd.c   |  101 +-
>  .../net/ethernet/qualcomm/rmnet/rmnet_vnd.h   |   16 +-
>  include/linux/ipc_logging.h                   |  291 +++
>  include/linux/mhi.h                           |  743 ++++++
>  include/linux/mod_devicetable.h               |   22 +-
>  include/linux/msm-bus.h                       |  214 ++
>  include/linux/msm_pcie.h                      |  173 ++
>  include/linux/netdevice.h                     |   18 +-
>  include/uapi/linux/if_link.h                  |    4 +
>  include/uapi/linux/msm_rmnet.h                |  170 ++
>  mm/memblock.c                                 |    2 +
>  net/core/dev.c                                |  192 +-
>  46 files changed, 17700 insertions(+), 208 deletions(-)

This is way too much for a single patch. Please split your changes into a
series of patches, with one logical change per patch. For instance, you can
start with adding skeleton infrastructure for MHI, then add particular
implementations for it, and on top you can add device drivers that rely on
MHI core.

-- 
Sincerely yours,
Mike.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add MHI bus support and driver for T99W175 5G modem
       [not found] <20210316124237.3469-1-jarvis.w.jiang@gmail.com>
  2021-03-16 13:30 ` [PATCH] Add MHI bus support and driver for T99W175 5G modem Mike Rapoport
@ 2021-03-16 21:37 ` Jakub Kicinski
  2021-03-17 10:09   ` 蒋威
  2021-03-18  8:45 ` Leon Romanovsky
  2 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2021-03-16 21:37 UTC (permalink / raw)
  To: Jarvis Jiang
  Cc: davem, rppt, akpm, linux-kernel, netdev, linux-mm, cchen50, mpearson

On Tue, 16 Mar 2021 05:42:37 -0700 Jarvis Jiang wrote:
>  drivers/bus/mhi/devices/mhi_netdev.c          | 1830 +++++++++++++

There's already a drivers/net/mhi/

Please make sure the drivers live in their respective subsystem.

Virtio drivers don't sit under drivers/virtio, and most certainly not
under drivers/bus/virtio...

>  drivers/bus/mhi/devices/mhi_satellite.c       | 1155 +++++++++
>  drivers/bus/mhi/devices/mhi_uci.c             |  802 ++++++

Ugh, can you clarify what's the source of this code dump and if you're
coordinating with others working on Qualcomm drivers?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add MHI bus support and driver for T99W175 5G modem
  2021-03-16 13:30 ` [PATCH] Add MHI bus support and driver for T99W175 5G modem Mike Rapoport
@ 2021-03-17  9:37   ` 蒋威
  0 siblings, 0 replies; 5+ messages in thread
From: 蒋威 @ 2021-03-17  9:37 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: davem, akpm, linux-kernel, netdev, linux-mm, cchen50, mpearson

[-- Attachment #1: Type: text/plain, Size: 4326 bytes --]

I will divide the changes into a series of patches according to your
suggestion, thank you.

Thanks,
Jarvis

Mike Rapoport <rppt@linux.ibm.com> 于2021年3月16日周二 下午9:30写道:

> On Tue, Mar 16, 2021 at 05:42:37AM -0700, Jarvis Jiang wrote:
> > T99W175 using MBIM or RmNet over PCIe interface with
> > MHI protocol support.
> > Ported from IPQ8072 platform, including MHI, MBIM, RmNet
> >
> > Supporting below PCI devices:
> >
> >   PCI_DEVICE(0x17cb, 0x0300)
> >   PCI_DEVICE(0x17cb, 0x0301)
> >   PCI_DEVICE(0x17cb, 0x0302)
> >   PCI_DEVICE(0x17cb, 0x0303)
> >   PCI_DEVICE(0x17cb, 0x0304)
> >   PCI_DEVICE(0x17cb, 0x0305)
> >   PCI_DEVICE(0x17cb, 0x0306)
> >   PCI_DEVICE(0x105b, 0xe0ab)
> >   PCI_DEVICE(0x105b, 0xe0b0)
> >   PCI_DEVICE(0x105b, 0xe0b1)
> >   PCI_DEVICE(0x105b, 0xe0b3)
> >   PCI_DEVICE(0x1269, 0x00b3)
> >   PCI_DEVICE(0x03f0, 0x0a6c)
> >
> > Signed-off-by: Jarvis Jiang <jarvis.w.jiang@gmail.com>
> > ---
> >  MAINTAINERS                                   |   16 +
> >  drivers/bus/Kconfig                           |    1 +
> >  drivers/bus/Makefile                          |    3 +
> >  drivers/bus/mhi/Kconfig                       |   27 +
> >  drivers/bus/mhi/Makefile                      |    9 +
> >  drivers/bus/mhi/controllers/Kconfig           |   13 +
> >  drivers/bus/mhi/controllers/Makefile          |    2 +
> >  drivers/bus/mhi/controllers/mhi_arch_qti.c    |  275 ++
> >  drivers/bus/mhi/controllers/mhi_qti.c         |  970 +++++++
> >  drivers/bus/mhi/controllers/mhi_qti.h         |   44 +
> >  drivers/bus/mhi/core/Makefile                 |    2 +
> >  drivers/bus/mhi/core/mhi_boot.c               |  590 +++++
> >  drivers/bus/mhi/core/mhi_dtr.c                |  223 ++
> >  drivers/bus/mhi/core/mhi_init.c               | 1901 ++++++++++++++
> >  drivers/bus/mhi/core/mhi_internal.h           |  826 ++++++
> >  drivers/bus/mhi/core/mhi_main.c               | 2261 +++++++++++++++++
> >  drivers/bus/mhi/core/mhi_pm.c                 | 1158 +++++++++
> >  drivers/bus/mhi/devices/Kconfig               |   43 +
> >  drivers/bus/mhi/devices/Makefile              |    3 +
> >  drivers/bus/mhi/devices/mhi_netdev.c          | 1830 +++++++++++++
> >  drivers/bus/mhi/devices/mhi_satellite.c       | 1155 +++++++++
> >  drivers/bus/mhi/devices/mhi_uci.c             |  802 ++++++
> >  drivers/net/ethernet/qualcomm/rmnet/Makefile  |    2 +-
> >  .../ethernet/qualcomm/rmnet/rmnet_config.c    |  131 +-
> >  .../ethernet/qualcomm/rmnet/rmnet_config.h    |  110 +-
> >  .../qualcomm/rmnet/rmnet_descriptor.c         | 1225 +++++++++
> >  .../qualcomm/rmnet/rmnet_descriptor.h         |  152 ++
> >  .../ethernet/qualcomm/rmnet/rmnet_handlers.c  |  321 ++-
> >  .../ethernet/qualcomm/rmnet/rmnet_handlers.h  |   27 +-
> >  .../net/ethernet/qualcomm/rmnet/rmnet_map.h   |  238 +-
> >  .../qualcomm/rmnet/rmnet_map_command.c        |  304 ++-
> >  .../ethernet/qualcomm/rmnet/rmnet_map_data.c  | 1029 +++++++-
> >  .../ethernet/qualcomm/rmnet/rmnet_private.h   |   19 +-
> >  .../net/ethernet/qualcomm/rmnet/rmnet_trace.h |  250 ++
> >  .../net/ethernet/qualcomm/rmnet/rmnet_vnd.c   |  101 +-
> >  .../net/ethernet/qualcomm/rmnet/rmnet_vnd.h   |   16 +-
> >  include/linux/ipc_logging.h                   |  291 +++
> >  include/linux/mhi.h                           |  743 ++++++
> >  include/linux/mod_devicetable.h               |   22 +-
> >  include/linux/msm-bus.h                       |  214 ++
> >  include/linux/msm_pcie.h                      |  173 ++
> >  include/linux/netdevice.h                     |   18 +-
> >  include/uapi/linux/if_link.h                  |    4 +
> >  include/uapi/linux/msm_rmnet.h                |  170 ++
> >  mm/memblock.c                                 |    2 +
> >  net/core/dev.c                                |  192 +-
> >  46 files changed, 17700 insertions(+), 208 deletions(-)
>
> This is way too much for a single patch. Please split your changes into a
> series of patches, with one logical change per patch. For instance, you can
> start with adding skeleton infrastructure for MHI, then add particular
> implementations for it, and on top you can add device drivers that rely on
> MHI core.
>
> --
> Sincerely yours,
> Mike.
>

[-- Attachment #2: Type: text/html, Size: 5502 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add MHI bus support and driver for T99W175 5G modem
  2021-03-16 21:37 ` Jakub Kicinski
@ 2021-03-17 10:09   ` 蒋威
  0 siblings, 0 replies; 5+ messages in thread
From: 蒋威 @ 2021-03-17 10:09 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: davem, rppt, akpm, linux-kernel, netdev, linux-mm, cchen50, mpearson

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

> There's already a drivers/net/mhi/
It seems the latest kernel supports mhi driver, but there is no mhi driver
on the 5.4.44 kernel, I want to add it to 5.4.44, is that ok?

> Virtio drivers don't sit under drivers/virtio, and most certainly not
under drivers/bus/virtio
Thanks, however, I will put files into a more suitable location.

> Ugh, can you clarify what's the source of this code dump and if you're
coordinating with others working on Qualcomm drivers?
The source code is ported from IPQ8072 arm platform, including MHI, MBIM,
RmNet.
No, I have no cooperation with the people working on Qualcomm drivers.

Thanks,
Jarvis

Jakub Kicinski <kuba@kernel.org> 于2021年3月17日周三 上午5:37写道:

> On Tue, 16 Mar 2021 05:42:37 -0700 Jarvis Jiang wrote:
> >  drivers/bus/mhi/devices/mhi_netdev.c          | 1830 +++++++++++++
>
> There's already a drivers/net/mhi/
>
> Please make sure the drivers live in their respective subsystem.
>
> Virtio drivers don't sit under drivers/virtio, and most certainly not
> under drivers/bus/virtio...
>
> >  drivers/bus/mhi/devices/mhi_satellite.c       | 1155 +++++++++
> >  drivers/bus/mhi/devices/mhi_uci.c             |  802 ++++++
>
> Ugh, can you clarify what's the source of this code dump and if you're
> coordinating with others working on Qualcomm drivers?
>

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Add MHI bus support and driver for T99W175 5G modem
       [not found] <20210316124237.3469-1-jarvis.w.jiang@gmail.com>
  2021-03-16 13:30 ` [PATCH] Add MHI bus support and driver for T99W175 5G modem Mike Rapoport
  2021-03-16 21:37 ` Jakub Kicinski
@ 2021-03-18  8:45 ` Leon Romanovsky
  2 siblings, 0 replies; 5+ messages in thread
From: Leon Romanovsky @ 2021-03-18  8:45 UTC (permalink / raw)
  To: Jarvis Jiang
  Cc: davem, rppt, akpm, linux-kernel, netdev, linux-mm, cchen50, mpearson

On Tue, Mar 16, 2021 at 05:42:37AM -0700, Jarvis Jiang wrote:
> T99W175 using MBIM or RmNet over PCIe interface with
> MHI protocol support.
> Ported from IPQ8072 platform, including MHI, MBIM, RmNet
>
> Supporting below PCI devices:
>
>   PCI_DEVICE(0x17cb, 0x0300)
>   PCI_DEVICE(0x17cb, 0x0301)
>   PCI_DEVICE(0x17cb, 0x0302)
>   PCI_DEVICE(0x17cb, 0x0303)
>   PCI_DEVICE(0x17cb, 0x0304)
>   PCI_DEVICE(0x17cb, 0x0305)
>   PCI_DEVICE(0x17cb, 0x0306)
>   PCI_DEVICE(0x105b, 0xe0ab)
>   PCI_DEVICE(0x105b, 0xe0b0)
>   PCI_DEVICE(0x105b, 0xe0b1)
>   PCI_DEVICE(0x105b, 0xe0b3)
>   PCI_DEVICE(0x1269, 0x00b3)
>   PCI_DEVICE(0x03f0, 0x0a6c)
>
> Signed-off-by: Jarvis Jiang <jarvis.w.jiang@gmail.com>

<...>

> +FOXCONN 5G MODEM DRIVER
> +M:	Jarvis Jiang <jarvis.w.jiang@gmail.com>
> +S:	Orphan
> +F:	drivers/bus/mhi/
> +F:	drivers/net/ethernet/qualcomm/rmnet/
> +F:	include/linux/ipc_logging.h
> +F:	include/linux/mhi.h
> +F:	include/linux/mod_devicetable.h
> +F:	include/linux/msm-bus.h
> +F:	include/linux/msm_pcie.h

<...>

> +F:	include/linux/netdevice.h
> +F:	include/uapi/linux/if_link.h
> +F:	include/uapi/linux/msm_rmnet.h
> +F:	mm/memblock.c
> +F:	net/core/dev.c

That's quite a statement.

Thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-18  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210316124237.3469-1-jarvis.w.jiang@gmail.com>
2021-03-16 13:30 ` [PATCH] Add MHI bus support and driver for T99W175 5G modem Mike Rapoport
2021-03-17  9:37   ` 蒋威
2021-03-16 21:37 ` Jakub Kicinski
2021-03-17 10:09   ` 蒋威
2021-03-18  8:45 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).