From: "xingtong.wu" <xingtong_wu@163.com>
To: Ashok Raj <ashok_raj@linux.intel.com>
Cc: ilpo.jarvinen@linux.intel.com, hdegoede@redhat.com,
markgross@kernel.org, xingtong.wu@siemens.com,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, gerd.haeussler.ext@siemens.com,
tobias.schaffner@siemens.com, lkp@intel.com,
Ashok Raj <ashok.raj@intel.com>
Subject: Re: [PATCH v2 2/2] platform/x86/siemens: simatic-ipc-batt: fix logic error for BX-59A
Date: Thu, 17 Aug 2023 09:21:07 +0800 [thread overview]
Message-ID: <0a50f81d-ffc2-9a24-9798-424f353d209e@163.com> (raw)
In-Reply-To: <ZNzvMMCUMDrgmTnn@araj-dh-work>
On 2023/8/16 23:45, Ashok Raj wrote:
> On Sat, Aug 01, 2043 at 01:34:17AM +0800, xingtong_wu@163.com wrote:
> ^^^^^^^^^^^^^^^^^^^^
>
> Nice way to keep your mail on top of the sort :-).. You need to fixup your
> system date.
I'm sorry that there are time problem on my local machine which lead to a
wrong time in email, but I just sent an email to remind hdegoede@redhat.com
individually, the time problem was solved by him on his branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=b01c1e022f7f0c327ecc7544dc44d5f80a2d2bd9
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=7abf253afa5c72c0c7eb21f67da1d443f036737a
>
>> From: "xingtong.wu" <xingtong.wu@siemens.com>
>>
>> The variable "priv.devmode" is missing from if statement that leads
>> to a logical error. Add the missing variable to the if condition.
>>
>> Fixes: c56beff20375 ("platform/x86/siemens: simatic-ipc-batt: add support for module BX-59A")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202308010001.BGYCSQrl-lkp@intel.com/
>>
>> Signed-off-by: xingtong.wu <xingtong.wu@siemens.com>
>> ---
>> drivers/platform/x86/siemens/simatic-ipc-batt.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/platform/x86/siemens/simatic-ipc-batt.c b/drivers/platform/x86/siemens/simatic-ipc-batt.c
>> index d66b9969234b..e6c12c52843c 100644
>> --- a/drivers/platform/x86/siemens/simatic-ipc-batt.c
>> +++ b/drivers/platform/x86/siemens/simatic-ipc-batt.c
>> @@ -194,7 +194,8 @@ int simatic_ipc_batt_probe(struct platform_device *pdev, struct gpiod_lookup_tab
>>
>> if (table->table[2].key) {
>> flags = GPIOD_OUT_HIGH;
>> - if (priv.devmode == SIMATIC_IPC_DEVICE_BX_21A || SIMATIC_IPC_DEVICE_BX_59A)
>> + if (priv.devmode == SIMATIC_IPC_DEVICE_BX_21A ||
>> + priv.devmode == SIMATIC_IPC_DEVICE_BX_59A)
>> flags = GPIOD_OUT_LOW;
>> priv.gpios[2] = devm_gpiod_get_index(dev, "CMOSBattery meter", 2, flags);
>> if (IS_ERR(priv.gpios[2])) {
>> --
>> 2.25.1
>>
next prev parent reply other threads:[~2023-08-17 1:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-31 7:14 [PATCH 0/3] platform/x86: simatic-ipc: add another model BX-56A/BX-59A xingtong_wu
2023-07-31 7:14 ` [PATCH 1/3] platform/x86: simatic-ipc: add new models BX-56A/BX-59A xingtong_wu
2023-08-01 9:04 ` [PATCH 1/2] platform/x86/siemens: simatic-ipc: fix logic error in BX-59A xingtong_wu
2023-08-01 9:10 ` Hans de Goede
2023-08-04 13:41 ` Ilpo Järvinen
2043-07-31 17:30 ` [PATCH v2 0/2] fix logic errors " xingtong_wu
2043-07-31 17:30 ` [PATCH v2 1/2] platform/x86/siemens: simatic-ipc: fix logic error " xingtong_wu
2023-08-07 15:56 ` Andy Shevchenko
2043-08-02 17:35 ` [PATCH v3 0/2] fix logical errors for BX-59A xingtong_wu
2023-08-09 20:06 ` Hans de Goede
2043-08-02 17:35 ` [PATCH v3 1/2] platform/x86/siemens: simatic-ipc: fix logical error " xingtong_wu
2023-07-31 7:18 ` [PATCH 2/3] leds: simatic-ipc-leds-gpio: add support for module BX-59A xingtong_wu
2024-02-02 3:35 ` xingtong.wu
2024-02-02 12:42 ` [PATCH " Lee Jones
2023-07-31 7:21 ` [PATCH 3/3] batt: simatic-ipc-batt: " xingtong_wu
2023-08-01 9:07 ` [PATCH 2/2] platform/x86/siemens: simatic-ipc-batt: fix logic error for BX-59A xingtong_wu
2023-08-04 13:43 ` Ilpo Järvinen
2043-07-31 17:34 ` [PATCH v2 " xingtong_wu
2023-08-07 9:00 ` Ilpo Järvinen
2043-08-02 17:38 ` [PATCH v3 2/2] platform/x86/siemens: simatic-ipc-batt: fix logical " xingtong_wu
2023-08-16 15:45 ` [PATCH v2 2/2] platform/x86/siemens: simatic-ipc-batt: fix logic " Ashok Raj
2023-08-17 1:21 ` xingtong.wu [this message]
2023-07-31 12:36 ` [PATCH 0/3] platform/x86: simatic-ipc: add another model BX-56A/BX-59A Hans de Goede
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=0a50f81d-ffc2-9a24-9798-424f353d209e@163.com \
--to=xingtong_wu@163.com \
--cc=ashok.raj@intel.com \
--cc=ashok_raj@linux.intel.com \
--cc=gerd.haeussler.ext@siemens.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=markgross@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tobias.schaffner@siemens.com \
--cc=xingtong.wu@siemens.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
all inboxes | Powered by JetHome®