Re: [PATCH v3 3/3] pwm: argon-fan-hat: Add Argon40 Fan HAT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Marek,

On Sat, Jun 21, 2025 at 07:19:51PM +0200, Marek Vasut wrote:
> On 6/17/25 4:02 PM, Uwe Kleine-König wrote:
> > > +static void argon_fan_hat_i2c_shutdown(struct i2c_client *i2c)
> > > +{
> > > +	argon_fan_hat_write(i2c, 100);
> > > +}
> > 
> > Isn't that something that the fan driver should cope for? PWM drivers
> > usually do nothing on shutdown.
> 
> It's probably best to force the blower fan to maximum before
> reboot/shutdown. The firmware might not handle the fan and the SoC might get
> very hot before Linux boots again.

This is a IMHO a layer violation though. Yes, this PWM only comes in
combination with a fan. But still, the reason to want to emit a 100%
relative duty is because there is a fan, not because this is a PWM. So
this belongs into the fan part. And "funny" enough pwm-fan also has a
.shutdown callback that disables the fan.

So I'd ask you to address this part in the pwm-fan driver and drop the
shutdown callback here.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux