Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4478830ioa; Wed, 27 Apr 2022 04:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywR05OZnmTHfhPPwwxj0UxvAOTysOmL8ARNONivUmuW/tq8SQyrKM96fduMjN4W3jSjY7a X-Received: by 2002:a17:90a:e7c3:b0:1d4:9d67:4938 with SMTP id kb3-20020a17090ae7c300b001d49d674938mr41533229pjb.10.1651060464179; Wed, 27 Apr 2022 04:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651060464; cv=none; d=google.com; s=arc-20160816; b=IlJP4WG1+Z/5VkRUC+DBSb1rtZxi/1VkVXLqDsN+c0uI1ESddUwfVf1Q+O/nT1chgn WBRA6gChiUNW/GjuVU94G7/ouI4fCzTPFuEhpWAUqdOfGcMOZh7fd8O483ZCc3VLwYuw MtZjR99vl6YbhSUa/Dyop29e+VEVhHCsyQquExuMcyobiQIeXZ8/BbkmDL4VYmYGh/vj 2foKjSWNwDdO7PslIYg/ACMgr8MY+vinjngnYKn5X///i41HY3I25FQlR4pPkssug5FK 26uYCI3yIHVY6GQ2Fc+MS9PjoKVu8jwOcYz73cdiYKr1pWJekPrF6jEsQrOSSlx8oZyN 6ZUg== 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=WnkMojl+5yTgWYJKpIINGd1qbrRLPAPKKGmGJon3tAE=; b=RS9GnO9Ww+xZLo/NSpSczVrSDaIPZsU55ebRbkoPPSzURlJq6ypOBCrBEpjwlhvHCG n6azrAJhD4Tt7jQHt5c2XikBQU6vgAVQ708AGUEDSsv+QEuM11bAJJdwwO9hPfSk0Hun eCDx4QPVjfHq6PnBdsqnV3PaV7q2lCHGcID/yCUMTdu84UZQvocm55r8mmk/qPgibTC+ z0g80poR7pXSP+8jjIy9zhPRTkbYPcKlfKv4MKqcDPTjQyc8LTt+F8l/3yU9F0sM0O9V NVUGpTFAtJJZlMMFiA/UsxyGhGA/oZSosGlq9RlocsaBn7I2GfBS5neiKAXBlEZVTEFi 57gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J7PxTdJI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nu8-20020a17090b1b0800b001d92f594d3bsi1846108pjb.86.2022.04.27.04.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J7PxTdJI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75AD42FFEC; Wed, 27 Apr 2022 04:20:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232526AbiD0LXI (ORCPT + 99 others); Wed, 27 Apr 2022 07:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232461AbiD0LXF (ORCPT ); Wed, 27 Apr 2022 07:23:05 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6FC52FFCD for ; Wed, 27 Apr 2022 04:19:54 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23R9VNJp101899; Wed, 27 Apr 2022 04:31:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1651051883; bh=WnkMojl+5yTgWYJKpIINGd1qbrRLPAPKKGmGJon3tAE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=J7PxTdJIHETzM3q9K8isnAOHS5u/2SjgbY5cA7/OJuWzStACI5TeR8UHz1ZhVxfRh +9DFWpiC8WJUgxQWfHt5VZ7SCUUWfDte6qoo+7ZxJzdPb2W/WZtm2TiJfT/zi9OoJy Ji+kWXun+boNLARw4/7aE4Kx3v1mArBBD5mZRvhU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23R9VN8q025146 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Apr 2022 04:31:23 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 27 Apr 2022 04:31:23 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 27 Apr 2022 04:31:23 -0500 Received: from pratyush-4F-325.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23R9VKtQ033801; Wed, 27 Apr 2022 04:31:21 -0500 From: Pratyush Yadav To: Vignesh Raghavendra , Michael Walle , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Chen-Tsung Hsieh CC: , Subject: Re: [RESEND PATCH] mtd: spi-nor: core: Check written SR value in spi_nor_write_16bit_sr_and_check() Date: Wed, 27 Apr 2022 15:01:18 +0530 Message-ID: <165105175022.2301505.17772932971669614523.b4-ty@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220126073227.3401275-1-chentsung@chromium.org> References: <20220126073227.3401275-1-chentsung@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 26 Jan 2022 15:32:26 +0800, Chen-Tsung Hsieh wrote: > Read back Status Register 1 to ensure that the written byte match the > received value and return -EIO if read back test failed. > > Without this patch, spi_nor_write_16bit_sr_and_check() only check the > second half of the 16bit. It causes errors like spi_nor_sr_unlock() > return success incorrectly when spi_nor_write_16bit_sr_and_check() > doesn't write SR successfully. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-nor/next, thanks! [1/1] mtd: spi-nor: core: Check written SR value in spi_nor_write_16bit_sr_and_check() https://git.kernel.org/mtd/c/70dd83d737 -- Regards, Pratyush Yadav Texas Instruments Inc.