Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2474765pxb; Fri, 29 Oct 2021 02:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO0QYOZGHraGZbDPLvhRTf/tW5oqP9BGxMy6vqqhpah+nTeM4MT879HhHCvfC3o3fAguiX X-Received: by 2002:a17:902:8bc4:b029:12b:8470:e29e with SMTP id r4-20020a1709028bc4b029012b8470e29emr8852240plo.2.1635498272735; Fri, 29 Oct 2021 02:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635498272; cv=none; d=google.com; s=arc-20160816; b=FDE1f39zsTNUPcTZk4ZZW5wsecot2SEpWzmkbbJUx1JRDSR5JA8ZwZw5mhNGA0v5J8 ubmSAsMsk16qeIZLm+SDSnQW8z9tHVpbXBG8Iimis0CRDk2iSVTy3vLxzH3rrzeux1RI lKOU8tbZyw3vpIYL3B5gd/WdiGfXKIYm+TUQWQNtFCL5cckvRT3QpC9LGW+36cL11Cb9 +kqdF4XaoM6e7lfZuX1iFaKHUINuNzzu2/ikGHuLBnbzx1wojRuqPhIjuNzjV/Yu2Oni mYrztw3uYpAW9g7ywachw2wmoUbM2P9tE1H/MThhC2J7f0P55IIRrizKeNAQQwwviOA3 A6Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nS6jYz3cucdlFDbq8U4H9S+iq+KrEhV7Y5RCLPWPosQ=; b=RTJHHmk2LIjMXQVV88RmZn55sCy4TohxKWZpoD5s/BlOgpZou+JKnysr0cCYXdnEIh cX6Q2nWSzJFwsottc7JEsr5kUUbJJyozcZWD5oTZzA4eL93LwH5Ofn2V1SEOPJus00IH DOFRnHCJmZsZaQnWZCohUfuLunzJ0fTUjVPXwEdpSn5Xa3IC58hK+8db2MOhtluxV3Ve pUpBULKYhbICxrB0UWf3wGTYc0ExO6p5rmioSA37BRruBloir3aszB4VNoNB4DnJQ9Gr Py/LSXfVzCaLw2bJj/AmZS3bEU7O3UNa2CKQZhSZE7ah1Zvi681EGavGpLlDZ6ExaeUn EBXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KYyQ+UCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si5564566plt.314.2021.10.29.02.04.18; Fri, 29 Oct 2021 02:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KYyQ+UCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbhJ2JFD (ORCPT + 99 others); Fri, 29 Oct 2021 05:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbhJ2JFD (ORCPT ); Fri, 29 Oct 2021 05:05:03 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C652FC061570; Fri, 29 Oct 2021 02:02:34 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id z20so36598507edc.13; Fri, 29 Oct 2021 02:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nS6jYz3cucdlFDbq8U4H9S+iq+KrEhV7Y5RCLPWPosQ=; b=KYyQ+UCosdWW8cktMHLXpCWFab8PSevDJTpCqDaFhtfc7I2yFhh89rWYfyoU4A6puw 7TSL6WwBgPfhlG3vz+A782SK5LRvJB968inOI0Z4Rua30P8LeZ6YExu3x0Y0V25c5u1m T2t7BZ20xwlTFeZQ71GUckB8SuwCoh6geXVxFXAN/CA2GBI8fgQQB6/p2OilcMPJhgNe a2FdeFAT2qmZ5BPilVH1q3LhNfhLj2OVOLaggErYPk982qVn0pCIXTHtPEfm2EQJ5pD8 EoM1KI5mYXIPppAaxltzHVirRKUmU0/7LrsnzYNuY7ffs8VdJiYGs98qhZGF/t5wIV/H O38Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nS6jYz3cucdlFDbq8U4H9S+iq+KrEhV7Y5RCLPWPosQ=; b=VzuLOSY/3w5Jx+Y5x8kLUgdFENHetO69AMydeWpKGUOsHoegQiaVfRIYopmJ29ls5E CWb+6UH4DcZgSExYwWoPrmTyhgJ8hF3DJrYAoSu6rlLeL0p8bizrTYuxbiZ1lUqs2Cq2 sQu/WQYymD+01w1IoVV6GNoaaPBvC24/lQkuAruiFLy18PWI6Mq9UgMpMTG2Ko9BGXJj QCj/6hRJ2RtgucJGXxwUulwvt3sNt27GW782nAKRsirnHlW0aKGI3TQ0bgjWSJPeTYMH BCkwca42Mcw6Sxg6VlEitPM/B7io48GGFAwa7+Rx+/Kiory3D2AleAt+paJSW5OZKwec FP4g== X-Gm-Message-State: AOAM533JLfeBiWLdhvWNP14xbwGa+DYaEiTJSNuKPm90aEdAkmcEAwn0 VuaKR9w/H0a196lDBstW8FkN5NgZ/AkagCaJ8ao= X-Received: by 2002:a50:9ee3:: with SMTP id a90mr7723267edf.224.1635498153395; Fri, 29 Oct 2021 02:02:33 -0700 (PDT) MIME-Version: 1.0 References: <750e50daa3ed65a7eb060cb0eb5cfc60dc9386be.1635497370.git.mchehab+huawei@kernel.org> In-Reply-To: <750e50daa3ed65a7eb060cb0eb5cfc60dc9386be.1635497370.git.mchehab+huawei@kernel.org> From: Andy Shevchenko Date: Fri, 29 Oct 2021 12:01:57 +0300 Message-ID: Subject: Re: [PATCH 1/2] media: atomisp: better describe get_frame_info issues To: Mauro Carvalho Chehab Cc: Linuxarm , mauro.chehab@huawei.com, Aditya Srivastava , Alex Dewar , Aline Santana Cordeiro , Andy Shevchenko , Arnd Bergmann , Baokun Li , Greg Kroah-Hartman , Hans Verkuil , Kaixu Xia , Mauro Carvalho Chehab , Sakari Ailus , Tomi Valkeinen , Tsuchiya Yuto , Yang Li , Linux Kernel Mailing List , Linux Media Mailing List , linux-staging@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 29, 2021 at 11:50 AM Mauro Carvalho Chehab wrote: > > When atomisp is used by a normal client, it fails to get > frame info. However, the information is confusing and misleading, > as there are several wrappers for such function, and the error > could be on different places. > > So, improve the error log in order to allow narrowing down > where the error is actually occuring. ... > + switch (type) { > + case ATOMISP_CSS_VF_FRAME: > + *info = p_info.vf_output_info[0]; > + dev_dbg(isp->dev, "getting vf frame info.\n"); > + break; > + case ATOMISP_CSS_SECOND_VF_FRAME: > + *info = p_info.vf_output_info[1]; > + dev_dbg(isp->dev, "getting second vf frame info.\n"); > + break; > + case ATOMISP_CSS_OUTPUT_FRAME: > + *info = p_info.output_info[0]; > + dev_dbg(isp->dev, "getting main frame info.\n"); > + break; > + case ATOMISP_CSS_SECOND_OUTPUT_FRAME: > + *info = p_info.output_info[1]; > + dev_dbg(isp->dev, "getting second main frame info.\n"); > + break; > + case ATOMISP_CSS_RAW_FRAME: > + *info = p_info.raw_output_info; > + dev_dbg(isp->dev, "getting raw frame info.\n"); Can we get break; here followed by default case? > } > + dev_dbg(isp->dev, "get frame info: w=%d, h=%d, num_invalid_frames %d.\n", > + info->res.width, info->res.height, p_info.num_invalid_frames); > + > + return 0; -- With Best Regards, Andy Shevchenko