From: Peter Hung <hpeter@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
tom_tsai@fintek.com.tw, Peter H <peter_hong@fintek.com.tw>,
Peter Hung <hpeter+linux_kernel@gmail.com>
Subject: Re: [PATCH 2/2] gpio-f7188x: filter non-export gpio for F81866
Date: Wed, 13 Jan 2016 10:03:55 +0800 [thread overview]
Message-ID: <5695B08B.1090200@gmail.com> (raw)
In-Reply-To: <CAHp75VctumwyOtLpqyCB3ABUu8ktwhN94POGdtS4Ug7cnuayEg@mail.gmail.com>
Hi Andy,
Andy Shevchenko 於 2016/1/12 下午 05:33 寫道:
> On Tue, Jan 12, 2016 at 9:41 AM, Peter Hung <hpeter@gmail.com> wrote:
>> Dont export gpios which not enabled by motherboard manufacturer.
>
> 'Do not' or 'Don't'.
>
> Perhaps 'GPIOs'.
>
> 'which are not enabled'
OK.
>> +#define F81866_PORT_SEL_REG 0x27
>> +#define F81866_MULTI_FUN1_REG 0x28
>> +#define F81866_MULTI_FUN3_REG 0x29
>> +#define F81866_MULTI_FUN4_REG 0x2B
>> +#define F81866_GPIO_EN_REG 0x2C
>> +
>
> Move this before IDs block.
OK.
>> +static inline void superio_mask_outb(int base, int reg, int mask, int val)
>
> Usually we named such as _update or _update_bits.
> superio_update()
OK
>> +static int f81866_verify_gpioset(int base, int set)
>
> …_gpio_verify() looks more suitable to the existing scheme.
OK
>> + * manufacturer.
>> + */
>> + if (sio->type == f81866 && f81866_verify_gpioset(sio->addr, i))
>> + continue;
>> +
>> + dev_dbg(&pdev->dev, "%s: register GPIO%xx set\n", __func__,
>
> %x ?
Sorry for misunderstand. This section will print debug message as GPIO3x
set if GPIO3 set enabled, so I used %xx.
We are discussing about the patch with maintainer. It maybe drop if
don't need filter.
Thanks for your advices.
--
With Best Regards,
Peter Hung
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Peter Hung <hpeter@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
tom_tsai@fintek.com.tw, Peter H <peter_hong@fintek.com.tw>,
Peter Hung <hpeter+linux_kernel@gmail.com>
Subject: Re: [PATCH 2/2] gpio-f7188x: filter non-export gpio for F81866
Date: Wed, 13 Jan 2016 10:03:55 +0800 [thread overview]
Message-ID: <5695B08B.1090200@gmail.com> (raw)
In-Reply-To: <CAHp75VctumwyOtLpqyCB3ABUu8ktwhN94POGdtS4Ug7cnuayEg@mail.gmail.com>
Hi Andy,
Andy Shevchenko 於 2016/1/12 下午 05:33 寫道:
> On Tue, Jan 12, 2016 at 9:41 AM, Peter Hung <hpeter@gmail.com> wrote:
>> Dont export gpios which not enabled by motherboard manufacturer.
>
> 'Do not' or 'Don't'.
>
> Perhaps 'GPIOs'.
>
> 'which are not enabled'
OK.
>> +#define F81866_PORT_SEL_REG 0x27
>> +#define F81866_MULTI_FUN1_REG 0x28
>> +#define F81866_MULTI_FUN3_REG 0x29
>> +#define F81866_MULTI_FUN4_REG 0x2B
>> +#define F81866_GPIO_EN_REG 0x2C
>> +
>
> Move this before IDs block.
OK.
>> +static inline void superio_mask_outb(int base, int reg, int mask, int val)
>
> Usually we named such as _update or _update_bits.
> superio_update()
OK
>> +static int f81866_verify_gpioset(int base, int set)
>
> …_gpio_verify() looks more suitable to the existing scheme.
OK
>> + * manufacturer.
>> + */
>> + if (sio->type == f81866 && f81866_verify_gpioset(sio->addr, i))
>> + continue;
>> +
>> + dev_dbg(&pdev->dev, "%s: register GPIO%xx set\n", __func__,
>
> %x ?
Sorry for misunderstand. This section will print debug message as GPIO3x
set if GPIO3 set enabled, so I used %xx.
We are discussing about the patch with maintainer. It maybe drop if
don't need filter.
Thanks for your advices.
--
With Best Regards,
Peter Hung
next prev parent reply other threads:[~2016-01-13 2:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 7:41 [PATCH 0/2] gpio-f7188x: Add F81886 gpio function Peter Hung
2016-01-12 7:41 ` [PATCH 1/2] gpio-f7188x: add Fintek F81866 SuperIO support Peter Hung
2016-01-12 7:41 ` [PATCH 2/2] gpio-f7188x: filter non-export gpio for F81866 Peter Hung
2016-01-12 9:33 ` Andy Shevchenko
2016-01-13 2:03 ` Peter Hung [this message]
2016-01-13 2:03 ` Peter Hung
2016-01-12 15:36 ` Simon Guinot
2016-01-13 1:56 ` Peter Hung
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=5695B08B.1090200@gmail.com \
--to=hpeter@gmail.com \
--cc=andy.shevchenko@gmail.com \
--cc=gnurou@gmail.com \
--cc=hpeter+linux_kernel@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter_hong@fintek.com.tw \
--cc=tom_tsai@fintek.com.tw \
/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.