From: Miao Wang <shankerwangmiao@gmail.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: Chong Qiao <qiaochong@loongson.cn>, Lee Jones <lee@kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
Corey Minyard <corey@minyard.net>,
Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Xi Ruoyao <xry111@xry111.site>, WANG Xuerui <kernel@xen0n.name>,
Yinbo Zhu <zhuyinbo@loongson.cn>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
mfd@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org,
openipmi-developer@lists.sourceforge.net,
Corey Minyard <cminyard@mvista.com>,
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Subject: Re: [PATCH RFC v9 0/8] mfd: ls2kbmc: multiple fixes for this driver
Date: Tue, 22 Sep 2026 18:54:45 +0800 [thread overview]
Message-ID: <F6B4A7C7-066E-405B-B6B0-B27D29B4BEFB@gmail.com> (raw)
In-Reply-To: <52183cd9-4b43-456d-896d-ee2fea6d5d72@loongson.cn>
Hi,
> 2026年9月22日 17:55,Binbin Zhou <zhoubinbin@loongson.cn> 写道:
>
> Hi:
>
> On 2026/8/11 16:07, Miao Wang via B4 Relay wrote:
>> Previously, the driver has been introduced to support the Loongson 2K
>> BMC running on the Loongson Servers, which is essential to prevent
>> the system from hanging when the BMC is being reset and the default
>> efi-framebuffer is being used. However, there are some drawbacks in the
>> driver.
>> Firstly, the driver tries to read and write to the connected PCI-E host
>> controller registers, assuming that the BMC is connected to LS7A PCI-E
>> host controller. This assumption should be true for real products, but
>> to prevent from accidentally reading and writing to the wrong PCI-E host
>> controller, this driver should be modified to check this before
>> accessing the registers.
>> Secondly, the driver uses non-exported functions to tell the vt
>> subsystem to redraw the screen, preventing the driver from being
>> compiling as a module. This can be fixed by using the exported
>> functions instead.
>> Thirdly, the driver directly accesses the GPIO controller registers
>> using hard-coded addresses, which might conflict with the loaded GPIO
>> controller driver for the same GPIO controller. This is fixed in this
>> series by using the GPIO subsystem APIs instead. To associate a GPIO pin
>> with a certian PCI device, it should be declared in the firmware level,
>> i.e. in the ACPI table or the device tree, and thus the firmware
>> interface should be discussed and coordinated with Loongson personnels.
>> Despite of this, the proposed solution in this series should be the
>> minimum necessary change to express such association. Furthermore, the
>> conventional GPIO pin number and the controller address are also
>> provided, to be used as a fallback when the GPIO pin is not declared.
>> Finally, there is a minor issue in the driver where it changes the
>> mode string describing the screen resolution during probing, which
>> prevents the device from being probed again if -EPROBE_DEFER is
>> returned by the probe function.
>> I have tested the changes in this series on a single-socket Loongson
>> 3C6000 server with a Loongson 2K BMC, and the driver works as expected
>> when the corresponding GPIO driver is additionally loaded.
>> Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
>> ---
>> Changes in v9:
>> - Extend the kernel docs for gpio_device_get_fwnode() to describe the
>> usage of this function, as suggested by Bartosz.
>> - Link to v8: https://lore.kernel.org/r/20260810-ls2kbmc-mod-v8-0-16e44f7322f4@gmail.com
>
> I’m deeply sorry for the delayed response due to personal reasons.
>
> Regarding Patch-1, I don’t mind using your current version as is—it’s more complete. However, I received another email from lkp[1] a few days ago, and I still hope this patch can be merged sooner.
>
> The current discussion is focused on the GPIO-related patch, but in reality, it isn’t closely tied to the other patches; it’s more of an optimization. If possible, I personally think we could set it aside for now and treat it as a separate set of feature optimization patches.
>
> [1]: https://lore.kernel.org/all/202608230816.ifMzE0No-lkp@intel.com/
I'm not opposed to separating the first patch from the other patches.
But it seems that Bartosz has not been back ready for reviewing this
series.
Cheers,
Miao Wang
prev parent reply other threads:[~2026-09-22 10:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 8:07 Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 1/8] mfd: ls2kbmc: Make a copy when parsing mode string Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 2/8] mfd: ls2kbmc: Sanity check for the connected pci port Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 3/8] mfd: ls2kbmc: Redraw using exported functions Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 4/8] mfd: ls2kbmc: Cancel the work queue on removal Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 5/8] ipmi: ls2k: adjust dependency to its mfd driver Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 6/8] gpiolib: add gpio_device_get_fwnode() helper Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 7/8] mfd: ls2kbmc: Capture the reset event of BMC through GPIO Miao Wang via B4 Relay
2026-08-11 8:07 ` [PATCH RFC v9 8/8] mfd: ls2kbmc: Able to be compiled as a module Miao Wang via B4 Relay
2026-08-11 13:47 ` [PATCH RFC v9 0/8] mfd: ls2kbmc: multiple fixes for this driver Bartosz Golaszewski
2026-08-11 14:12 ` Miao Wang
2026-08-13 8:54 ` Lee Jones
2026-08-13 12:09 ` Bartosz Golaszewski
2026-09-22 9:55 ` Binbin Zhou
2026-09-22 10:54 ` Miao Wang [this message]
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=F6B4A7C7-066E-405B-B6B0-B27D29B4BEFB@gmail.com \
--to=shankerwangmiao@gmail.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=cminyard@mvista.com \
--cc=corey@minyard.net \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=lee@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=openipmi-developer@lists.sourceforge.net \
--cc=qiaochong@loongson.cn \
--cc=xry111@xry111.site \
--cc=zhoubinbin@loongson.cn \
--cc=zhuyinbo@loongson.cn \
/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®