mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rao, Appana Durga Kedareswara" <appana.durga.kedareswara.rao@amd.com>
To: "Uwe Kleine-König" <ukleinek@kernel.org>
Cc: "krzysztof.kozlowski+dt@linaro.org"
	<krzysztof.kozlowski+dt@linaro.org>,
	"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"Simek, Michal" <michal.simek@amd.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-pwm@vger.kernel.org" <linux-pwm@vger.kernel.org>,
	"git (AMD-Xilinx)" <git@amd.com>,
	"Vanukuri, Meher Thanmaiee" <MeherThanmaiee.Vanukuri@amd.com>
Subject: RE: [PATCH v4 2/3] clocksource: timer-cadence-ttc: Support TTC device configured as PWM
Date: Wed, 9 Jul 2025 06:51:52 +0000	[thread overview]
Message-ID: <DS7PR12MB82495FE4A65F266D0857EB408F49A@DS7PR12MB8249.namprd12.prod.outlook.com> (raw)
In-Reply-To: <DS7PR12MB824987018AAB745E38C638728F7CA@DS7PR12MB8249.namprd12.prod.outlook.com>

Ping!

<Snip>
> 
> Hi Uwe,
> 
> <Snip>
> > > +   /*
> > > +    * If pwm-cells property is present in TTC node,
> > > +    * it would be treated as PWM device.
> > > +    */
> > > +   if (of_property_read_bool(timer, "#pwm-cells")) {
> > > +           #if defined(CONFIG_PWM_CADENCE)
> > > +           ttc_config->is_pwm_mode = true;
> > > +                   return ttc_pwm_probe(pdev);
> >
> > strange indention. Maybe use
> >
> >       if (IS_REACHABLE(CONFIG_PWM_CADENCE))
> >
> > This is an unusal way to bind the PWM driver. I'd prefer creation of
> > separate device in the PWM case. I wonder if it can happen that
> > ttc_pwm_probe() is called during boot before pwm_init() completed. Or
> > use an auxbus device to distinguish between timer and pwm?
> >
> 
> Sorry for the delay in response the upstreaming of the TTC PWM driver was
> previously managed by Mubin. Since his departure from the organization, I
> will be taking over and continuing the upstreaming effort.
> 
> I have reviewed the v1 to v4 patch series along with all the associated
> feedback. In response to the concerns raised regarding the use of auxbus, I
> would like to propose an alternative solution: registering the PWM
> functionality as a separate platform driver using a distinct compatible string.
> This would allow the PWM driver to be probed only when the specific
> compatible string is present, while the timer driver would be used otherwise.
> 
> If this approach is agreeable, I will proceed with preparing the v5 patch
> accordingly(after fixing other review comments along with this change)
> otherwise will explore the auxbus device please let me know your thoughts.
> 
> Regards,
> Kedar.
> > > +           #else
> > > +                   return -ENODEV;
> > > +           #endif
> > > +   }
> > > +   dev_set_drvdata(&pdev->dev, ttc_config);
> > > +
> > >     if (initialized)
> > >             return 0;
> > >
> >
> > Best regards
> > Uwe


  reply	other threads:[~2025-07-09  6:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 11:35 [PATCH v4 0/3] Add initial support for TTC PWM driver Mubin Sayyed
2025-01-15 11:35 ` [PATCH v4 1/3] clocksource: timer-cadence-ttc: Prepare to support TTC PWM Mubin Sayyed
2025-01-15 11:35 ` [PATCH v4 2/3] clocksource: timer-cadence-ttc: Support TTC device configured as PWM Mubin Sayyed
2025-03-24 11:40   ` Uwe Kleine-König
2025-06-20 10:23     ` Rao, Appana Durga Kedareswara
2025-06-20 12:09     ` Rao, Appana Durga Kedareswara
2025-07-09  6:51       ` Rao, Appana Durga Kedareswara [this message]
2025-07-09  7:26         ` Krzysztof Kozlowski
2025-01-15 11:35 ` [PATCH v4 3/3] pwm: pwm-cadence: Add support for TTC PWM Mubin Sayyed
2025-03-24 11:29   ` Uwe Kleine-König

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=DS7PR12MB82495FE4A65F266D0857EB408F49A@DS7PR12MB8249.namprd12.prod.outlook.com \
    --to=appana.durga.kedareswara.rao@amd.com \
    --cc=MeherThanmaiee.Vanukuri@amd.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=git@amd.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=michal.simek@amd.com \
    --cc=tglx@linutronix.de \
    --cc=ukleinek@kernel.org \
    /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®