Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4713174imu; Tue, 15 Jan 2019 04:52:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN5makKxlXDcCA/QyB9lfOh9hCULCWIVThxvAUHUwsPcsWLXewAC5eHC7G3vdGhGCVh+LxI/ X-Received: by 2002:a62:2781:: with SMTP id n123mr3953569pfn.138.1547556735600; Tue, 15 Jan 2019 04:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547556735; cv=none; d=google.com; s=arc-20160816; b=WOa8hsfpzoFXyVlt0LiPBQSx6LI3CqjW0qfYGoKsg5F76iX0oSaGWCv3fELuWsng5y oKxndS1lbe8TZrXHAR6N9u/5FqC5vnKGXL9imlQhqLQvCstrC4p2/wvnHqySK/1vUFNf 1MpdiLSIsBjWQgA0dPq3+gNSTqNph5dhfiZG6g7n3IJ6Kj5BH8RG+us+9yzZdj6leGp3 Ldxas7JXAD20YVgvyuUkEhFPP5D0EF7E4Jf2YZo2qdgpMlsz7jPRMryYp3Kl8LxdWluK w5eKtWtsPRYKQvmUZoDqHtzgkQO1i/qvGXSdpfYcKxLBtOnP/xhQ5snDQLnEmeaWwvDm hxOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Tk6oVp2Q1xK+5YrncieBjtBbgB8FiLeg/7FLZZtRyn0=; b=ZyG807m0sTyIeWUpe03XoDhRLDVAhlW0GFhxd/cBf1Mzfb4zMG3gIUPowPzuRu4N1q IDez8omwNFXGeU1ZVYPO0bsQfJrztBDdsUtlHwie8kIH3t0LbVszHDWhp+TMitGprmbI eGZcMysfB2hOKQI0Ta/d805BMVB7Yp0KwTTTF2AA+i8xRx38kRoyGwkRLeNmTQ2nmFCB 4qtpYvnUOXOQaHQ6FX77nRAV/xQpyp641FYRbONwupxKTliKi+DBUZHjGV6dpjiaDi8W iKjL6nXztmj2RERuJONYu3vM5wxbpfN28XplEz7U6pIPTCnEGgS1aJvrmTJiRr+d3E6+ Y3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1TxzYH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27si3091160pgb.107.2019.01.15.04.51.58; Tue, 15 Jan 2019 04:52:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1TxzYH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729027AbfAOMQg (ORCPT + 99 others); Tue, 15 Jan 2019 07:16:36 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40446 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727410AbfAOMQg (ORCPT ); Tue, 15 Jan 2019 07:16:36 -0500 Received: by mail-wr1-f66.google.com with SMTP id p4so2694378wrt.7 for ; Tue, 15 Jan 2019 04:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Tk6oVp2Q1xK+5YrncieBjtBbgB8FiLeg/7FLZZtRyn0=; b=X1TxzYH30AjNUKURCpTHahfnoj0yRrm2m4TZhDhm12Q6Jb3h4YUFECyng7KHxHXu+M OdreQt6wwDLbxwZdP8b9xvd98zQf14h4QSGkgdPKqx7Nuk7r5rD2hkT00UB+ekGE8Thc 027lDBoZbQr945Fskc02Jzo1wb7IHAaEJEUcY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Tk6oVp2Q1xK+5YrncieBjtBbgB8FiLeg/7FLZZtRyn0=; b=NBNNf2PDpeCOuelT93JkGBoCnWcwfxjaI3zLB+nYbjw8tXr/ba9Y3hIuP/Gq/+Hsoa 9pusZkRNKZfYCRi3to7+RgRIpvp/O8PE0YefTz89oUuCuagA6wxEDX7YeDvJ603hWEu7 Mz6PKEmUTBu7rJod/GBPU6DKbD9zKtyPyuK7tHXGv6QAgiAN/rBkzIFIRHBHUjpXObaH MiRXC2V9jMj7D4xzXVDaNlHATJhfcQ/HJ7Yz3p1f+KU3lWtU4Xaej0bH7za94J+ppaCY VJf0KPM8MOzUu9hz1DzMtJwGWh/te6pitNRsWrQkZXhgH4QgKQl+xrniIW68q5GJAcs2 wbzw== X-Gm-Message-State: AJcUukfKkvUO7VnT1t+M8WCk+3myzeHo+CaUXB9pPxDdGbXdL+ZvFwj6 vhqZ9bkD5EYUT82iXZUkoXicJomdm3A= X-Received: by 2002:a5d:6684:: with SMTP id l4mr3174765wru.154.1547554593825; Tue, 15 Jan 2019 04:16:33 -0800 (PST) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id h1sm22637695wmb.0.2019.01.15.04.16.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 04:16:32 -0800 (PST) Subject: Re: [PATCH] nvmem: sc27xx: Convert nvmem offset to block index To: Baolin Wang Cc: broonie@kernel.org, freeman.liu@unisoc.com, linux-kernel@vger.kernel.org References: <915eacd1c2f05ec84ae50474feb94902bd790ec3.1547536224.git.baolin.wang@linaro.org> From: Srinivas Kandagatla Message-ID: <3ed33cde-5656-e0e7-d3c2-ad0e4ec4188b@linaro.org> Date: Tue, 15 Jan 2019 12:16:32 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <915eacd1c2f05ec84ae50474feb94902bd790ec3.1547536224.git.baolin.wang@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/01/2019 07:12, Baolin Wang wrote: > From: Freeman Liu > > The Spreadtrum SC27XX efuse data are organized by blocks and each block > contains 2 bytes data. Moreover the nvmem core always pass the offset > in byte to the controller, so we should change the offset in byte to > the correct block index and block offset to read the data. > > Signed-off-by: Freeman Liu > Signed-off-by: Baolin Wang > --- Applied! Thanks, srini