From: Vadim Fedorenko <vadim.fedorenko@linux.dev>
To: Sagi Maimon <maimon.sagi@gmail.com>
Cc: richardcochran@gmail.com, jonathan.lemon@gmail.com,
vadfed@fb.com, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, kuba@kernel.org
Subject: Re: [PATCH v5] ptp: ocp: add Adva timecard support
Date: Sun, 4 Feb 2024 14:39:46 +0000 [thread overview]
Message-ID: <6b88bdc3-37da-423f-a665-308ac519a256@linux.dev> (raw)
In-Reply-To: <CAMuE1bFEbrY2PiDB6OdZGzDNijPAhoGBircTpqiyVs0Qq6bOig@mail.gmail.com>
On 04/02/2024 11:31, Sagi Maimon wrote:
> Hi Vadim,
> Sorry but I was on vacation for the last two weeks.
> So What should I do now:
> 1) Do you want me to set my changes into the main linux git tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> and use use '[PATCH v6] ...' prefix
> 2) Or
> set my changes into the net-next git tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
> and use use '[PATCH net-next v6] ...' prefix
Hi Sagi!
Option 2 is the way to go.
Thanks,
Vadim
>
> BR,
> Sagi
>
> On Wed, Jan 17, 2024 at 11:23 PM Vadim Fedorenko
> <vadim.fedorenko@linux.dev> wrote:
>>
>> On 17/01/2024 11:43, Sagi Maimon wrote:
>>> Adding support for the Adva timecard.
>>> The card uses different drivers to provide access to the
>>> firmware SPI flash (Altera based).
>>> Other parts of the code are the same and could be reused.
>>>
>>
>> Hi Sagi,
>>
>> Thanks for adjusting the code. One signle still have to be
>> adjusted, see comments below. And this is treated as net-next
>> material, but net-next is closed now until merge window ends,
>> you will have to submit new version next week.
>>
>> Please, also use '[PATCH net-next v6] ...' prefix for it.
>>
>>> Signed-off-by: Sagi Maimon <maimon.sagi@gmail.com>
>>> ---
>>> Changes since version 4:
>>> - alignment fix.
>>>
>>
>> Please, preserve changes from all previous versions for next submissions.
>>
>>> drivers/ptp/ptp_ocp.c | 302 ++++++++++++++++++++++++++++++++++++++++--
>>> 1 file changed, 293 insertions(+), 9 deletions(-)
>>>
>>
>> [ ..skip.. ]
>>
>>> @@ -2603,7 +2819,44 @@ ptp_ocp_art_board_init(struct ptp_ocp *bp, struct ocp_resource *r)
>>> if (err)
>>> return err;
>>>
>>> - return ptp_ocp_init_clock(bp);
>>> + return ptp_ocp_init_clock(bp, r->extra);
>>> +}
>>> +
>>> +/* ADVA specific board initializers; last "resource" registered. */
>>> +static int
>>> +ptp_ocp_adva_board_init(struct ptp_ocp *bp, struct ocp_resource *r)
>>> +{
>>> + int err;
>>> + u32 version;
>>> +
>>> + bp->flash_start = 0xA00000;
>>> + bp->eeprom_map = fb_eeprom_map;
>>> + bp->sma_op = &ocp_adva_sma_op;
>>> +
>>> + version = ioread32(&bp->image->version);
>>> + /* if lower 16 bits are empty, this is the fw loader. */
>>> + if ((version & 0xffff) == 0) {
>>> + version = version >> 16;
>>> + bp->fw_loader = true;
>>> + }
>>> + bp->fw_tag = 1;
>>
>> Please, use fw_tag = 3 here, other tags are for other vendors.
>>
>> Thanks,
>> Vadim
>>
>>> + bp->fw_version = version & 0xffff;
>>> + bp->fw_cap = OCP_CAP_BASIC | OCP_CAP_SIGNAL | OCP_CAP_FREQ;
>>> +
>>> + ptp_ocp_tod_init(bp);
>>> + ptp_ocp_nmea_out_init(bp);
>>> + ptp_ocp_signal_init(bp);
>>> +
>>
next prev parent reply other threads:[~2024-02-04 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 11:43 [PATCH v5] ptp: ocp: add Adva timecard support Sagi Maimon
2024-01-17 21:23 ` Vadim Fedorenko
2024-02-04 11:31 ` Sagi Maimon
2024-02-04 14:39 ` Vadim Fedorenko [this message]
2024-02-04 14:50 ` Sagi Maimon
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=6b88bdc3-37da-423f-a665-308ac519a256@linux.dev \
--to=vadim.fedorenko@linux.dev \
--cc=jonathan.lemon@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maimon.sagi@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
--cc=vadfed@fb.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