All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: "Любимов Максим" <m.lyubimov@aqsi.ru>, ofono@lists.linux.dev
Subject: Re: [PATCH 03/15] plugins: adding support for the SIMCom A7605E-H
Date: Sun, 29 Oct 2023 15:41:16 -0500	[thread overview]
Message-ID: <f4832121-d043-463a-9803-aaaf06f69aad@gmail.com> (raw)
In-Reply-To: <497f810bce97564712e05c2633a45fe244d93481.camel@aqsi.ru>

Hi Максим,

On 10/27/23 04:01, Любимов Максим wrote:
> 
> 
> On 18/10/2023 в 20:42 -0500, Denis Kenzior wrote:
>> On 10/17/23 05:48, MaxLyubimov wrote:
>>> The udevng plugin has been modified to detect the SIMCom A7605E-H
>>> modem and the simcom_a76xx plugin has been added to work with it
>>> ---
>>>    plugins/simcom_a76xx.c | 323
>>> +++++++++++++++++++++++++++++++++++++++++
>>>    plugins/udevng.c       |  55 +++++++
>>
>> Please see HACKING, 'Submitting patches' section, item 3.
> 
> I deliberately divided the patch into several parts so that they
> affected only one directory, does this patch only affect the plugins
> directory or did I understand something wrong?

After having another look, please ignore my comment.  You're fine.

<snip>

>>> + *  Copyright (C) 2008-2011  Intel Corporation. All rights
>>> reserved.
>>> + *  Copyright (C) 2009  Collabora Ltd. All rights reserved.
>>> + *  Copyright 2018 Purism SPC
>>
>> Copyrights seem suspect?
> 
> I slightly modified the file plugins/sim7100.c, I left the copyright
> unchanged
> 

Ok, fair enough.

>>
>> In fact this looks 95% the same to plugins/simcom7100.c.  Can we
>> unify the two?
> 
> Simcom modems of the SIM7x00 and A76xx series are built on different
> chips, Qualcomm and ASR, respectively, so their functionality is very
> different. I may try to combine these plugins, so the commands are
> generally compatible. But I don’t have a SIM7x00 series modem, so I
> won’t be able to check the correctness of my modification. There is
> also a question about the name of the plugin, SIM7100 is the name of a
> series of modems, as well as A76xx, how to combine them in the name of
> one plugin?
> 

I would rename this driver to simcom.c and try your best to combine the two. 
Even if you somehow break the 7100, then someone with a 7100 can come in and 
complain.  We'll then fix it.  In fact, I think we even had a simcom.c before.

>>
>> Again, this block seems rather similar to what is in
>> setup_simcom.  Just the
>> interface numbers are different.  Please unify the two.
> 
> I divided the code to make it more readable, since setup_sim7x00
> configures qmi, which is not supported in simcom a76xx, and the
> setup_simcom function, as far as I understand, is not used because
> there is no modem driver named simcom. Which of these setup_sim7x00 or
> setup_simcom functions should I use to add a simcom a76xx?

Long term I think I want to get rid of QMI setup in all vendor setup functions. 
Almost always these are the same across all modems in QMI mode, just the 
interface numbers might be slightly different.  Probably just need to create a 
lookup table instead.

So for now, I would just modify the setup_simcom function with the A76xx details.

Regards,
-Denis

  reply	other threads:[~2023-10-29 20:41 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-17 10:48 [PATCH 01/15] Skipping AT+CUAD sending for QUECTEL_EC2X vendor MaxLyubimov
2023-10-17 10:48 ` [PATCH 02/15] drivers: adding support for the SIMCom A7605E-H MaxLyubimov
2023-10-19  1:30   ` Denis Kenzior
2023-10-27  7:52     ` Любимов Максим
2023-10-29 21:16       ` Denis Kenzior
2023-10-17 10:48 ` [PATCH 03/15] plugins: " MaxLyubimov
2023-10-19  1:42   ` Denis Kenzior
2023-10-27  9:01     ` Любимов Максим
2023-10-29 20:41       ` Denis Kenzior [this message]
2023-10-30  7:11         ` Любимов Максим
2023-10-17 10:48 ` [PATCH 04/15] build: " MaxLyubimov
2023-10-17 10:48 ` [PATCH 05/15] drivers: quectel: Add radio settings MaxLyubimov
2023-10-19  1:49   ` Denis Kenzior
2023-10-17 10:48 ` [PATCH 06/15] build: Add quectel radio settings rules MaxLyubimov
2023-10-17 10:48 ` [PATCH 07/15] plugins: quectel: Add radio settings MaxLyubimov
2023-10-19  2:00   ` Denis Kenzior
2023-10-17 10:48 ` [PATCH 08/15] drivers: gemalto: Add models list MaxLyubimov
2023-10-17 10:48 ` [PATCH 09/15] plugins: gemalto: Include " MaxLyubimov
2023-10-17 10:48 ` [PATCH 10/15] plugins: udevng: Add support gemalto EHS5-E MaxLyubimov
2023-10-17 10:48 ` [PATCH 11/15] gemalto: radio-settings: Add support EHS5-E MaxLyubimov
2023-10-17 10:48 ` [PATCH 12/15] Fix PPP LCP Configure-Reject MaxLyubimov
2023-10-19  2:08   ` Denis Kenzior
2023-10-17 10:49 ` [PATCH 13/15] atmodem: added context deactivation event handling MaxLyubimov
2023-10-19  2:13   ` Denis Kenzior
2023-10-17 10:49 ` [PATCH 14/15] gatchat: added command completion by timeout MaxLyubimov
2023-10-19  2:21   ` Denis Kenzior
2023-10-27  9:45     ` Любимов Максим
2023-10-29 20:59       ` Denis Kenzior
2023-10-30  7:04         ` Любимов Максим
2023-10-30 14:29           ` Denis Kenzior
2023-10-17 10:49 ` [PATCH 15/15] ppp: message tracing MaxLyubimov
2023-10-19  2:22   ` Denis Kenzior
2023-10-27 10:01     ` Любимов Максим
2023-10-29 21:05       ` Denis Kenzior
2023-10-30  6:34         ` Любимов Максим
2023-10-30 14:30           ` Denis Kenzior
2023-10-19  1:28 ` [PATCH 01/15] Skipping AT+CUAD sending for QUECTEL_EC2X vendor Denis Kenzior

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=f4832121-d043-463a-9803-aaaf06f69aad@gmail.com \
    --to=denkenz@gmail.com \
    --cc=m.lyubimov@aqsi.ru \
    --cc=ofono@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.