From: "thilo.cestonaro@ts.fujitsu.com" <thilo.cestonaro@ts.fujitsu.com>
To: "linux@roeck-us.net" <linux@roeck-us.net>
Cc: "linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
"thilo@cestona.ro" <thilo@cestona.ro>
Subject: Re: [PATCH v3] hwmon: added kernel module for FTS BMC chip "Teutates"
Date: Tue, 5 Jul 2016 10:53:31 +0000 [thread overview]
Message-ID: <1467715839.7498.14.camel@ts.fujitsu.com> (raw)
In-Reply-To: <20160704220402.GA8549@roeck-us.net>
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
Hey Guenter!
> > +config SENSORS_FTSTEUTATES
> > + tristate "Fujitsu Technology Solutions sensor chip Teutates"
> > + depends on I2C
> > + help
> > + If you say yes here you get support for the Fujitsu Technology
> > + Solutions (FTS) sensor chip "Teutates" including support for
> > + the integrated watchdog.
> Did you try to enable this ? Probably not, because if I apply your patch
> and try to run "make allmodconfig" I get
>
> drivers/hwmon/Kconfig:495: syntax error
> drivers/hwmon/Kconfig:494: unknown option "Solutions"
> drivers/hwmon/Kconfig:495: unknown option "the"
> drivers/hwmon/Kconfig:498: syntax error
>
Sorry about that! Indention was wrong.
> > + unsigned char page = reg>>8;
> reg << 8
>
> checkpatch --strict helps finding such places.
>
Thanks for the hint.
Next patch will be checked with --strict, promise! :)
> >
> > + fts_wdt.status |= BIT(WDOG_ACTIVE);
> WDOG_ACTIVE indicates that the watchdog device is opened. You need to set
> WDOG_HW_RUNNING instead.
>
Testing with Kernel 4.4 which has no HW_RUNNING. Forgot to switch it back when
creating the patch.
> >
> > + count = reg;
> > + goto error;
> > + }
> > +
> > + val = fts_write_byte(data->client, FTS_REG_FAN_CONTROL(index),
> > + reg | 0x1);
> > + if (val < 0) {
> val is unsigned long. Why not use ret here ?
>
> Please build your code with W=1 to see (and hopefully eliminate) all those
> errors.
>
Yes! Will use W=1 from now on!
Cheers,
Thilo
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3847 bytes --]
next prev parent reply other threads:[~2016-07-05 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 22:04 [PATCH v3] hwmon: added kernel module for FTS BMC chip "Teutates" Guenter Roeck
2016-07-05 10:53 ` thilo.cestonaro [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-04 15:27 Thilo Cestonaro
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=1467715839.7498.14.camel@ts.fujitsu.com \
--to=thilo.cestonaro@ts.fujitsu.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=thilo@cestona.ro \
/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