Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1115832lql; Tue, 12 Mar 2024 07:45:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3yHNbR7T95bAPoGdQuBD+UhL5z9aMv0sdfG7eyt3fZl55zkO2qQAOBpilIwz+RJWfbGVDP8BSmtJOu7P5glKg2DGbuh4ofA1ls/pE+g== X-Google-Smtp-Source: AGHT+IGk8SDi7xAgRsFxdF8GhHBtBQSQ03rMie7y/CNUQkK2DjQ5B/e13QswaMsPE0DAv10MUR7R X-Received: by 2002:ad4:5c8a:0:b0:68f:e925:ada6 with SMTP id o10-20020ad45c8a000000b0068fe925ada6mr13902348qvh.30.1710254706374; Tue, 12 Mar 2024 07:45:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710254706; cv=pass; d=google.com; s=arc-20160816; b=yWJ2i88LgKwxzt24hdudfQo0u5pQQOpDGnxLwuiZ2082T7S4hbIPrPZf36/gzCJ5r9 QW1xmOiwqK+L6u98RljTg3jv47zMnfWIlaed1zS0Igj+SYBIbAf1KEuib5ySDvB2UDX1 qlNjmj7S0kLSFQCJVPdrVN6h9qe0+/ynvu7UQ6KroBrlnAru9o0w8KW32j0uN2AN9H1S kpXAqaCRw7VAryikQHObSg43I7G8oiYbsIKkHs5B8ImJpGmhiwcQT6TdGnUxi51RtZLp 7U0vX3lPBDPf0/1fepLs1QeHxwdNPa+y4OuPZ4FI5CrsSHtVGmqcK0F+3xMY0X+v+fk4 MJug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=hmj+F0z52Li+K1sTvSePjF0GjlsGyqeJSli7wVVMSxg=; fh=Ms3BxOa1gD3aZ6M8AL0430VP1l1aGiaB8R/HJWk3Yx4=; b=hhYcYxh/CqLd5n61AfcfzXQBNc9rIaNenZH9wNNL6dNVACcjml2x8V6QwhftTOIbK1 TukGG6owNbW/ffNBoti9gZHbcziPWpzQfcG4d5u8EtG9lodlLpvLipbxBO7SCDTBJKth m+4o0KnkUtzSPoJz8ywYFXeWuYSlsjKCgcpRD4KC6rrLkFodvvVe3Y+vjeCzOHbk/Dvn P+K9xRRGJsreNXUBVGkQK3NSoZN7+vV4OG+syuAfHKkcxUX7bZ5dgfe265CxUXEPxKmp w8etaeC0mnmQlNY6KlALvj/TwSZ1DArM81hIZZpdvyJ3Jc9UmGVttvTlDE72FuP3F9iL fOEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4W57fqD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jt3-20020a05621427e300b0068d0503a3a8si7775077qvb.439.2024.03.12.07.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 07:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4W57fqD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0F8701C216D5 for ; Tue, 12 Mar 2024 14:45:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E452B7BB0A; Tue, 12 Mar 2024 14:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y4W57fqD" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BA987AE64 for ; Tue, 12 Mar 2024 14:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710254690; cv=none; b=iQcWEKYSDFQhEOJCB4RqHrqpp0Ch1P90Rp2S2BQy7pKrIC1bwuJCxaisBTkvqicmS1vu3y7E3zpB1Qady2rMFmVgGo2hyvCjP74ovLXgKQjWy9hJQ7bJQbBUgA6swseaAj6RC06AYAi2uPvq6DPArl52mHhBPnhsUyo1NSRqPYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710254690; c=relaxed/simple; bh=l7PXpZXI01MHCt+hHEmDQ8I/JZ4vbfrmDPTT2vYwv68=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=doxhJ6SLSLItLBk0sNl12J0lduTPUeptWzuFQsbu7R5T+jeC68qSaoPGqMpXbqUQE7r+lixF6hL0LvkJMVcwcQd8rlu/qQQT8mWHyamntyfRGvAO22enbLKG0CrxZLJJ8nONBsZMrj7rpEMn3iYEuT+qsN7EASr1IWLJ5k5O0i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=y4W57fqD; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d27fef509eso92236311fa.3 for ; Tue, 12 Mar 2024 07:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710254687; x=1710859487; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hmj+F0z52Li+K1sTvSePjF0GjlsGyqeJSli7wVVMSxg=; b=y4W57fqDpXLk9d6w30F7ClHmWQSP+T4jklHSO7kY6nrPHs2ipWmAxfymt/rToDL6Pc KvwIlqIZOVv8zPB+YTf41D627J3/RBSZxyM1ft4GbGMHfMoekm7fBOxP5o2j/PPjcdic IJfmjeGuXJ54F7bVoUdDKnbuF1lN2+or/IXwcbcqkeLileMzByz7MyBHtkDP4r1APRZL Cayc6H3kpsTuVjnKu/1OtQ/Iec/utwp5OGMRUymFyvxPYwnn6k7BsYQte/k9L0X+katC dEnEo8b2OEossfJRoaLcpTFqeOwnRjMEXBhQDYbq31azB5yKWEwjE03HmtO7taSYkRnX C3Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710254687; x=1710859487; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hmj+F0z52Li+K1sTvSePjF0GjlsGyqeJSli7wVVMSxg=; b=QqdJPSuTZBtUeAXg7MGHIoOrU1KKqFSac6dHqR1W/c6GbvR5IvI21TJNSjqTLUzyRY k9xEpPYH2HG+mBo1T9YxpI6bHdGJRrzpOAfd56SxvZJclLr2jcLWUp4AP6rsxX0IDPGa Uwrzp8tYT0EIED8P+kXN6As5jAzVlF/7lcE5U+yzpx9B9Jl8kLn5iu80y6bdkVg8GefD f7zvwjunP7jzbWLG2FdC4d/US7Lu7+n7UdtNC6p7oA9rgRQoQzVLdnFQJihvWooQeslj Czp1B2OCMyBQYPFBgH1rToLo03yh/Cq5a035xPG9m2AE7/HPKYM7RAthMJCkFUw/cS8f zAfQ== X-Forwarded-Encrypted: i=1; AJvYcCWiLrh4p5ttGJkYK5aOnCg8hvBDNjU+VtG0HZciLJ7Br5ZtZ7cBxGpZDKZyA5Uf7FEkgDkLtVGpgVABAzSuPc7gaF56BmXHKFPxC8mw X-Gm-Message-State: AOJu0YyFyocs26LBclC6AZmqrLIxDnJ27xSa7jNqv0nxpybS0c6SQB/l TRXt9r4Iql1n81LdS4QDVaVZ09GlRQbwVtBSCpf3XDMkjXA89BwTfe8yWVA51rY= X-Received: by 2002:a2e:9804:0:b0:2d4:529c:f490 with SMTP id a4-20020a2e9804000000b002d4529cf490mr1424131ljj.35.1710254686722; Tue, 12 Mar 2024 07:44:46 -0700 (PDT) Received: from [172.30.205.61] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id u10-20020a2e9b0a000000b002d406e8f01asm1626480lji.71.2024.03.12.07.44.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Mar 2024 07:44:46 -0700 (PDT) Message-ID: <9af62237-98ec-4130-8523-f6c9cb0ad281@linaro.org> Date: Tue, 12 Mar 2024 15:44:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/9] media: qcom: camss: Add per sub-device type resources To: Gjorgji Rosikopulos , rfoss@kernel.org, todor.too@gmail.com, bryan.odonoghue@linaro.org, andersson@kernel.org, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, laurent.pinchart@ideasonboard.com, hverkuil-cisco@xs4all.nl, quic_hariramp@quicinc.com References: <20240227122415.491-1-quic_grosikop@quicinc.com> <20240227122415.491-2-quic_grosikop@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20240227122415.491-2-quic_grosikop@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/27/24 13:24, Gjorgji Rosikopulos wrote: > From: Radoslav Tsvetkov > > Currently resources structure grows with additional parameters required for > each sub-deivce. However each sub-device has some specific resources or > configurations which need to be passed during the initialization. > > This change adds per sub-device type structure to simplify the things > and removes the magical void pointer to hw_ops. I'm not quite sure what the benefit here is, as opposed to simply extending _device? Generally, I think the driver state as of today is somewhat backwards.. We define a common set of resources, and then assign them subdev-specific ops, instead of defining the subdev and consuming clocks/pds/resets within a subdevice there.. Konrad