Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Geert Uytterhoeven Newsgroups: linux.kernel Subject: Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral Date: Sun, 09 Jul 2017 21:40:01 +0200 Message-ID: References: X-Original-To: Andrew Lunn , Florian Fainelli Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=iIgpx9FrxIoVldj+tCZVLAVEDiWPvflR47pHb2Uptag=; b=pt8RwdpHwSv4Vd5HH8csKMfdDaslQNCCZPHEls6WKGrMVHYLZo1CpEwrC+mfoICCFQ 70HJJ8CgYqtjF0PR5hnJvU27PkkQ0WqfnLs7C3d/pvJAicOONsL3k7Y/8J5UevQWXN3R sM+tQsbEdG5yDAjrzoBhvdVIufCkUizGlhqBwm7WrOb2/IH0PQUy9Mjz2p9Um9sRGvhU /EI10haEmvdWGug3EdOuTl+9qKHHi68CTM7ijkv23JuuYKcvvJLvSL3IBNqgci00+RYE /vGzY3uWGLx0wtdxN7CsxhV7UPlKiqtOoYRM5RhF/X0jUIWdVGD0fVMo0mj20hTzpW27 0H5A== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=iIgpx9FrxIoVldj+tCZVLAVEDiWPvflR47pHb2Uptag=; b=Iv2ohWPCkyqP1J7XRUMrNksRMFhUWOygpGuNzBwk96HqPfYE2ttyq4Qd6oAIhZf0aE AWDLhw58uHIBkMCOHtsDGhiXB1u2iR5po9ouG7QbAsYNwYOIUiPhZ2twtbz5VgU0D+x4 k34sYpZIT9C8PNEff94CWyW5b2DytLLpVzSEU/J2WxoqzPPEnfkoHQ0NxuNp/4A6Cl5t IZ1gfPNKBuOuIH1o6czFD8qVRt6KZgIlej/VPEjgtk+gdrl+9CHBEs3FXIAtB5p8jB0T XfuCnkjzOniMVQJQid42e8HerCJ2XAeAnZ6+4vzReEAzb68mJdbUihhFPTLPxufThShh 96Lw== X-Gm-Message-State: AIVw11113AtzFd8KBCSlE7pn37iDm6FNjkcFd8ihTsFBBu543UASQozr cTHDXjG5kbLS5RoD8Om321sFBKWsUw== X-Received: by 10.36.139.197 with SMTP id g188mr8661633ite.108.1499629093219; Sun, 09 Jul 2017 12:38:13 -0700 (PDT) MIME-Version: 1.0 X-Google-Sender-Auth: E707nRhWdTYQkdc5RrNPpFZlMPc Content-Type: text/plain; charset="UTF-8" Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway X-Original-Cc: Rob Herring , Frank Rowand , Thomas Petazzoni , Sergei Shtylyov , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , Linux-Renesas , "linux-kernel@vger.kernel.org" X-Original-Date: Sun, 9 Jul 2017 21:38:11 +0200 X-Original-Message-ID: X-Original-References: <1495112345-24795-1-git-send-email-geert+renesas@glider.be> <20170518193453.GB13759@lunn.ch> <08a89dd5-b707-8b8f-b8e1-e20b9ed630b7@gmail.com> <38cc7c65-e4ca-cb8a-f43b-ca53e87724cf@gmail.com> <20170709172815.GA28183@lunn.ch> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1683827 Hi Florian, Andrew, On Sun, Jul 9, 2017 at 7:28 PM, Andrew Lunn wrote: >> It sure does fix a real issue, but I am really concerned about the >> inability to test this patch in a configuration where we have multiple >> PHY(s) or MDIO device(s) hanging off the same MDIO bus and one of those >> requesting an EPROBE_DEFER. If that case happens now, it silently falls back to polling, hiding the problem. Actually it means there may be users that rely on this broken behavior, that start to fail when their interrupts are suddenly handled :-( >> I currently don't have a setup where I could exercise this, Andrew, do you? > > What i do have, is a switch with some built in copper Marvell PHYs and > external SFF modules which use fixed link. I can probably hack the > fixed-link driver to return EPROBE_DEFER a few times. That would be great, thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds