Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp71541ybl; Tue, 7 Jan 2020 02:23:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxkF+FRltjGxwsJMQB2ppYjwbQAzZ41wCs+iDEB0id8rGW2Rsxhj1TpWI5JwKVnjgxDQfbg X-Received: by 2002:a9d:664a:: with SMTP id q10mr106406254otm.99.1578392580724; Tue, 07 Jan 2020 02:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578392580; cv=none; d=google.com; s=arc-20160816; b=N2Yx1ZGoQ2BjpvlkQy7mzBvsB/l32jp69zmc6rKsKsij825SpqITIc1/E1NO4oPAej Y/4saHCt8Ej2VjJLxxA+/co4ZvqPNzWYIYt5aHGBCAVaEQpKjIRXQDOMWGAtmuASkUOF G/Vh+jbR9favACAn1fcu8rIQeI+dXwiQayWCUnNAP91S60zngA/C3hIYhVKyEg9Z/zBP iFS2a2gGfTiIYLuw1BtavH2zx3MITG0L9KLAnEzpTSBywkqMfDLu5E1eW+LXKK3WRKLY SFZdg60+XB0yYcgA6Sm2MMe7OzzDfuEa+AWqOv6UII3K4hO9hD4xFY9dWAZtXOatn/aA eXTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=feoOXtnj/48eID5q4+nHQx+NhKQCedVmAZE1CGkwypE=; b=eb2QgaR/gEXyjUq7RTrMI+kYidOL2xskxL+aBIpHJ1eBHHTB4yqYyJnSa5/PETrkhs 3Xk1GAvXFKe7/tUWY8CxnmrXVQ94njyBudqVNOLJXmnv0l8EuH9bYRi8YYxuT4V3R7vQ ku8g7uNQy+IT87rM1KVkCWQUJUoLmg6NshsAFgktzqEeq8XToiNwOBuW7rqJIwPESaq9 29JRTl+f1gM7xvDjU0h/stF7G1EaGxeqNzNoZDEPMhFpKa2DW9ODsdJyXMYy0XEI5VAs OgJYa8sJAvcGnjpqnCsOe8Qws+NVqDT8vsx9GZ1gxqSyCOWp9oWAtgcG0g4qq53HyDxb ThUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VtGCkan5; 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 a19si28975719oic.77.2020.01.07.02.22.47; Tue, 07 Jan 2020 02:23:00 -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=VtGCkan5; 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 S1727828AbgAGKWC (ORCPT + 99 others); Tue, 7 Jan 2020 05:22:02 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46923 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgAGKWB (ORCPT ); Tue, 7 Jan 2020 05:22:01 -0500 Received: by mail-lj1-f193.google.com with SMTP id m26so51661173ljc.13 for ; Tue, 07 Jan 2020 02:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=feoOXtnj/48eID5q4+nHQx+NhKQCedVmAZE1CGkwypE=; b=VtGCkan5np3byUChW4aFxnm5yaN4zsovrbrrNL2pV3TXPJ8ug9aSzneEr0kuM1Tj0P edzvWeTniw0GUWQofo54Pp1v4q8dV8I68CAwW2CuiGggie2uyBCFnBJNFXABB/wFknWN aHv6ds9bHX7S8mm+0nC+ZNjKMsuF0rQ+cVM+sSOHXBaIob0AVlMAA6GpBALgkvTJfIbP jJ285SLdjWpvbeYjQ4VK8HZgyKPdySbY5rr5DSjF4q8dsImHeDow2p8j7M6s6Hs0VnAe tmf4/r7N14nCP0rjiRyD6k3uq9pQJBEracEo9Mz1Q/jiJXL0gQbJtosbb02O2M+Zk3rP K2dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=feoOXtnj/48eID5q4+nHQx+NhKQCedVmAZE1CGkwypE=; b=bGDK1WxYab/PY5uHwXnQ2KMhV8RzL8g5HtEzPEuvOS+RXGtE6QWpNk7vGlhF0CVJ3a vyo9oTGkcqKZndFHdH5FvThj+RWO88eCaRtidpX92rh1RPACPAU7gCwp1NmWOzgpMQqK mBJ4q+VYNdiQqYQSAalVkgKW8824KTkZCLsusEQ5Q26d/72DtBL47nfmaVaCyxOKNvcp xnpany0oJb3pG6k1MSqacdqR5J9W514sjkpyk0YPpSxcA+7lTFIrYtGPZSCxyF4ioiVp b1Ly4nYPo/OeD3/6E5J/l1QsIwivcgF+AAC+JvL6GBeRidHPZE0JRNGu8W6QuL2aOY6y o3mw== X-Gm-Message-State: APjAAAWRhiTL4WGLm2o8xtVKuo+HSEQu0VISU4eCxcQkdncOshCETnLv +rS6eSo3rVRKldsu1WbmOODiM+QBA071Snu8WcedKA== X-Received: by 2002:a05:651c:1049:: with SMTP id x9mr61861878ljm.233.1578392519784; Tue, 07 Jan 2020 02:21:59 -0800 (PST) MIME-Version: 1.0 References: <20191226023734.9631-1-qianggui.song@amlogic.com> In-Reply-To: <20191226023734.9631-1-qianggui.song@amlogic.com> From: Linus Walleij Date: Tue, 7 Jan 2020 11:21:48 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: meson: Fix wrong shift value when get drive-strength To: Qianggui Song Cc: "open list:GPIO SUBSYSTEM" , Neil Armstrong , Jerome Brunet , Kevin Hilman , Martin Blumenstingl , Xingyu Chen , Jianxin Pan , Guillaume La Roque , Linux ARM , "open list:ARM/Amlogic Meson..." , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 26, 2019 at 3:37 AM Qianggui Song wrote: > In meson_pinconf_get_drive_strength, variable bit is calculated by > meson_calc_reg_and_bit, this value is the offset from the first pin of a > certain bank to current pin, while Meson SoCs use two bits for each pin > to depict drive-strength. So a left shift by 1 should be done or node > pinconf-pins shows wrong message. > > Fixes: 6ea3e3bbef37 ("pinctrl: meson: add support of drive-strength-microamp") > > Signed-off-by: Qianggui Song Patch applied. Yours, Linus Walleij