All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinh.linux@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2 1/6] reset: socfpga: add reset driver for SoCFPGA platform
Date: Thu, 5 Apr 2018 13:44:17 -0500	[thread overview]
Message-ID: <CADhT+wcuKwTCRJgXSs=2MYfvA+mkQOU4uc_EPxbs-V3efGF14A@mail.gmail.com> (raw)
In-Reply-To: <f5d4190b-4109-26ad-f8c2-e8db89eae9ce@denx.de>

On Thu, Apr 5, 2018 at 11:28 AM, Marek Vasut <marex@denx.de> wrote:
> On 04/05/2018 04:46 PM, Dinh Nguyen wrote:
>>
>>
>> On 04/05/2018 09:12 AM, Dinh Nguyen wrote:
>>> v
>>>
>>> On 04/04/2018 05:56 PM, Marek Vasut wrote:
>>>> On 04/05/2018 12:18 AM, Dinh Nguyen wrote:
>>>>> Add a DM compatible reset driver for the SoCFPGA platform.
>>>>>
>>>>> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
>>>>
>>>> [...]
>>>>
>>>>> +static int socfpga_reset_request(struct reset_ctl *reset_ctl)
>>>>> +{
>>>>> +  debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__,
>>>>> +        reset_ctl, reset_ctl->dev, reset_ctl->id);
>>>>> +
>>>>> +  return 0;
>>>>> +}
>>>>> +
>>>>> +static int socfpga_reset_free(struct reset_ctl *reset_ctl)
>>>>> +{
>>>>> +  debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl,
>>>>> +        reset_ctl->dev, reset_ctl->id);
>>>>> +
>>>>> +  return 0;
>>>>> +}
>>>>
>>>> Is request/free needed at all ? It looks like a useless debug to me.
>>>>
>>>
>>> I used the code to debug that the i2c driver did hook into the reset
>>> manager driver. Certainly, it can be removed in the final version. I'll
>>> send a V3 shortly with this removed.
>>>
>>
>> I cannot remove the request function as this is needed in the
>> reset-uclass driver.
>
> Fix the driver please.
>
>> Do you want me to remove free? Leaving the code
>> there seems harmless to me.
>
> Do a generic fix and then submit a fix for this driver, so two patches
> in total. I'll apply the V2 for now.
>

Ok...will do.

Dinh

  reply	other threads:[~2018-04-05 18:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-04 22:18 [U-Boot] [PATCH 0/6] reset: add reset driver for SoCFPGA Dinh Nguyen
2018-04-04 22:18 ` [U-Boot] [PATCHv2 1/6] reset: socfpga: add reset driver for SoCFPGA platform Dinh Nguyen
2018-04-04 22:56   ` Marek Vasut
2018-04-05 14:12     ` Dinh Nguyen
2018-04-05 14:46       ` Dinh Nguyen
2018-04-05 16:28         ` Marek Vasut
2018-04-05 18:44           ` Dinh Nguyen [this message]
2018-04-04 22:18 ` [U-Boot] [PATCH 2/6] configs: socfpga: convert i2c to dm Dinh Nguyen
2018-04-04 22:18 ` [U-Boot] [PATCH 3/6] arm: dts: socfpga: enables i2c0 in socfpga_de0_nano Dinh Nguyen
2018-04-04 22:18 ` [U-Boot] [PATCH 4/6] arm: dts: socfpga: add reset property Dinh Nguyen
2018-04-04 22:18 ` [U-Boot] [PATCH 5/6] i2c: designware: add reset ctrl to driver Dinh Nguyen
2018-04-05  6:07   ` Heiko Schocher
2018-04-04 22:18 ` [U-Boot] [PATCH 6/6] configs: socfpga: add DM_RESET Dinh Nguyen
2018-04-04 22:58 ` [U-Boot] [PATCH 0/6] reset: add reset driver for SoCFPGA Marek Vasut

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='CADhT+wcuKwTCRJgXSs=2MYfvA+mkQOU4uc_EPxbs-V3efGF14A@mail.gmail.com' \
    --to=dinh.linux@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.