From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] pinctrl: k210: Fix inverted IE and OE for I2C
Date: Fri, 13 Nov 2020 08:44:12 -0500 [thread overview]
Message-ID: <0a61539b-aff2-fb66-e559-665e9592af02@gmail.com> (raw)
In-Reply-To: <CAN5B=eJhts6H1WhcDeZCi=q9SHiGe8Qcyy=LMiMWUAJwo-a1bQ@mail.gmail.com>
On 11/13/20 2:19 AM, Rick Chen wrote:
> Hi Sean
>
>>> I2C and SCCB previously shared defaults. However, SCCB needs OE_INV and
>>> IE_INV set, but I2C cannot have those bits set. This adds a separate
>>> default for SCCB.
>>>
>>> Signed-off-by: Sean Anderson <seanga2@gmail.com>
>>> Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com>
>>> ---
>>>
>>> drivers/pinctrl/pinctrl-kendryte.c | 10 ++++++----
>>> 1 file changed, 6 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/drivers/pinctrl/pinctrl-kendryte.c b/drivers/pinctrl/pinctrl-kendryte.c
>>> index 5ad049d955..259a0b507b 100644
>>> --- a/drivers/pinctrl/pinctrl-kendryte.c
>>> +++ b/drivers/pinctrl/pinctrl-kendryte.c
>>> @@ -55,8 +55,9 @@
>>>
>>
>> Reviewed-by: Rick Chen <rick@andestech.com>
>
> Please check about the CI failure items:
> https://travis-ci.org/github/rickchen36/u-boot-riscv/builds/742884254
>
> +drivers/pinctrl/pinctrl-kendryte.c:187:3: error:
> 'K210_PC_DEFAULT_SCCB' undeclared here (not in a function); did you
> mean 'K210_PC_DEFAULT_SPI'?
> 1282+ 187 | [K210_PC_DEFAULT_##mode] = K210_PC_MODE_##mode
> 1283+ | ^~~~~~~~~~~~~~~~
> 1284+drivers/pinctrl/pinctrl-kendryte.c:193:2: note: in expansion of
> macro 'DEFAULT'
> 1285+ 193 | DEFAULT(SCCB),
> 1286+ | ^~~~~~~
> 1287+drivers/pinctrl/pinctrl-kendryte.c:187:3: error: array index in
> initializer not of integer type
> 1288+drivers/pinctrl/pinctrl-kendryte.c:187:3: note: (near
> initialization for 'k210_pc_mode_id_to_mode')
> 1289+make[3]: *** [drivers/pinctrl/pinctrl-kendryte.o] Error 1
> 1290+make[2]: *** [drivers/pinctrl] Error 2
> 1291+make[1]: *** [drivers] Error 2
> 1292+make: *** [sub-make] Error 2
> 1293 riscv: + sipeed_maix_smode
> 1294+drivers/pinctrl/pinctrl-kendryte.c:187:3: error:
> 'K210_PC_DEFAULT_SCCB' undeclared here (not in a function); did you
> mean 'K210_PC_DEFAULT_SPI'?
> 1295+ 187 | [K210_PC_DEFAULT_##mode] = K210_PC_MODE_##mode
> 1296+ | ^~~~~~~~~~~~~~~~
> 1297+drivers/pinctrl/pinctrl-kendryte.c:193:2: note: in expansion of
> macro 'DEFAULT'
> 1298+ 193 | DEFAULT(SCCB),
> 1299+ | ^~~~~~~
> 1300+drivers/pinctrl/pinctrl-kendryte.c:187:3: error: array index in
> initializer not of integer type
> 1301+drivers/pinctrl/pinctrl-kendryte.c:187:3: note: (near
> initialization for 'k210_pc_mode_id_to_mode')
> 1302+make[3]: *** [drivers/pinctrl/pinctrl-kendryte.o] Error 1
>
> Thanks,
> Rick
>
Ok, should be fixed in v2.
--Sean
prev parent reply other threads:[~2020-11-13 13:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-25 20:00 [PATCH 1/2] pinctrl: k210: Fix inverted IE and OE for I2C Sean Anderson
2020-10-25 20:00 ` [PATCH 2/2] pinctrl: k210: Rename power domains to match datasheet Sean Anderson
2020-11-03 6:41 ` Rick Chen
2020-11-03 6:40 ` [PATCH 1/2] pinctrl: k210: Fix inverted IE and OE for I2C Rick Chen
2020-11-13 7:19 ` Rick Chen
2020-11-13 13:44 ` Sean Anderson [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=0a61539b-aff2-fb66-e559-665e9592af02@gmail.com \
--to=seanga2@gmail.com \
--cc=u-boot@lists.denx.de \
/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