[PATCH 5/6] gpio: Add new gpio-macsmc driver for Apple Macs
Andy Shevchenko
andy.shevchenko at gmail.com
Thu Sep 1 23:31:26 PDT 2022
On Fri, Sep 2, 2022 at 12:52 AM Martin Povišer <povik at cutebit.org> wrote:
> > On 1. 9. 2022, at 20:55, Andy Shevchenko <andy.shevchenko at gmail.com> wrote:
> > On Thu, Sep 1, 2022 at 5:17 PM Russell King <rmk+kernel at armlinux.org.uk> wrote:
>
> >> + ret = apple_smc_write_u32(smcgp->smc, key, CMD_OUTPUT | value);
> >> + if (ret < 0)
> >> + dev_err(smcgp->dev, "GPIO set failed %p4ch = 0x%x\n", &key, value);
> >
> > Strange specifier... It seems like a hashed pointer with added (or
> > skipped? I don't remember) '4ch'. Perhaps you meant one of '%pE',
> > '%p4cc'?
> > Ditto for other cases.
>
> As was pointed out by Sven elsewhere in the thread, this is an
> unupstreamed specifier (that was missed as a dependency of this
> code).
>
> https://github.com/AsahiLinux/linux/blob/f8c0d18173a7b649999ee27515393f7aae40310c/Documentation/core-api/printk-formats.rst#generic-fourcc-code
I don't see why we need that. The %.4s (0x%08x) is repeating that with
the existing codebase. (I do understand why v4l2/drm have it). Ideally
the first should use %4pE, but it might not be suitable in some cases.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list