From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 660DDC433DF for ; Mon, 19 Oct 2020 08:41:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D717922257 for ; Mon, 19 Oct 2020 08:41:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="F0+PPIle"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="rMLpUluS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D717922257 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2DLTCTO8lfDH8c+oM2ef1TR81KNTeUUUpn2e3pB3Soo=; b=F0+PPIlezhJTZjk1wOw6kTXxm1 V73o2Ts32EntcmvbnQLnj5ln01xSHQ/TgTHO1zc7QDSW/uqBg501TnruVdawIsu3kiq9OIzRh/2RX 4eV4PWCU0rHIPxbhPJt1bYon2hsczfaL9Cg5QrGeJHL8g1DmZKQBeTwXLIfPaOtcbeGejnTaYQO6U kX9uw/svVQKRrKnCJbWSxaQzM6tqc1dL9LFnUMZmOd9UxpdgoCJcy7m2a0Txp6HSQ1oJg1ItXZGbC g8y8RHF4tevXhpOQIlFDbqPHEoZ+y0/sv0d9SrytdsB9rniCT+gKTolZuvBTN7OULVym3UJhaIcuV qSCR+Hyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUQiH-0006P3-2d; Mon, 19 Oct 2020 08:40:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUQiD-0006OC-P2 for linux-arm-kernel@merlin.infradead.org; Mon, 19 Oct 2020 08:40:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=YRn8XP35swwXqmK1DPXhjOHtfyDO7wyPvmELjK1fCaU=; b=rMLpUluSVjenQLH38hcBlrfVbt PLv0aS9rWOxoTIBW+qc7ViN/UxmgK08khi5nDpDNyVMCxowG1ugfw4DNhYs5JsmUCKOFzB3aRuswV lGJ5PIQZ5WjQnsaWbm8P9n9rE8LcS+4cStZtgG9mnNZHIBxJGbCGsdKYzRyUImYXx11Z/NvdthGlH 844gKRXdOUbIgBP2YuyKXR9bxuCjkZlYHyds81J1e2gZZZHPzfg67WIIxURlJNSFoPnkS2kHL2Xl8 yo4nGr+yMjqGlwPf9h6qjxllyqAuiN9nSWpSDvwwRTAFWkyQ0iy2WMNkOX+5By71b0F5PvLDtYU3G TdCQcjEg==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUN8N-000525-Nz for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2020 04:51:03 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09J4ltkq021159; Mon, 19 Oct 2020 12:47:55 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Oct 2020 12:50:30 +0800 From: Billy Tsai To: , , , , , , , Subject: [PATCH] gpio: aspeed: fix ast2600 bank properties Date: Mon, 19 Oct 2020 12:50:26 +0800 Message-ID: <20201019045026.10732-1-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 09J4ltkq021159 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_055100_499386_95FC1EBD X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: BMC-SW@aspeedtech.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GPIO_T is mapped to the most significant byte of input/output mask, and the byte in "output" mask should be 0 because GPIO_T is input only. All the other bits need to be 1 because GPIO_Q/R/S support both input and output modes. Signed-off-by: Billy Tsai --- drivers/gpio/gpio-aspeed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index d07bf2c3f136..f24754b3f6d1 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -1114,6 +1114,7 @@ static const struct aspeed_gpio_config ast2500_config = static const struct aspeed_bank_props ast2600_bank_props[] = { /* input output */ + {4, 0xffffffff, 0x00ffffff}, /* Q/R/S/T */ {5, 0xffffffff, 0xffffff00}, /* U/V/W/X */ {6, 0x0000ffff, 0x0000ffff}, /* Y/Z */ { }, -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel