Message ID | 20230322023101.24490-1-hayashi.kunihiko@socionext.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2130234wrt; Tue, 21 Mar 2023 19:59:55 -0700 (PDT) X-Google-Smtp-Source: AK7set/a85EDxV7rLq9JlPU4nLbTBe+fXtWnKNEJ2OG5c3RW/YvwHXSGgjpLrg1rM6NXtDYH5WgO X-Received: by 2002:a05:6a20:3953:b0:da:e9fa:9c29 with SMTP id r19-20020a056a20395300b000dae9fa9c29mr878834pzg.26.1679453995192; Tue, 21 Mar 2023 19:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679453995; cv=none; d=google.com; s=arc-20160816; b=oxi0/0ieTO3d3H14p9wEDH3FFzLs6WU3DpWyLdIW6s8mnIFZ9J7pRXKI12/fhoH14j +4P+4hXCsLUfVXGdn84LNKvL3P7q6Av25PQlG7VOHyRbly5aeRjU740BKZmDrsY9WV2c fJQkgqSwpMBkKpwbsTPmgPgx7oNgANhQ9caUapR2uSnoNziO62H22pfAXNHizPzH+JwO rjRsVpCj2XOrGIdRDTJ/sjZgKdD5dgJWGVM9u6tWo/ua3o8ygWzEgGvHvI6Lc21wSeNM V8ay/joNS68BuWuFRsQ0WZwogAP9t5FZJko4fmEcEkGVl9tlQiDqGMYFe4bVgtStyWiQ aUkA== 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 :message-id:date:subject:cc:to:from; bh=ZzyEtqw7ORMWksQpD7fXYy2ZtxZfz6w+4v/ufPS70OM=; b=PQ8ENQKbVcRBTHy1vDDWgmQCs6ZC9q9J6alhbS7/ETGYFUeka69p61T9I1caKRrSwn NrZzNuTagpb95yxXKOtl4alx/ItKInxKADKVyLirBOSgB9E2xj4HpZv4NLPiRr2YBtxl lvTtZt1yir6isEWLX9AXTr3NoLIpWWUfPFEHu6TSvZpaUUMpSRArcfQhP/rVDIw0pbhG R8PzP6j7SexQ6QvD5aov+Zl4Ax16JXEELExZ0eIuLZBdm/kXdsCwMZdMvul0vOHEtjp4 TAyDMFKYRtNY+1PgGc+KmLSlAYddIfh9dfw6pZ41Ce+YG1bG6bFOKzE1xvZ3WehKGMhj pFWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a056a001a5400b0062378edce6esi15527834pfv.229.2023.03.21.19.59.37; Tue, 21 Mar 2023 19:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbjCVCbK (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 22:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjCVCbI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 22:31:08 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3CD017EC2; Tue, 21 Mar 2023 19:31:06 -0700 (PDT) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Mar 2023 11:31:05 +0900 Received: from mail.mfilter.local (mail-arc02.css.socionext.com [10.213.46.40]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id B07682059034; Wed, 22 Mar 2023 11:31:05 +0900 (JST) Received: from kinkan2.css.socionext.com ([172.31.9.51]) by m-FILTER with ESMTP; Wed, 22 Mar 2023 11:31:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 72809B6343; Wed, 22 Mar 2023 11:31:05 +0900 (JST) From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> To: Mark Brown <broonie@kernel.org> Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Subject: [PATCH] spi: f_ospi: Add missing spi_mem_default_supports_op() helper Date: Wed, 22 Mar 2023 11:31:01 +0900 Message-Id: <20230322023101.24490-1-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761035152755821216?= X-GMAIL-MSGID: =?utf-8?q?1761035152755821216?= |
Series |
spi: f_ospi: Add missing spi_mem_default_supports_op() helper
|
|
Commit Message
Kunihiko Hayashi
March 22, 2023, 2:31 a.m. UTC
The .supports_op() callback function returns true by default after
performing driver-specific checks. Therefore the driver cannot apply
the buswidth in devicetree.
Call spi_mem_default_supports_op() helper to handle the buswidth
in devicetree.
Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
drivers/spi/spi-sn-f-ospi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, 22 Mar 2023 11:31:01 +0900, Kunihiko Hayashi wrote: > The .supports_op() callback function returns true by default after > performing driver-specific checks. Therefore the driver cannot apply > the buswidth in devicetree. > > Call spi_mem_default_supports_op() helper to handle the buswidth > in devicetree. > > [...] Applied to broonie/spi.git for-next Thanks! [1/1] spi: f_ospi: Add missing spi_mem_default_supports_op() helper commit: bc43c5ec1a97772269785d19f62d32c91ac5fc36 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
diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index 348c6e1edd38..87302d51be42 100644 --- a/drivers/spi/spi-sn-f-ospi.c +++ b/drivers/spi/spi-sn-f-ospi.c @@ -561,7 +561,7 @@ static bool f_ospi_supports_op(struct spi_mem *mem, if (!f_ospi_supports_op_width(mem, op)) return false; - return true; + return spi_mem_default_supports_op(mem, op); } static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op)