Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp663067pxk; Wed, 16 Sep 2020 13:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMcEaY0pPeWE+TtNb4q0/8vNGWfuiwgUQjgqM7Gbf4OsJdsoxtWYExNiFn8deDrc0W9Qld X-Received: by 2002:a17:907:728e:: with SMTP id dt14mr26724574ejc.505.1600289038561; Wed, 16 Sep 2020 13:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600289038; cv=none; d=google.com; s=arc-20160816; b=r7JBrvk++egPcFJ2XAosAeWCBw0zwmAvAkcK5hoXWvR1Owp9mtgD1/ZJVpWYm1d7Zf DdrOwuYI/pNjzdCDcTKW3XLLSYs64ftHBjsCBcIb/owiqqJyvJ2iCGe6iIvASthvqi+H iEKVSC9jOJd+UswpJ23Nt2BQdZ0+gAjfgteFOVJGQ0B+mOQuR3yaCBqDwIVfacLWk79K xKsnxf7yo6NSeq6nLQakvVjbWabh5L83nKMVoQWC0XppRlNDibEultszcbSF3LdJS8X9 Vo/OLdqHZ3+ypcbi2eAW+1nfN0ZdSw9eGDEO6CHGZ75OWyYH0P+mIomq/vmOR3Pv8L8X 981g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=KTEiXWsrNTTNF4brX7sslTaA27Wj3jCvRMzdzjVA1+k=; b=zfLO9ueLNJ34XO8w3AaiffutYPmNtwzJJhQ770WAxZvX3S2CFS2hMUc1BOIGcZgFcS 8bYygKepU7uCeTwytRFyjUeio0SrPsLMQuE95HrX6n2lgKlTSEgYvZjFYSon9OZeheiz F4u1IeZtoaIwroSGvoeq2HGOQAhuPYlzNTe6r+IE0+N3+3VaGSL9rWEGT5OZKw0uVTnu 7w5jdUL86Y70PTixfTZ0oFY0n/hmgvCttIMU5OXT6bLCWGwkWwANZesC72OhQeFE2fQc 0IFwE+vElDFK9bUFFj+lg3yTpDld3E2rKru+mSWxj3NtfGrWOmpD98m7iqwrqX5OW2IP DoAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cRSvvi0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si12965505edq.190.2020.09.16.13.43.35; Wed, 16 Sep 2020 13:43:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cRSvvi0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728331AbgIPUmg (ORCPT + 99 others); Wed, 16 Sep 2020 16:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbgIPUmc (ORCPT ); Wed, 16 Sep 2020 16:42:32 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB1BC061756; Wed, 16 Sep 2020 13:42:26 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id d19so3829714pld.0; Wed, 16 Sep 2020 13:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KTEiXWsrNTTNF4brX7sslTaA27Wj3jCvRMzdzjVA1+k=; b=cRSvvi0YE0LJjsNnQLFLiwPLRVlEijDhvdRIBIBr8yhwSaTr23O6/FkV3eUeZHWNH1 5dd5sqPqaj0uMn7SPpHv3fgzwI8kR2tF+zHRYDm9JKnO65URipWWSVxohnglZHVlq1Nx /Zb8A3yC5nKh2vBpN1z43jRgUMkDNJKbY6jHt8QZDZdp67hKaPTshyMQomOmgn6xcImw lBZKQzybZDMWY7QifXzwjoQqOi8oZBHeKuXdhKTEt2mD/cm4DVLNcf2UkPYItgsQ5Lwr u0TsOa468276YYmj4N326UMVf4BMH19Cnt+s8qGBOwtzEwGtw34AmhAXkpr9eBNTVEVp lt2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KTEiXWsrNTTNF4brX7sslTaA27Wj3jCvRMzdzjVA1+k=; b=bVLpnDBM64NEByv6wnlj9HQNNl4GZpZxNz9PIykyMs0qxMGW5QzaLNgxiQk/xWMKsD 75qGXfq206L/q/fJHJ0r+MeG43ZOG1OHkNzdGx6WsswvsKF5JZQMrXLQmxMRetKC+kxZ FdLmQQWfKeSP/FOHCpwWtvgY/72i9+1GlbLzHTn2TjhO8EN0ZbRQ/aSNwZBf54+i3rW1 Y/FSOZf5/+3iU+dAsEzlaAOzp39ly31C3J0o1FZQoSDYsb7W3K79MkH9qRlWjj2Qs6nV 7aizB8BMp1yQfEvxIsw7m7BaYx0YLhtzcXOuIyi5JHBfeIcPX4YLJMqfInl+aeFXXWES BJJg== X-Gm-Message-State: AOAM531ZtLHkAKa1ppk6IOtkzA0Lmp9JDSiDe0XGw926eFDURGtQSOPx 4NE5Lrbjt2Rly+Hn0J8cG88= X-Received: by 2002:a17:902:10f:b029:d1:e5e7:bdd7 with SMTP id 15-20020a170902010fb02900d1e5e7bdd7mr8126307plb.55.1600288945769; Wed, 16 Sep 2020 13:42:25 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id n9sm10071276pgi.2.2020.09.16.13.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:42:24 -0700 (PDT) From: rentao.bupt@gmail.com To: Linus Walleij , Bartosz Golaszewski , Joel Stanley , Andrew Jeffery , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Cc: Tao Ren Subject: [PATCH] gpio: aspeed: fix ast2600 bank properties Date: Wed, 16 Sep 2020 13:42:16 -0700 Message-Id: <20200916204216.9423-1-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren GPIO_U is mapped to the least significant byte of input/output mask, and the byte in "output" mask should be 0 because GPIO_U is input only. All the other bits need to be 1 because GPIO_V/W/X support both input and output modes. Similarly, GPIO_Y/Z are mapped to the 2 least significant bytes, and the according bits need to be 1 because GPIO_Y/Z support both input and output modes. Fixes: ab4a85534c3e ("gpio: aspeed: Add in ast2600 details to Aspeed driver") Signed-off-by: Tao Ren --- drivers/gpio/gpio-aspeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 879db23d8454..d07bf2c3f136 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -1114,8 +1114,8 @@ static const struct aspeed_gpio_config ast2500_config = static const struct aspeed_bank_props ast2600_bank_props[] = { /* input output */ - {5, 0xffffffff, 0x0000ffff}, /* U/V/W/X */ - {6, 0xffff0000, 0x0fff0000}, /* Y/Z */ + {5, 0xffffffff, 0xffffff00}, /* U/V/W/X */ + {6, 0x0000ffff, 0x0000ffff}, /* Y/Z */ { }, }; -- 2.17.1