From patchwork Mon Jun 5 10:29:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kate Hsuan X-Patchwork-Id: 690015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1F7CC77B73 for ; Mon, 5 Jun 2023 10:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbjFEKaD (ORCPT ); Mon, 5 Jun 2023 06:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjFEKaC (ORCPT ); Mon, 5 Jun 2023 06:30:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F12DEC for ; Mon, 5 Jun 2023 03:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685960956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xnPtTwgao029ZtXY+VEkL6IjneNgZ5e3SngEFAXXG4I=; b=Rc0RD84NzXLsN5Rz2Y7cqImihLI7KReZykKZnLUDDPaGN+rO7JeBuUcmtIg1VOeoOLZd/I F5FIHMygPOXKNuARTjDzqFMLcqYKhJIUjPsoqLaW2XHpFtIfTf5tFv1JGT4N4633+KJudF Uhet7loHlZnKaC4mGlQjFsZoFQ/dfdg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-660-tXQWFKYVOXe1f0CFEbriJA-1; Mon, 05 Jun 2023 06:29:13 -0400 X-MC-Unique: tXQWFKYVOXe1f0CFEbriJA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D509585A5BD; Mon, 5 Jun 2023 10:29:12 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.67.24.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 928F27AE4; Mon, 5 Jun 2023 10:29:09 +0000 (UTC) From: Kate Hsuan To: Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-staging@lists.linux.dev Cc: Kate Hsuan Subject: [PATCH 0/3] Remove #ifdef ISP2401 and unifying sh_css_sp_group structure Date: Mon, 5 Jun 2023 18:29:00 +0800 Message-Id: <20230605102903.924283-1-hpa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org sh_css_sp_group structure was managed by #ifdef ISP2401. The configuration structure was also determined in compile time which means we have to compile the kernel code twice for each ISP2400 and ISP2401. In order to determine the ISP types in runtime, the configuration structure needs to be unified. It allows can be used to configure both types of ISP. Since the length of the sh_css_sp_group for ISP2400 and ISP2401 is different, before submitting the configuration to ISP, the data has to be carefully put the necessary part to a buffer and then submitted to the ISP. Kate Hsuan (3): media: atomisp: sh_css_internal: Unifying sh_css_sp_group to remove #ifdef ISP2401 atomisp: sh_css_params: write the sp_group config according to the ISP model media: atomisp: ia_css_debug: remove unused codes .../runtime/debug/interface/ia_css_debug.h | 6 -- .../pci/runtime/debug/src/ia_css_debug.c | 76 +------------------ .../media/atomisp/pci/sh_css_internal.h | 35 +++------ .../staging/media/atomisp/pci/sh_css_params.c | 37 ++++++++- 4 files changed, 48 insertions(+), 106 deletions(-)