All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
To: Samuel Jiang <chyishian.jiang@gmail.com>,
	Vijay Khemka <vijaykhemka@fb.com>,
	qianlihu <wangzhiqiang8906@gmail.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: [HELP] ipmi-kcs didn't work
Date: Fri, 30 Nov 2018 09:31:29 -0600	[thread overview]
Message-ID: <db5cfcea-972d-2f50-05f4-266ab2c8f310@linux.intel.com> (raw)
In-Reply-To: <4780f022-1c80-4b53-9eb1-0e3fe313c6a2@Spark>

On 11/29/2018 9:00 PM, Samuel Jiang wrote:
> Hi Jae,
> 
> We also encountered the same situation a month ago.
> We try to enable the LPC clock on devicetree to resolve this problem not 
> direct modify clock driver.
> 
> lpc_ctrl: lpc-ctrl@0 {
>   compatible = "aspeed,ast2500-lpc-ctrl”;
>   reg = <0x0 0x80>;
>   clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
>      status = “okay”;
> };
> 
> However, I’m not sure which is better for LPC_CLCK setting.
> Whether we should modify driver if original data is enabled or should 
> enable on the device tree, correct?
> 
> 

Hi Samuel,

Yes, you are right. I realized that kcs_bmc_aspeed.c doesn't have any
clock control code so adding a clocks setting into kcs dtsi code doesn't
make any help. Also, it was the reason why the change is needed on
clk-aspeed.c. Enabling lpc_ctrl node you suggested seems a right way.

Hi Vijay,
Can you please try the way Samuel suggested after removing changes I
gave you. Samuel's solution looks good to me.

Thanks,
Jae

> Thanks,
> 
> Samuel Jiang
> On Nov 30, 2018, 2:58 AM +0800, Jae Hyun Yoo 
> <jae.hyun.yoo@linux.intel.com>, wrote:
>> On 11/29/2018 12:42 PM, Vijay Khemka wrote:
>>> Try below fix on clk-aspeed.c
>>>
>>> diff --git a/drivers/clk/clk-aspeed.c b/drivers/clk/clk-aspeed.c
>>> index 596136793fc4..b55d35e3eb5e 100644
>>> --- a/drivers/clk/clk-aspeed.c
>>> +++ b/drivers/clk/clk-aspeed.c
>>> @@ -95,7 +95,7 @@ static const struct aspeed_gate_data aspeed_gates[] = {
>>> [ASPEED_CLK_GATE_DCLK] = { 5, -1, "dclk-gate",
>>> NULL, CLK_IS_CRITICAL }, /* DAC */
>>> [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate",
>>> "clkin", CLK_IS_CRITICAL },
>>> [ASPEED_CLK_GATE_USBPORT2CLK] = { 7, 3, "usb-port2-gate",
>>> NULL, 0 }, /* USB2.0 Host port 2 */
>>> - [ASPEED_CLK_GATE_LCLK] = { 8, 5, "lclk-gate",
>>> NULL, 0 }, /* LPC */
>>> + [ASPEED_CLK_GATE_LCLK] = { 8, 5, "lclk-gate",
>>> NULL, CLK_IS_CRITICAL }, /* LPC */
>>> [ASPEED_CLK_GATE_USBUHCICLK] = { 9, 15, "usb-uhci-gate",
>>> NULL, 0 }, /* USB1.1 (requires port 2 enabled) */
>>> [ASPEED_CLK_GATE_D1CLK] = { 10, 13, "d1clk-gate",
>>> NULL, 0 }, /* GFX CRT */
>>> [ASPEED_CLK_GATE_YCLK] = { 13, 4, "yclk-gate",
>>> NULL, 0 }, /* HAC */
>>>
>>> In my experiments on my system, LCLK was not enabled due to the null
>>> parent dependency so I added CLK_IS_CRITICAL flag to enable the clk.
>>>
>>> LPC interface is default pin pad setting of AST2500 so you might not
>>> need a pinctrl setting on it if you didn't change it's pin pads to GPIO
>>> or eSPI.
>>>
>>> Cheers,
>>> Jae
>>>
>>> Jae,
>>> Are you planning to upstream this patch as it is needed for kcsbridge 
>>> to work. Also aspeed-g5 dtsi file.
>>
>> Okay, I'll submit this patch and dtsi patch to community.
>>
>> Thanks,
>> Jae
>>
>>>
>>> Regards
>>> -Vijay
>>>
>>>

  reply	other threads:[~2018-11-30 15:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14 10:38 [HELP] ipmi-kcs didn't work qianlihu
2018-11-14 17:17 ` Jae Hyun Yoo
2018-11-15  1:49   ` qianlihu
2018-11-15 19:30     ` Jae Hyun Yoo
2018-11-16 10:27       ` qianlihu
2018-11-29 18:42       ` Vijay Khemka
2018-11-29 18:57         ` Jae Hyun Yoo
2018-11-30  3:00           ` Samuel Jiang
2018-11-30 15:31             ` Jae Hyun Yoo [this message]
2018-11-30 18:57               ` Vijay Khemka
2018-11-30 19:29                 ` Jae Hyun Yoo
2018-11-30 22:39                   ` Vijay Khemka
2018-11-30 23:04                     ` Jae Hyun Yoo
2018-12-01 14:09                       ` Samuel Jiang
2018-12-01 14:29                       ` Samuel Jiang
2018-12-03  1:55                         ` Samuel Jiang
2018-12-03 15:54                         ` Jae Hyun Yoo
2018-12-03 19:37                           ` Vijay Khemka
2018-12-03 20:16                             ` Jae Hyun Yoo
2018-12-04  6:18                             ` Ryan Chen
2018-12-04 15:44                               ` Jae Hyun Yoo
2018-12-04 23:59                                 ` Vijay Khemka
2018-12-05  1:04                                   ` Ryan Chen
2018-12-05 14:54                                     ` Jae Hyun Yoo
2018-12-05 14:51                                   ` Jae Hyun Yoo
2018-12-05  6:45                               ` Samuel Jiang
2018-12-05  8:43                                 ` Ryan Chen
2018-12-05 15:01                                 ` Jae Hyun Yoo
2018-12-06  8:53                                   ` Samuel Jiang
2018-12-04  2:18                           ` Vijay Khemka
2018-12-03 12:52                   ` qianlihu

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=db5cfcea-972d-2f50-05f4-266ab2c8f310@linux.intel.com \
    --to=jae.hyun.yoo@linux.intel.com \
    --cc=chyishian.jiang@gmail.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=vijaykhemka@fb.com \
    --cc=wangzhiqiang8906@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.