Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2991802ybh; Sat, 25 Jul 2020 07:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMVTGDAPijImmC3OuKplcFcCW9bA3GBdInQsYstjTF3kEov22UlkYyjwhb2Q2yal+6K1fc X-Received: by 2002:aa7:da8d:: with SMTP id q13mr13628793eds.339.1595688396215; Sat, 25 Jul 2020 07:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595688396; cv=none; d=google.com; s=arc-20160816; b=jZsQfJRqGC06Uvpf+Y0T+d2nYCB0yvdAfLSfxasl/YyTq8MQJUXEn+0yMldha4ZczD 47JEpnWZ7ijyyzxw2qmwJv1d569uL79nYu0On9RQawGAHgN7PCr2WtZqSu/ebMd0sSfA luYJ4sP0OYt+WdH+kNz9XO0jyB9GJ1aBgo7YzL2G2Fl6JQk9KJ4PU+UMKTKjvoirWWks dtjScy3aGOHn5Bb8pbAZl0Rxg+deQNmNGtBgWC19Y3eZxwhkYmTyM60yxfhNzZwBay/b fJZr95BYhubeD0nES9laVlL4fMFr2BROmPPZzPC4Tr4lQ4uUenv7oSU+dkbiwtmLxBhp fYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PrYFb2IYZKFYNy0ZRqbrO/ZpY3ot25T0Fu/kJw/KuIo=; b=EXqInj94iTE+TFJyzOCcECmITbQvKAj5h2kIuQKBDkViFPFTVdVRPZszKydZ7pvmXp iwKmB0I0uOcbx4xhACrH8VzHeZM44RIG1FbxyXDmHps2lvdMZe74AV4LBlciO0jtW9Al +z2GrPJz0d9zYj0LHQTbo/Ybv5bBNyQy6NJgwVsabFBmqCNHvKJHgVFRKvTNYA+aQ3qG /DixTaoFukVLLWUfdP9MuAWbVwK2lkt3VDde9FzV2rZr1CLhU74S5d8jkmaBrZbKgZm6 0gokYOLgTl71kBWIWA+pPLXLDgP5mw2UPNY4m0aylYU4RTPyFICJbPxm/zVEeqB7tj6B IPMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="a52n/QvU"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si2323830edv.602.2020.07.25.07.46.11; Sat, 25 Jul 2020 07:46:36 -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=@chromium.org header.s=google header.b="a52n/QvU"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727122AbgGYOqA (ORCPT + 99 others); Sat, 25 Jul 2020 10:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgGYOp7 (ORCPT ); Sat, 25 Jul 2020 10:45:59 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31ADFC08C5C0 for ; Sat, 25 Jul 2020 07:45:58 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id k22so10626514oib.0 for ; Sat, 25 Jul 2020 07:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PrYFb2IYZKFYNy0ZRqbrO/ZpY3ot25T0Fu/kJw/KuIo=; b=a52n/QvUYfIOQ1LipBknthVlW9Mcm3lbMy3gRRgPbFFfUjZULnS0fWRKJEpWifwT88 1jvcX4G60H61GouIWGnYOKEQL5cSHNAXXfhBfPOhpU3a8+GA1QqQHfuiHRhCstCOt60t tiZ0zXsmcoHSVqHUba7f3nuC/T8AGy58vUksw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PrYFb2IYZKFYNy0ZRqbrO/ZpY3ot25T0Fu/kJw/KuIo=; b=sRJiaAtp0zfd0OHvpkVmFkl9sxYgYj8jeJUsKfSUCli2nd6u17kSBeFe8SHNusJ3d/ DjFFHF2Hhlaa9P4Q7ynSpTppc7V0esXCAf3vlwDqeTkh2JF8puE+E5dVTwUygQglOA4o VR0S4TvOimIdbVhEuZzJjuO/T6sKCpmGOjTl7Rk9JpgCO20kzv+/u7V0zgdHcKZL0sZa v+2fib/TNeAlbyvtNbMc+kx9Uhg61lNsiipbdxKlPKchNyR5nSFudGnZWMYWYNchieja h5CBZNII99lKKR1kwkdXUzn7LbfTXvKqwBZtctT/pID7VSSHhpP7Ucd0lYl5b+KfV9Ar ofeg== X-Gm-Message-State: AOAM532cJZDqfPOMz7LR9i/CwjmlkVcIzu3wEFjb0DnHIi1BVX6Lqbfp RkiViaDrpqHmHRNH/f7kEZzMeriR3kY= X-Received: by 2002:aca:4dc3:: with SMTP id a186mr12325582oib.143.1595688356887; Sat, 25 Jul 2020 07:45:56 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id s26sm739902ooc.31.2020.07.25.07.45.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Jul 2020 07:45:55 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id w17so9173708otl.4 for ; Sat, 25 Jul 2020 07:45:55 -0700 (PDT) X-Received: by 2002:a05:6830:1daa:: with SMTP id z10mr13317108oti.36.1595688354490; Sat, 25 Jul 2020 07:45:54 -0700 (PDT) MIME-Version: 1.0 References: <20200715202233.185680-1-ezequiel@collabora.com> <20200715202233.185680-10-ezequiel@collabora.com> In-Reply-To: <20200715202233.185680-10-ezequiel@collabora.com> From: Alexandre Courbot Date: Sat, 25 Jul 2020 23:45:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS To: Ezequiel Garcia Cc: Linux Media Mailing List , LKML , Tomasz Figa , kernel@collabora.com, Jonas Karlman , Hans Verkuil , Jeffrey Kardatzke , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia wrote: > > Now that slice invariant parameters have been moved, > the driver no longer needs this control, so drop it. > > Signed-off-by: Ezequiel Garcia > --- > drivers/staging/media/hantro/hantro_drv.c | 5 ----- > drivers/staging/media/hantro/hantro_h264.c | 5 ----- > drivers/staging/media/hantro/hantro_hw.h | 2 -- > 3 files changed, 12 deletions(-) > > diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c > index 34797507f214..3cd00cc0a364 100644 > --- a/drivers/staging/media/hantro/hantro_drv.c > +++ b/drivers/staging/media/hantro/hantro_drv.c > @@ -306,11 +306,6 @@ static const struct hantro_ctrl controls[] = { > .cfg = { > .id = V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS, > }, > - }, { > - .codec = HANTRO_H264_DECODER, > - .cfg = { > - .id = V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS, > - }, Isn't this going to make the driver reject (as opposed to just ignore) this control altogether? Also, even though the control is not required anymore, don't we want to check that it is provided in order to ensure user-space follows the spec (granted, this would be better done in a common framework shared by all drivers). I'd also suggest this patch (and the following one) to be merged into the previous one as they are just removing fields that have become unneeded because of it.