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=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 C9C36C433B4 for ; Fri, 9 Apr 2021 16:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A595361074 for ; Fri, 9 Apr 2021 16:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234143AbhDIQXl (ORCPT ); Fri, 9 Apr 2021 12:23:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:59904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234120AbhDIQXj (ORCPT ); Fri, 9 Apr 2021 12:23:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4535610A7; Fri, 9 Apr 2021 16:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617985406; bh=pa2AjAoluq/aoXrCWtDRuMHjAZVPUHpKBrOfayVzouk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5NVjfM2LsLT8CzeBbO8qfTYWmQaOFItqCV2INyJHkuY4FjxWAkTwUhmdPz9mjFDM YfVVLnSyLKHe/PAAYNlIYGpN42tI+DdfBGtT5ytbGwcdApaFDo6zrDKb1scU26B3Bp 7y0+wAKLYaHs0J5JbMBISRzus9W3U+RgWkrDJnoLodNPtAeJLugxe59UVEjzAmslD7 JqUnm0L/T7geeHUTZ0+tMXlrdXoP+7VglLuAcy9p2gaB7houOqnPe7OnQtakjiJgrt ppn8/l3MDmdOcPrqLnnzNcgsYmgY5l9uVRZCr49k/1odFReqegaueEiM/oTTNMrDV5 6yj72O+Qz2MoA== From: Mark Brown To: s.hauer@pengutronix.de, Clark Wang , shawnguo@kernel.org, festevam@gmail.com Cc: Mark Brown , linux-imx@nxp.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH] spi: imx: add a check for speed_hz before calculating the clock Date: Fri, 9 Apr 2021 17:22:42 +0100 Message-Id: <161798356988.48466.14829479576984252197.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210408103347.244313-2-xiaoning.wang@nxp.com> References: <20210408103347.244313-1-xiaoning.wang@nxp.com> <20210408103347.244313-2-xiaoning.wang@nxp.com> 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 On Thu, 8 Apr 2021 18:33:47 +0800, Clark Wang wrote: > When some drivers use spi to send data, spi_transfer->speed_hz is > not assigned. If spidev->max_speed_hz is not assigned as well, it > will cause an error in configuring the clock. > Add a check for these two values before configuring the clock. An > error will be returned when they are not assigned. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: imx: add a check for speed_hz before calculating the clock commit: 4df2f5e1372e9eec8f9e1b4a3025b9be23487d36 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark 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.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,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 6EECBC433B4 for ; Fri, 9 Apr 2021 16:25:22 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 04A0C61074 for ; Fri, 9 Apr 2021 16:25:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04A0C61074 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=votUgy7XAkWiDHJ1VQ1eXZOkQ8pUogJlRaEO+thr5eI=; b=YIm8wxEs6As0q/Prs6l3fofGX 4oPuIkAQPUIiABFhdEdX8ZgSYc8h5MYyQW2yGIA8LqGZxC+czmMcjDAuRDOK2exDWj1smcWqzXC64 n5oDUN5mi5rM8dMR7oi/5GrFGFXVwBIuBE5rfB/Ygr/6WQbu5vPSy9lfGvxfb10J+Bb99bQJpEG7Z LpzHkFxWHjxVRlZB0BMlpImJx+OCe70FL/1s7fWc1OgVI/uRLMrWPRf9Nqtn2eElPhV+hFsFka3fE vXEkcMdbTj48vQ1DKT33xYGim97k3BntSZE2ugUK0I16KJkhq9Vk5yhMLBISu3ILPHZUWrYs+ZxyW g1uwKAYwA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUtut-0015kr-LD; Fri, 09 Apr 2021 16:23:32 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUtur-0015k4-DM for linux-arm-kernel@desiato.infradead.org; Fri, 09 Apr 2021 16:23:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=/b6YSgzsBZlUnZ24ZkR/1/anmNupdlLWQFnDne0wM7g=; b=FLMZD4j2oOfM3mzPt/Cf13Twe/ BhNaDhsV1uO86HpCMxGGAAySNoDcaaDR23WD1DqWu6xAP/3u6fGlI4+qznVdS3b8qRqKpu/NhXTBG C/HUezteT7SYwL8prxs8M9zpHTK5m8mUOdxw7MRyQv03a5BAEVuHrJi4jJlLF1YEd2ryMxi9/o4id 6AZhwjj5C1+tVW24371jPCbmmx3BRLUjSxkU/lp2pgtQ9kO4BMcXNG62fckIXpPymR1H3eujMlhcs W+7QTgOKcND5oDfz0UQxz0acA6xOi+RVlLqd86SbXs4fQAGwYD6WQahQhC+Rl+xwzSteeJaJQ9aj0 fi9xlt3Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUtuo-004eLP-Oo for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 16:23:28 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4535610A7; Fri, 9 Apr 2021 16:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617985406; bh=pa2AjAoluq/aoXrCWtDRuMHjAZVPUHpKBrOfayVzouk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5NVjfM2LsLT8CzeBbO8qfTYWmQaOFItqCV2INyJHkuY4FjxWAkTwUhmdPz9mjFDM YfVVLnSyLKHe/PAAYNlIYGpN42tI+DdfBGtT5ytbGwcdApaFDo6zrDKb1scU26B3Bp 7y0+wAKLYaHs0J5JbMBISRzus9W3U+RgWkrDJnoLodNPtAeJLugxe59UVEjzAmslD7 JqUnm0L/T7geeHUTZ0+tMXlrdXoP+7VglLuAcy9p2gaB7houOqnPe7OnQtakjiJgrt ppn8/l3MDmdOcPrqLnnzNcgsYmgY5l9uVRZCr49k/1odFReqegaueEiM/oTTNMrDV5 6yj72O+Qz2MoA== From: Mark Brown To: s.hauer@pengutronix.de, Clark Wang , shawnguo@kernel.org, festevam@gmail.com Cc: Mark Brown , linux-imx@nxp.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH] spi: imx: add a check for speed_hz before calculating the clock Date: Fri, 9 Apr 2021 17:22:42 +0100 Message-Id: <161798356988.48466.14829479576984252197.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210408103347.244313-2-xiaoning.wang@nxp.com> References: <20210408103347.244313-1-xiaoning.wang@nxp.com> <20210408103347.244313-2-xiaoning.wang@nxp.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_092326_844186_DF419027 X-CRM114-Status: GOOD ( 14.40 ) 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="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 On Thu, 8 Apr 2021 18:33:47 +0800, Clark Wang wrote: > When some drivers use spi to send data, spi_transfer->speed_hz is > not assigned. If spidev->max_speed_hz is not assigned as well, it > will cause an error in configuring the clock. > Add a check for these two values before configuring the clock. An > error will be returned when they are not assigned. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: imx: add a check for speed_hz before calculating the clock commit: 4df2f5e1372e9eec8f9e1b4a3025b9be23487d36 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel