Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2197887rdb; Tue, 20 Feb 2024 23:12:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKl/lzxrTlz6pPY+UO0H1s0t8Styvb/lXyHJgriDhuNAHWuf/K96ksdtluuHzPBLw5JzjksU89nntBzFwmdZ7vEKPIykhia87TEjlnZQ== X-Google-Smtp-Source: AGHT+IFlRFSFw+oUga0NFszjkwCDaTPKGTAdlVi4zBjhECuAhw4c5FhV7v7P2lk+AN/ry7Q9hxMX X-Received: by 2002:a0c:8f11:0:b0:68f:3919:ebc2 with SMTP id z17-20020a0c8f11000000b0068f3919ebc2mr15572533qvd.39.1708499555563; Tue, 20 Feb 2024 23:12:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708499555; cv=pass; d=google.com; s=arc-20160816; b=JMI3rLI6irYnKCq/eSEumQKHOe67KwqBwR5spFIODwhv4o17bO2yfebIBZ8KDdic1T FKSjnq3OHpn1KxHN4pD0zZbp3Ayvmt596E6Qox9ft4ls2NWVQpe9ez9WuELtiSTzzkpX M2040d57W3UQIkrfCd23w6kEFzQlcNu1kbvcNHGiiEgoi3SsbLuLenI7mCncAoiQMNz0 +xgcTBhc1U0G+lGEpY2EamJMpM1h1sV8a7NZBP7RQfmbFKItmJvb3s/G9rv5+9ThvTp2 T2e9Q0b8G/l5FcvY6f0DWEqo9cTwXp7B6RNEBkPCaPeS2kbvvwejEZf7FGGr447Rzoc9 zq+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=ttP8vyLKUQDDslR3D29CPSrFs0rHJqNuSZ9pkYxraoE=; fh=79H/j0H0epuWx/6RCJUbSOUQE+OyFqPC48F3Um/G/fI=; b=mE0u5v9cgviNLkQJBGt2ubKPRC/YH7d9vCuHdUaPWrReNtM4jWLLl5QsVZ0axjPPB3 pUtr45PvJPV0Zzo3QD2K6sTSejRI4azL1oKJtGQyKFC1NglDmdYduuPXTlusNY0twFes RlFkwkJyPd6P0brZz6QF51g4b/X4AKkNZVpMS3nAY0Cr/qVIZPQcRnjBu+2tvg1sbqgw B7Aj9fErtTxVtgIWDnwJyYmYKde9DwVB+sPAG9oUhwqlBWlJAtoR3Ik+IgHdwRiYgx4P wFvvZWFzRH1oCr1Y3zJtIjP6R5zBwOn0KvwPZQu221z4ExkLOc9YZF3Ni9dtukZ9rRxs l+EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hypXGlrE; 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-74195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74195-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r10-20020a0562140c8a00b0068f740c7530si5732371qvr.538.2024.02.20.23.12.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 23:12:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hypXGlrE; 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-74195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74195-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 4D37E1C2225B for ; Wed, 21 Feb 2024 07:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6D783A8E1; Wed, 21 Feb 2024 07:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hypXGlrE" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 5F9C83A8DC for ; Wed, 21 Feb 2024 07:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708499547; cv=none; b=RetVPSAkMhfTt5tGSCFwhOWuMWeGL1qn+W3Ms/+Qkw4lRgmrtvgTjzGM3YkR2knoF3Mn5AN3RENTSoneFyeKlKj4gcsaeyddwPS+o8xFmf+2dGFAx99tS5bu1+DajWnwVyz/YS4T31Dswwmczs7sN1PjjCGEmW1DsGabra1Ymy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708499547; c=relaxed/simple; bh=uFniHpBzQNLjviF0hn99aaIkPFFKe/rR54mSRZQdSAA=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=XvN4kRAoQelVI1G94iIl3ZEsTrtteVuBqnWx9kIGmous2fjFQIoa5z9WGEymd7R6yiHxteL68X6oDHovwP46QO/yOGesbm1RswoeISkTkCGO/nd3g1qjpZwHyp4Ops3Pz38ePi3atOxFlC25K8Wfe9qnv4AJA9sHVm1aoAeuSbE= 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=hypXGlrE; arc=none smtp.client-ip=209.85.167.53 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-lf1-f53.google.com with SMTP id 2adb3069b0e04-512c2e8c6cfso2136997e87.1 for ; Tue, 20 Feb 2024 23:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708499543; x=1709104343; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ttP8vyLKUQDDslR3D29CPSrFs0rHJqNuSZ9pkYxraoE=; b=hypXGlrEnaAAzfVWa6T/DyyOgKbD9mPqgRomrWvh7IHHB3/9yicEhoSkzkWMkZJUa5 7sJj22vh+E+zZvpnFXEkpL52M0xigIzfPNxqkJ7YqNyw5lwT1kJWgxACBebVCEV0aViq MHx5zvR3TB2c8SYgBeP/cx10sZ+9JbSxjU7mwICNh9cdR3ux9DPoDTqtUCZx8BtAcJfh qua9KhFCy+DM5u7qLsj/h0MJeIFAxfuTKxe1F2IEDa4ue5qkzlsrttieHcOouv1OSOA2 P6F5u0kwtKV91lNsYU5xWvrPUebS3G3wfBGah/EGKeUngEe012yAsH8/2hpxQWHEND67 sS2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708499543; x=1709104343; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ttP8vyLKUQDDslR3D29CPSrFs0rHJqNuSZ9pkYxraoE=; b=E5IzofH7nmHGXAw2KmlCq7i3gB4je/fPU6wKz6GESo4+83bUceL4h09NTCtSAd0jiu 7pihpDfF6NgnEV1Fr2gDm6zCFljSTQ+qK2hIfTh20lSnhM/BtkA09lpCotNQI7tel9Wc 8/Ceht8sGXZ60SHSgL366Aky9qvFnydF+R8chkkqnZXP2qiyqJUGI9zSYvnpob4o1e3t J1YPYv1coiQ3hgnxQ941s1PQIgAOIvCglcWIjUbMccktJB8gvt3jYSE1xUIMadPUGob+ oYSHrbYyYst8rFSTsy5GI8VMOI2WAILSdHAsMSRNrNXAV9WuPEDZaKPNt0hN/KybBwRT K45w== X-Forwarded-Encrypted: i=1; AJvYcCUmP42ZDIpTHCjOSInh3CXyKCm/POfGySVBEcqw/qbyfs7t7ILmD0twMVhdLxrQDnYCjtjP/oaZocb+JqShoa78673PoRYZHN6w7e+v X-Gm-Message-State: AOJu0YwR9V9I4q8XCuYJyDR7OmusFV9fcPDhBm+NsbgIRjoIa4BrBI2g DabIBTosne5SXM2dBFXD8uoXcpNi7rbNv11IupGmyQr7S4KooIiPlScdkaz+yUrtpuVSLWo6T8S q X-Received: by 2002:a05:6512:794:b0:511:ab37:b1be with SMTP id x20-20020a056512079400b00511ab37b1bemr9770320lfr.69.1708499543024; Tue, 20 Feb 2024 23:12:23 -0800 (PST) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id t9-20020a1c7709000000b00410ab50f70fsm1444335wmi.15.2024.02.20.23.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 23:12:22 -0800 (PST) From: Srinivas Kandagatla To: Markus Schneider-Pargmann Cc: Greg Kroah-Hartman , Miquel Raynal , Michael Walle , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , linux-kernel@vger.kernel.org In-Reply-To: <20240130100714.223468-1-msp@baylibre.com> References: <20240130100714.223468-1-msp@baylibre.com> Subject: Re: [PATCH] nvmem: core: Print error on wrong bits DT property Message-Id: <170849954121.23242.6996516422641770317.b4-ty@linaro.org> Date: Wed, 21 Feb 2024 07:12:21 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 On Tue, 30 Jan 2024 11:07:14 +0100, Markus Schneider-Pargmann wrote: > The algorithms in nvmem core are built with the constraint that > bit_offset < 8. If bit_offset is greater the results are wrong. Print an > error if the devicetree 'bits' property is outside of the valid range > and abort parsing. > > Applied, thanks! [1/1] nvmem: core: Print error on wrong bits DT property commit: 8bb130f38373b5e405b7d81c6ebc36107e518a99 Best regards, -- Srinivas Kandagatla