From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f67.google.com ([209.85.218.67]:35324 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756813AbcILJGE (ORCPT ); Mon, 12 Sep 2016 05:06:04 -0400 Received: by mail-oi0-f67.google.com with SMTP id 2so21024569oif.2 for ; Mon, 12 Sep 2016 02:06:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <57D66DEC.4090607@jinso.co.jp> References: <57A46D20.7040106@jinso.co.jp> <57C9764F.2070802@jinso.co.jp> <57D66DEC.4090607@jinso.co.jp> From: Geert Uytterhoeven Date: Mon, 12 Sep 2016 11:06:02 +0200 Message-ID: Subject: Re: GEN2: Initialization of VSP1 failed at upstream v4.8-rc2 To: Hiep Cao Minh Cc: Xuan Truong Nguyen , Laurent Pinchart , duclm , Ryusuke Sakato , Kuninori Morimoto , Magnus Damm , Geert Uytterhoeven , =?UTF-8?B?56iy5ZCJ?= , Yoshihiro Shimoda , =?UTF-8?B?RHVuZ++8muS6uuOCvQ==?= , Simon Horman , Linux-Renesas , Wolfram Sang Content-Type: text/plain; charset=UTF-8 Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: Hi Hiep, On Mon, Sep 12, 2016 at 10:57 AM, Hiep Cao Minh wrote: > As you know the information about Initialization of VSP1 failed at upstream > v4.8-rc2 > from the report of "The failure summary report of GEN2 for Linux v4.8-rc2". > "[ 5.237049] vsp1: probe of fe920000.vsp1 failed with error -38 > [ 5.254664] vsp1: probe of fe928000.vsp1 failed with error -38 > [ 5.272277] vsp1: probe of fe930000.vsp1 failed with error -38 > [ 5.289891] vsp1: probe of fe938000.vsp1 failed with error -38" > > I have found the patch that causing of this issue: > "94fcdf8 [media] v4l: vsp1: Add FCP support" > > In this patch, > > "@@ -528,7 +533,7 @@ static int vsp1_pm_runtime_resume(struct device *dev) > return ret; > } > > - return 0; > + return rcar_fcp_enable(vsp1->fcp); > }" > > vsp1_pm_runtime_resume() function should be returned "0" if it success. > I tried to debug this place, and I realize that the rcar_fcp_enable() > function returned "-38" during Initialization. > That's why the error message occurs. > We know that the rcar_fcp_enable() function also returns 0 on success or a > negative error code if an error occurs. > So, I am thinking of something just before it happens. Please see commits d0cd1e773fee06ed "[media] rcar-fcp: Make sure rcar_fcp_enable() returns 0 on success" in renesas-drivers and ba75faf43dc60744 in media-next. But we indeed need this fix in v4.8, not v4.9. 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