Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1481351pxf; Fri, 9 Apr 2021 09:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw81KmDjds8vBNx6kjcuDP/oDITZu1KgiB1Nz4fmQxnHyxbdPuYlKNIDu1p/JsclPCs7HU X-Received: by 2002:a17:902:a70a:b029:e9:7254:6bde with SMTP id w10-20020a170902a70ab02900e972546bdemr11890784plq.29.1617985499656; Fri, 09 Apr 2021 09:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617985499; cv=none; d=google.com; s=arc-20160816; b=jDHZu6OEV3lTZa2GwGEWur+1dLKLTLebp9CLekvNCjCZivSzdfTFQpjxC2ROES4fTQ KkLVvv7VDAZC7NY7HQxioANS0Foq7IV76oFEPRW97MeR8KyAGUyU0FwDsL5lfReW1OVd VNgFRck9APpoJhRkF1ET66oljUXqbkcOf7dkUmXE5f8KOJXR4U40CMN0d24P6MUVl/M/ dzKTF2+eYKt1SCjr7kCKZLPUgt4fsFJuMd3GC3rCDNwROOhZV9B06YGmz6BWCmwhHpI2 DU75awEhidIh+rr37XJRY6iVqU6tIGt7ukdYrPSkqqimgy2R6r44GMKFqzVV7drfhlba sFsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/b6YSgzsBZlUnZ24ZkR/1/anmNupdlLWQFnDne0wM7g=; b=NJGrVMdGQseUCJazjDa4hJXd/c6fI5xWeHtsIUZH7tVSEBlI6bO2/z/qxWgTv4XO0U SFr8wu0WuG+eMLj0gsd3Ai8ZaW+Ak+XS2gD+p9ZxYNTC0mxCeJ1fe7jFZPXv3ddseMNe K5lV7rAonkPM+yRkhSFkoy82nJdEfuaJWiB8Oz7lT3Oyg4JkRxFCQ04ACpRVo3HfdpWU 4sy4yb+YG3hutleaeeMc6wWwLOlPd5L1jVGAUtaN7r87N8nROpDG7oQVfu5Qb/u5pUmm hqcb7URFn3NXEoW9Of8Tq9ATkKHMiQJ8XI5l74T24SGqsxO0s5tXpbXlFYTzU8RQ1btV IK4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G5NVjfM2; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si3819527pfv.271.2021.04.09.09.24.47; Fri, 09 Apr 2021 09:24:59 -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=@kernel.org header.s=k20201202 header.b=G5NVjfM2; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbhDIQXk (ORCPT + 99 others); Fri, 9 Apr 2021 12:23:40 -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