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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FD0FC43334 for ; Wed, 22 Jun 2022 16:16:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376315AbiFVQQf (ORCPT ); Wed, 22 Jun 2022 12:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355693AbiFVQQb (ORCPT ); Wed, 22 Jun 2022 12:16:31 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB7731510; Wed, 22 Jun 2022 09:16:29 -0700 (PDT) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4LSpRH6pLqz4xZb; Thu, 23 Jun 2022 02:16:27 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LSpRB30ysz4xDK; Thu, 23 Jun 2022 02:16:22 +1000 (AEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: linux-spi@vger.kernel.org Cc: Mark Brown , Pratyush Yadav , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Joel Stanley , Andrew Jeffery , Chin-Ting Kuo , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH v3 0/2] spi: aspeed: Fix division by zero Date: Wed, 22 Jun 2022 18:16:15 +0200 Message-Id: <20220622161617.3719096-1-clg@kaod.org> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Here is a small series adding some debug and fixing a division by zero on a board using normal speed reads. Thanks, C. Changes since v2: - improved commit log Cédric Le Goater (2): spi: aspeed: Add dev_dbg() to dump the spi-mem direct mapping descriptor spi: aspeed: Fix division by zero drivers/spi/spi-aspeed-smc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.35.3 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 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F18D1C43334 for ; Wed, 22 Jun 2022 16:17:04 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LSpRz3DX9z3dQG for ; Thu, 23 Jun 2022 02:17:03 +1000 (AEST) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4LSpRN2d5pz2yK6; Thu, 23 Jun 2022 02:16:32 +1000 (AEST) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4LSpRH6pLqz4xZb; Thu, 23 Jun 2022 02:16:27 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LSpRB30ysz4xDK; Thu, 23 Jun 2022 02:16:22 +1000 (AEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: linux-spi@vger.kernel.org Subject: [PATCH v3 0/2] spi: aspeed: Fix division by zero Date: Wed, 22 Jun 2022 18:16:15 +0200 Message-Id: <20220622161617.3719096-1-clg@kaod.org> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, Andrew Jeffery , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Chin-Ting Kuo , Mark Brown , Joel Stanley , Pratyush Yadav , linux-arm-kernel@lists.infradead.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" Hello, Here is a small series adding some debug and fixing a division by zero on a board using normal speed reads. Thanks, C. Changes since v2: - improved commit log Cédric Le Goater (2): spi: aspeed: Add dev_dbg() to dump the spi-mem direct mapping descriptor spi: aspeed: Fix division by zero drivers/spi/spi-aspeed-smc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.35.3 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C545DC43334 for ; Wed, 22 Jun 2022 16:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=Ewpxoc5gyA29aMFE2k+QYz0KZ6ORoBIjXYqbEMf+mv0=; b=kee+IZTlzHtXNB ZSNvg1zBAVn3SH2F12w3NfnWkFWpRgHuldSuFqEAxlo+Ma+NySEHcaEuMrPuMTUXP+ubJmY4aTMTe B5TjMCEkfItHKcNNDBuJ5w95N8BAi7mv4g9OSpAl+mpv1iKLZgrCU4qHJEcD0k1XB3TT6WC6JO6qD xbeVZ2bjcjoUxc/IqfSLMV62zXTVFkOQmH3k43KxzXHcpP+JyQAQQbGUDaRCO3M+8QmYl555F0d5p 2H3jLhd3eU0ny8kn4Q8TB26BQskDNhOq08A+nYA9qgs7mO3/pFHbKIyAD6rccyl06lVYd7O8AtmfP LXYMmiX+M9xDtJvEPlCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o43CQ-00BW7O-Ox; Wed, 22 Jun 2022 16:27:26 +0000 Received: from gandalf.ozlabs.org ([150.107.74.76]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o431u-00BRXY-AS for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 16:16:36 +0000 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4LSpRH6pLqz4xZb; Thu, 23 Jun 2022 02:16:27 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LSpRB30ysz4xDK; Thu, 23 Jun 2022 02:16:22 +1000 (AEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: linux-spi@vger.kernel.org Cc: Mark Brown , Pratyush Yadav , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Joel Stanley , Andrew Jeffery , Chin-Ting Kuo , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH v3 0/2] spi: aspeed: Fix division by zero Date: Wed, 22 Jun 2022 18:16:15 +0200 Message-Id: <20220622161617.3719096-1-clg@kaod.org> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_091634_557141_41CE3014 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org CkhlbGxvLAoKSGVyZSBpcyBhIHNtYWxsIHNlcmllcyBhZGRpbmcgc29tZSBkZWJ1ZyBhbmQgZml4 aW5nIGEgZGl2aXNpb24gYnkgemVybwpvbiBhIGJvYXJkIHVzaW5nIG5vcm1hbCBzcGVlZCByZWFk cy4KClRoYW5rcywKCkMuCgogQ2hhbmdlcyBzaW5jZSB2MjoKCiAtIGltcHJvdmVkIGNvbW1pdCBs b2cgCgpDw6lkcmljIExlIEdvYXRlciAoMik6CiAgc3BpOiBhc3BlZWQ6IEFkZCBkZXZfZGJnKCkg dG8gZHVtcCB0aGUgc3BpLW1lbSBkaXJlY3QgbWFwcGluZwogICAgZGVzY3JpcHRvcgogIHNwaTog YXNwZWVkOiBGaXggZGl2aXNpb24gYnkgemVybwoKIGRyaXZlcnMvc3BpL3NwaS1hc3BlZWQtc21j LmMgfCAxMiArKysrKysrKysrKy0KIDEgZmlsZSBjaGFuZ2VkLCAxMSBpbnNlcnRpb25zKCspLCAx IGRlbGV0aW9uKC0pCgotLSAKMi4zNS4zCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18KbGludXgtYXJtLWtlcm5lbCBtYWlsaW5nIGxpc3QKbGludXgtYXJt LWtlcm5lbEBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21h aWxtYW4vbGlzdGluZm8vbGludXgtYXJtLWtlcm5lbAo=