Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: linux@armlinux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: mainline/master boot bisection: v4.15-rc3 on peach-pi #3228-staging
Date: Mon, 11 Dec 2017 23:02:13 +0000	[thread overview]
Message-ID: <20171211230213.GB1959@n2100.armlinux.org.uk> (raw)
In-Reply-To: <20171211225829.GA1959@n2100.armlinux.org.uk>

On Mon, Dec 11, 2017 at 10:58:29PM +0000, Russell King - ARM Linux wrote:
> On Mon, Dec 11, 2017 at 11:54:48PM +0100, Javier Martinez Canillas wrote:
> > So I gave a quick look to this, and at the very least there's a bug in
> > the Exynos5800 Peach Pi DTS caused by commit 1cb686c08d12 ("ARM: dts:
> > exynos: Add status property to Exynos 542x Mixer nodes").
> > 
> > I've posted a fix for that:
> > 
> > https://patchwork.kernel.org/patch/10105921/
> > 
> > I believe this could be also be the cause for the boot failure, since
> > I see in the boot log that things start to go wrong after exynos-drm
> > fails to bind the HDMI component:
> > 
> > [ 2.916347] exynos-drm exynos-drm: failed to bind 14530000.hdmi (ops
> > 0xc1398690): -1
> 
> Umm, -1 ?  Looking that error code up in
> include/uapi/asm-generic/errno-base.h says it's -EPERM.
> 
> I suspect that's someone just returning -1 because they're lazy...
> which is real bad form and needs fixing.

Oh, it really is -EPERM:

struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
                                       enum exynos_drm_output_type out_type)
{
        struct drm_crtc *crtc;

        drm_for_each_crtc(crtc, drm_dev)
                if (to_exynos_crtc(crtc)->type == out_type)
                        return to_exynos_crtc(crtc);

        return ERR_PTR(-EPERM);
}

Does "Operation not permitted" really convey the error here?  It doesn't
look like a permission error to me.

Can we please avoid abusing errno codes?

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up

  reply	other threads:[~2017-12-11 23:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <680389204.71.1512980755810.JavaMail.jenkins@ip-172-30-0-246>
     [not found] ` <51e6d7fb-ac9e-a59f-ea63-ad06219b429d@collabora.com>
2017-12-11 17:05   ` mainline/master boot bisection: v4.15-rc3 on peach-pi #3228-staging Daniel Vetter
2017-12-11 22:28     ` Javier Martinez Canillas
2017-12-11 22:54       ` Javier Martinez Canillas
2017-12-11 22:58         ` Russell King - ARM Linux
2017-12-11 23:02           ` Russell King - ARM Linux [this message]
2017-12-11 23:25             ` Shuah Khan
2017-12-12  7:54               ` Marek Szyprowski
2017-12-12  8:00                 ` Javier Martinez Canillas
2017-12-12  8:47                   ` Marek Szyprowski
2017-12-12 10:10                     ` Krzysztof Kozlowski
2017-12-12 14:47                     ` Shuah Khan
2017-12-12 18:26                       ` Shuah Khan
2017-12-12 18:58                         ` Javier Martinez Canillas
2017-12-12 11:38       ` Marek Szyprowski
2017-12-12 14:39         ` Shuah Khan
2017-12-12 18:14         ` Daniel Vetter
2017-12-13  9:02           ` Marek Szyprowski

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=20171211230213.GB1959@n2100.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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