From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 0B9611F1521 for ; Tue, 21 Jan 2025 23:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737502735; cv=none; b=rXIppX66dRf6u0Jm8B+k4IqXXsr5qxMzqkffZpfPpfyh6ZFI5+QTxrFDne7yC1+orn3FocUs8qr1zAD+Z7QTZtd7gSzaFix+00J3leKVSRWBdSkdmYazfhHA+6l2Ge2XpJeO6rwE6lRdFrGx1ENWbTMBbyDrcZnA7iJB0si0lyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737502735; c=relaxed/simple; bh=uP0BswBeoqMFT39VgZoZVsIFI11gL2q+m7G5kecEjiY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hBOucBqahsyEYXTU7zLBSJ/3t2lM+IL7hf8hAp8y3Ec691QmsUhKi/XBcRmQHdXFgHfaL2cY/ppNYg/xYN1ujdxhMW2GBAYG4x2HvahcBVWthROTPCmXD0f0Tv/QQylXCpMp1RwP2ihziZ+eoofPHuieIyKZ1GbDf/9rEMzp7tI= 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=mCwquUhQ; arc=none smtp.client-ip=209.85.208.180 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mCwquUhQ" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-303548a9332so3201001fa.1 for ; Tue, 21 Jan 2025 15:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737502732; x=1738107532; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=auGaFGS45UkLAlxjJAKbb2IZBDBtcKd32rJyiapnu9c=; b=mCwquUhQEZdDBYmNUYZAFFz86wkwnwDtAS3ND+u4UYun8rac7eAhyacMM4MHeIauHg 1LnF8esly5MeqpvRHjlFr3Hjly6U9xQsNDn+FkVfIxhf3Vzrh1l9F9yY/EB/ltKdrYDF XSgKktx1P1mioZiMg3vRc6itG8rx0f/nJSbBBfIcPCA+nu9csL8CudkYxxRXZTVmO+O4 oo8E5RlTwO4D863n9SoWOLMswkFHc967vGduWgt8sO21Wy/wVNtqNRVs2uzKVYcgXknK F5FuvdG2ZgSRCBzBg7EYANp3B/VHF/Abr3TBSMUvM3nKYKryl5dip5C0PEUjgICchGX2 9Hrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737502732; x=1738107532; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=auGaFGS45UkLAlxjJAKbb2IZBDBtcKd32rJyiapnu9c=; b=LwAYOxxw96xda+pvPam8ZLUPzo5s00FrYzooHgCq+3ar/t1Acfj1sczPlT4bnF+aqu LF9cIP5JVnYj+x3XJzLQ5W5P1hFC9MRg1OiJYYrWgbDcszgcwYLN/CTzKwNUpBWKbWb5 c+XH8lLC1MqnajYW0pADRuwvm3BQZ7tI4AZgPr7qOE77ROU7Pe0EE0E6ppl6JhdZzxek 4OBPC3RUROH+gMbBafsnawPRVvAj5+orOV7R0K0GumNnF1Gga/UVc+YLvqmdPj28e6NZ B46To6p93da906+pThywhaCT3/NwpZfoZhWAfRItOQSz4SipLgIFWBvrQLjOLwM2WHo+ tuvg== X-Forwarded-Encrypted: i=1; AJvYcCXmbF5cTO0fm/iFYxOhXC/J6jSfwt2aL9RWFW+qIUYu0M8bMGzfplyHa8ruxCkwcbbFed11qnVezF3X6gg=@vger.kernel.org X-Gm-Message-State: AOJu0YwdS20tuubkVGlwB1NJ0BNwbc7mxeKsTKkuJ7OmrLFFkSZs15/e maqjyyFdUPpvfDRDBRee1UC16n7c+dUY+vEFkj1nPc73vzH1t1ybAh+aM/xw1OU= X-Gm-Gg: ASbGncsoVInz1mYGX1DXmeztZu9s69LqBxxu1b2baWCTbUjXQ+997jAUBzJxR9aLaeE GIAzZ/rovA+SoLe3rqL7qOzoCcno8wJI2YM84vyFcUihbwPHh+A/zuKJZeM7TbZ7uQjadyldLb3 peRXVelP0/JRaodo6ISo80MSDr2TO6v35tW5ynJxLaHlmh1Hki1t0b6f+NiykbcFwCZXgmhr30U T0BdRQ9KWR6mwRjU5J3qZwRi432DWKu2sELQQbPJFlGpdeUMLYfZgjMv1BSFpl4WE/v+mNmvDkj T+gCKdhe9eRJEnacE6VaNvaaTwl3VVUeOGntkAk2vvUeHSu4 X-Google-Smtp-Source: AGHT+IFMHChgrg3sylYfBZUTmtf52BjnEer874RN5zESRym28B6F1z+CFKsgNj+PMogdISz3Y3pp5A== X-Received: by 2002:a05:6512:691:b0:53e:349c:45b3 with SMTP id 2adb3069b0e04-5439c246d95mr2071030e87.5.1737502732073; Tue, 21 Jan 2025 15:38:52 -0800 (PST) Received: from [192.168.1.4] (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5439af07390sm2058674e87.22.2025.01.21.15.38.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jan 2025 15:38:50 -0800 (PST) Message-ID: Date: Wed, 22 Jan 2025 01:38:38 +0200 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/7] media: qcom: camss: Add an id property to struct resources Content-Language: ru-RU To: Bryan O'Donoghue , Robert Foss , Todor Tomov , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Depeng Shao , Vikram Sharma References: <20250120-linux-next-25-01-19-x1e80100-camss-driver-v1-0-44c62a0edcd2@linaro.org> <20250120-linux-next-25-01-19-x1e80100-camss-driver-v1-1-44c62a0edcd2@linaro.org> From: Vladimir Zapolskiy In-Reply-To: <20250120-linux-next-25-01-19-x1e80100-camss-driver-v1-1-44c62a0edcd2@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/20/25 17:46, Bryan O'Donoghue wrote: > In various places in CAMSS we assume a linear set of declared devices > {csiphy0, csiphy1, csiphy2} which currently works for upstream SoCs but for > upcoming SoCs some of the SoC resources will result in a set such as > {csiphy0, csiphy2} which will break the naive for() loops we have. > > Introduce an identity property which resource declarations can populate > hence facilitating non-linear resource naming. > > Signed-off-by: Bryan O'Donoghue Reviewed-by: Vladimir Zapolskiy -- Best wishes, Vladimir