Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1949338pxb; Sun, 31 Oct 2021 04:29:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBLbp48wfXjDzbPcSzSJ9A9GYNfDwLy8hvJpJGCyK07dP4iRg5si1WwnLcY6zAlQiQxFxY X-Received: by 2002:a05:6e02:148c:: with SMTP id n12mr16120896ilk.311.1635679785085; Sun, 31 Oct 2021 04:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635679785; cv=none; d=google.com; s=arc-20160816; b=I9K6111Aeaa3/DajjhKEyGiFmpsVIqRW37KVXwNQoMxTwqvu7Ar+wRD4ruNuzYdJIX 30CwD72mlLkexfLpbFveu8RKLPGO5LnIg63jjzGB44SbVzKparA66pHCE6ODCmN9XELW +4vCptQ6jjkE5uH4HHCkonVzcUJiPeTZr79Cnd9wRmi5sfbTfoQkXIv+PARzyRKjImdn ZJgH/wXUvGM4XU+kBpQJgWDBqwZmpZquQORlRIndvCLxtJ0SMsjoieudZuwt7yghSCyp cy40cGyn63k9H0fF3DoyQ4AnVNoXKq4OguCuQLBYQ34c5XtFTl+huAcZbqfs+MruyC4q JeDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=wdurIfkcgVWeZd5mdemxVNlqY2gW5uky0Oy4YT5+c5o=; b=y7RuvyCGA3Sc+vErW5q9zsSOLIx0j8kmHlOSVxe8tNdDQ01A5LW5vJdhujvTNEsbIr qdmf/4GkCG8fn3Tw7oj5oSTROYgul12HzFCDXnPrgNZUDqU8cvH+PBENLikoSQEaZ1Yj CzzFK7Oj8Qc5sh2PKfyDWUBmapIUnJNhq96Sv/303TQoRQ9CYc/KrInCCZFtCo53dWmX AMputSK57m9VLrJusv0W7JmxzabuNBCG02SVkxT5VVVXM39k6vg0ftDiCjdKOpc0nqP0 3D6wnxepoT36z9MOzQMJwXqebsKruTH4ZfJ4kuTPVZy2dsc3dK8RK7DK+pUasC/Ecb+Z z/ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=oc2RO08d; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si18235323ilv.58.2021.10.31.04.29.11; Sun, 31 Oct 2021 04:29:45 -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=fail header.i=@kernel.org header.s=k20201202 header.b=oc2RO08d; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhJaL1i (ORCPT + 99 others); Sun, 31 Oct 2021 07:27:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:47130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhJaL1i (ORCPT ); Sun, 31 Oct 2021 07:27:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4D18F60F58; Sun, 31 Oct 2021 11:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635679506; bh=/ba630/yMxIG0G/HrfuOl0TTd12zVAhW+3p5jt4O1qg=; h=From:To:Cc:Subject:Date:From; b=oc2RO08dPHGJIm4glq6KAAnyX1wJ3BcD1+WsaqgNw7C5s7sWu6Qf4EUW2Vm6UsAsn QV2meBXVjguJoYt5SVMRQ1eoRT2pyC31iglV8D5F6Pkqg4/36ERdF7S/B6vdd8BsTg 1gO8Nn8NZsVCHFf6ZF/ii+64U7GyKjRUqsCbIMP/6erYsHzEfiSTT8CUDZcCekLiA3 /wDiP/+hf7Vq0OygRfpYk7Tke8GXHhvWOo7z4OkDjWm0D20Myxqsi3+Zns0U8bg9ST P1bOAn/Ircmq2S55sgWZNYpKDJfq45eyq/V/O7qUc8oRtZ3c5nY9z7fiplI4UsLq3v TKJh1orqxpkrw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mh8xT-003wZJ-Cp; Sun, 31 Oct 2021 11:25:03 +0000 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Arnd Bergmann , Dan Carpenter , Greg Kroah-Hartman , Kaixu Xia , Mauro Carvalho Chehab , Peter Zijlstra , Sakari Ailus , Thomas Gleixner , Tsuchiya Yuto , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 1/3] media: atomisp: don't print errors for ignored MBUS formats Date: Sun, 31 Oct 2021 11:25:00 +0000 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bayer formats aren't currently available for userspace to select: those are marked as IA_CSS_FRAME_FORMAT_RAW and trying to get them result on binary firmware load errors: [74625.258097] atomisp-isp2 0000:00:03.0: Using binary isp_preview_var_isp2 (id 22), type 0, mode 1, continuous true [74625.258146] atomisp-isp2 0000:00:03.0: Seeking for binary failed at: [74625.258161] CPU: 3 PID: 2792 Comm: v4l2grab Tainted: G C 5.15.0-rc4+ #77 [74625.258190] Hardware name: ASUSTeK COMPUTER INC. T101HA/T101HA, BIOS T101HA.306 04/23/2019 [74625.258208] Call Trace: [74625.258231] dump_stack_lvl+0x46/0x5a [74625.258272] ia_css_binary_find+0xa7d/0xcf0 [atomisp] [74625.258570] load_preview_binaries+0x323/0x3c0 [atomisp] ... [74625.265892] atomisp-isp2 0000:00:03.0: can't create streams [74625.265937] atomisp-isp2 0000:00:03.0: __get_frame_info 1604x1200 (padded to 0) returned -22 [74625.265962] atomisp-isp2 0000:00:03.0: Can't set format on ISP. Error -22 As those formats are ignored by purpose, it doesn't make any sense to print a message like: atomisp_enum_fmt_cap(): format for code 3007 not found. for those. Yet, some day it would be interesting to also report the bayer formats, letting userspace to decode them on a different way. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c index f082d7a67875..8f0a9a69f075 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c +++ b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c @@ -829,8 +829,6 @@ static int atomisp_enum_fmt_cap(struct file *file, void *fh, f->pixelformat = format->pixelformat; return 0; } - dev_err(isp->dev, "%s(): format for code %x not found.\n", - __func__, code.code); return -EINVAL; } -- 2.31.1