Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1124027lqt; Fri, 7 Jun 2024 08:37:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXq4oBV6bJGVLN3ZISHJbTl8EIqkplfx+OuFLRYVJmFlVSS73z6HUX7gfXOKRxAxJnvdmOErl4Hpm7r7ykVkK4YIP+fbkod/q+TLuErwg== X-Google-Smtp-Source: AGHT+IHHEy5XrBwPUHbyTqKMFQoSkouepHxDw26IJfrUiUqjIlSahWi1IHL383zoiMetKFT9Rnit X-Received: by 2002:a05:6102:124a:b0:48a:370c:deb6 with SMTP id ada2fe7eead31-48c272b7f61mr2338251137.6.1717774639897; Fri, 07 Jun 2024 08:37:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717774639; cv=pass; d=google.com; s=arc-20160816; b=xjrdB+auAEdDEQ+w0hlpfVXcPU9OMsvuM5e2ZD53SAQxbAzhN/3Uetowu32yJQFGOb /ngyWeBf3RDbnJndtlB4y0FlADIDMgRaxI97nWUkZ3ZuZuPTDIkwYS29BPviZrJbCCto j5lP/9WrEF7JnQBuhTCbim9y9pVz9AP+/lR6fI0UxkYNlTqeofw2Gkv0JlF7zbpFu4Pw Tsl1n/337l67aDKsmASFNiVj+VRxaW8zVWM5+jQT9tz2+hADCwG7CLrVH0Am0R8DB5bZ k/LVbaIGb58aMS+GsKg1p3aOO8z4DLHV6udguPJoKFvsivZo/ETF6EBeUXdR9OEH+DB3 YyOg== 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=4WFHGyOf2WCg/AHCXQoRe0OOLDlNcvfZjAFHn1msRSw=; fh=Y0ojMxcHrgj0CyHDQIGyveBnmcy6mmMWpVzHtR4X9FY=; b=cAXjL35mOciQNeLEitmz2gsIviv2irmfWlB2SHF9u/teIzGuaHmVEEMt21+lSXkjI/ 0uGLbn8WEzcjOaMhHirUjO+C7gReQ4slxxUQKibbPFQgf8urEOD5lDkeJsgSdjSGJAA4 CJmtuHne6gWUk10ti/CgAJGwuo2wJSvq03WZXHAGiPvoMdrASXbUxynodAQZUtstcvLw gBUWdZ/R9rqxcmzTzSC+Kmusu35GTjMiZi9qa7cTl1gvjJ698IQsCE0WeVVPFRIPpaUN mgRl+caN0uVqy7WOs08uT3v7HlcBY8AUSlck6zCWPPxZz3B2VWobbtUVuVKiiuK2uc7x owTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=juK0y2aV; 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-206411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206411-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 ada2fe7eead31-48c1a263b99si942540137.783.2024.06.07.08.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206411-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=juK0y2aV; 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-206411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206411-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 993851C215FA for ; Fri, 7 Jun 2024 15:37:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD49419923C; Fri, 7 Jun 2024 15:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="juK0y2aV" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.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 0535C4C65 for ; Fri, 7 Jun 2024 15:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774620; cv=none; b=d7uByPGKHLeyYrXDQVDCH4DvqNOswdrP+nXjy9jPIfaz/181PamHf7osFK3Lf6p2fzreX6uVJHG1XSnxyXCS3Jo19tvYXC05eTT4x9kz1hXiHEKLu3kF9JTNd29qDY/LlMpTK5BUWO7FJAjP/WK1FjUW4Z+ojLa6vq4LDZ0h81k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774620; c=relaxed/simple; bh=njFwS84yyP3Xwr02JnamX7Dhu6AzJdZO+TJ88+ClOI0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Wp7CyNpwBrqGbJOarxoliUG8MZxXqSpg2h655/4kHfcl1hx+CRhaMh48QGWnkgBUUBlPUUWHCLpW16nmkhIBSRoly/CI5Tw1jLXr+aD2Bu5sFro7lHXASFxocdvwgZ6A1W0a+bDIFHjaFTfbIOrYSB+0hadwxYjtQubCSDMGQ6E= 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=juK0y2aV; arc=none smtp.client-ip=209.85.128.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-wm1-f53.google.com with SMTP id 5b1f17b1804b1-42121d27861so21297375e9.0 for ; Fri, 07 Jun 2024 08:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717774617; x=1718379417; 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=4WFHGyOf2WCg/AHCXQoRe0OOLDlNcvfZjAFHn1msRSw=; b=juK0y2aV4TYboAh8nEXjMFk5fN3uC3FwvkzbSNZxHs6DWC3/Q+8c7UQRkyGOGg0GbQ 1DN58wUt79ajkREwHVoLA4TCG38OF5JSoywS9PmoYSjra8jY1jLLFq5MCIuxJYnpgZPX 6lTfweu+Crph9x5sCOcF+AwY4TgZFdyzgT7Mp3JEmbseYqmNz9HURCFLyVYhZ9FGdCbm 6ISPzY+0I2OfOHfXuOTmn0dGWCDcp+DaKcZR6jxWYDugYn1epGEbvCW1mkz8XJiIcYpH u0ZE7wPmp/bTjc6xjt1S9dhsXb2/OFfG27ReP+LcejxTkFg0TA0x2EhDrVgnSTj+KuGo Hl5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717774617; x=1718379417; 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=4WFHGyOf2WCg/AHCXQoRe0OOLDlNcvfZjAFHn1msRSw=; b=jo9bZ7SeZUlH8qFM1vvfZj5YQI/IsyROWGhA1kKDK5fb70G1IyE1tnCqkbJBVcOJx/ sim3PjD+av0PyvkHr2ezFqkeDdon66etQhPdahs93QDbk2cN5LIMXZSTN1fabTBHGcIE oJ7HeHGn7ERjrTJbJ3uvbze8hvvnfm4eSoRwgGTZGHG9G2tcxRWx32FWhh9zn85AHzng pHLjS0yUT3bDV3PFJjdl7Je7e3+oDR4KmmShRigejFw6kueXNUJcrnt8Bt8AI8k4CigF 1dS2sLXQHew1mtNOnKXGXcwe8aCjEcMw4mX22JKE/GaJPo0ZIYN3d+qnJUEu8q3v82hW WLag== X-Forwarded-Encrypted: i=1; AJvYcCW5FKVC+fuRsZP9DxEwSkOLcn5cbKc4MBFT234pKXK/OWdYlYVldaNnLYJa09Pp+rNGNxfT7WoH0O/2H5pAjQOyGFtU3RVaOWI2SejJ X-Gm-Message-State: AOJu0YxUJjwNbYH/i24DzmH/t45bZbIiDm+D3APCaafWGoCMDPt6Y/p0 FFJ7A7ZOEvW6tObWDj3xNFjj/T+tP/berJpyDaCz6dmwl4DjW1DBOQuT0F341Ns= X-Received: by 2002:a05:600c:444b:b0:420:29a8:ff5e with SMTP id 5b1f17b1804b1-42164a0c1c9mr25925175e9.19.1717774617356; Fri, 07 Jun 2024 08:36:57 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4215f89aacfsm48862905e9.42.2024.06.07.08.36.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jun 2024 08:36:56 -0700 (PDT) Message-ID: <7cc32596-8af0-43ff-91fd-59264d0a29ac@linaro.org> Date: Fri, 7 Jun 2024 16:36:55 +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 v1 07/17] misc: eeprom: at25: Change nvmem reg_read/write return type To: Dan Carpenter , Joy Chakraborty , Greg Kroah-Hartman Cc: AngeloGioacchino Del Regno , Lars-Peter Clausen , Sakari Ailus , Bingbu Cao , Zhihao Cheng , Jerome Brunet , Martin Blumenstingl , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mtd@lists.infradead.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org, manugautam@google.com References: <20240605175953.2613260-1-joychakr@google.com> <20240605175953.2613260-8-joychakr@google.com> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/06/2024 09:41, Dan Carpenter wrote: > So the original bug was that rmem_read() is returning positive values > on success instead of zero[1]. That started a discussion about partial > reads which resulted in changing the API to support partial reads[2]. > That patchset broke the build. This patchset is trying to fix the > build breakage. > > [1]https://lore.kernel.org/all/20240206042408.224138-1-joychakr@google.com/ > [2]https://lore.kernel.org/all/20240510082929.3792559-2-joychakr@google.com/ > > The bug in rmem_read() is still not fixed. That needs to be fixed as > a stand alone patch. We can discuss re-writing the API separately. I agree with Dan, Lets fix the rmem_read and start working on the API rework in parallel. Am happy to pick the [1]. --srini