From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA2F3143C7E for ; Tue, 24 Sep 2024 07:17:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727162254; cv=none; b=i73m4avykJFW0LcOTrOi4WL/WPjWbJj6dXbEl2NFU1hIHqdSV0Q2L9LwUP8sjDPWY2HHD1JdOjuceCxf0UV54//PGMWjRjZLLfZCzsxVXQPoE60AuTWHEqIShmG2dKEb4MmVP7qKAh/zoFUzONxbUjpJN70JownrX4ve0OSxFcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727162254; c=relaxed/simple; bh=bRAvfOb88mqhRhXnBxTTbylscfuGQFLmSZLP8MqeiaE=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=RQOMYmNjUKSJgTPjbP0Djtcq5Dgv9371GBl4+6mS3HvcjJGt8h2ORS8Tzzu15iPcxZ42muhON29p/PNiRKrSP57j4SDY557K9KgYtwf/w0aSVNbV1ItkKukkLoX7n1hVaEsuz3PWMFavpgek7SggwxSSMIxvFPp40k8UwXMZ/OE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GisfYX3B; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GisfYX3B" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42cb5b3c57eso51717835e9.2 for ; Tue, 24 Sep 2024 00:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727162249; x=1727767049; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=je3cqWSYer77yEubCNKAdoGpIIKvbkuX5RJOi++fMR0=; b=GisfYX3BAEnfQwJQ+ZiwwPiGs5Koscx1RhlwSRwFjC6cKWNgXJ909WHiyCG+1I/wPH AKe0A65/nJSniKEoA+tpMjlCetTb1+aLPK5UDmh6MfHZO2FDSWt2snYHW8EM7YHpjySc wq5nztGFSOBO2pxIf3+Cbl2pp721oVJpd2owkhN48qKjltvJwps1Ds+96phqRwrPiDtH jHecqp3XbjapzzyiFr7UigCF7UESlxHIiEkh8m2JhnTDN7NLs4ZxSaa3lZKpqYtRQS1o pyje2/iLL4kt/nTyQOIpOB73iKp737Y++0hXsnyTdJ1jay1H/ifEIAvfSEHX45TGywc1 I22g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727162249; x=1727767049; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=je3cqWSYer77yEubCNKAdoGpIIKvbkuX5RJOi++fMR0=; b=RdqsR4dxlOZ+fsFC56gGeyed8QBuZoHZBE792Rrzil/n8kj40apifdCaDNl9D5eFyf QV+QdaASq1DcuDt5qARMukTINCd0L1hfKW8nt82ChCvRDcISyldhlw8lOoRYtMuGedeB F1BSQbgRHuE+TcaQRtWdevfssZzR/ixJlymZOcMCt/rJCSJQkK8ivghkCK3sZsBvi8eO MTBLBJZAJWabpWoUsSD+phtHKBk56D75OOd5xjzhqiC7E7GMpao7OINLit2ZQdT75VaU UrQLbKCTxghxAN++ZANDQ+ywAQ0Udrkw0ysZn9UzgQi3G7/PSCcDpQem95uYRxUZk/eW W2LA== X-Forwarded-Encrypted: i=1; AJvYcCVLubHCVaOeT2Hk/mEucyGKX2QfdoAJEN8JrBd1FWgupApJTYw4SCzL6qPFopWbuVbzP27/kY73ywuUT54=@vger.kernel.org X-Gm-Message-State: AOJu0YyNHt0E0jVOQ+N6dM1QDSJDOyQSJ5t79gmFnbf0ygmA/ylKCZvo vqdw0+GRGb5VGe5oGiwskhYE2seQOdztJdEbjRC0XPj63uJAlfoNa8WTljIVNbU= X-Google-Smtp-Source: AGHT+IFn3k7mkPSmRC3eeu9UzsnDrRRDgq+BPkVZJpkFWFDCdEc479FolGZTOf6O5SCCYMyFII7RsA== X-Received: by 2002:a05:600c:1913:b0:42b:8a35:1acf with SMTP id 5b1f17b1804b1-42e7c19bba1mr106144965e9.25.1727162249062; Tue, 24 Sep 2024 00:17:29 -0700 (PDT) Received: from [192.168.0.157] ([79.115.63.20]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e90298f14sm12365895e9.19.2024.09.24.00.17.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Sep 2024 00:17:28 -0700 (PDT) Message-ID: <79406f2b-8411-4059-b959-9e543944fb9c@linaro.org> Date: Tue, 24 Sep 2024 08:17:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 6/6] mtd: spi-nor: add support for Macronix Octal flash From: Tudor Ambarus To: Alvin Zhou Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, pratyush@kernel.org, mwalle@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, broonie@kernel.org, chengminglin@mxic.com.tw, leoyu@mxic.com.tw, AlvinZhou , JaimeLiao , Bough Chen References: <20240718034614.484018-1-alvinzhou.tw@gmail.com> <20240718034614.484018-7-alvinzhou.tw@gmail.com> <97134efb-398d-4c21-a915-87a5b4f1b29a@linaro.org> <368cd6fb-cab1-44ad-af46-651d9323bc19@linaro.org> <618e4514-791b-4a73-a1ba-45170a21e453@linaro.org> Content-Language: en-US In-Reply-To: <618e4514-791b-4a73-a1ba-45170a21e453@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 9/24/24 7:36 AM, Tudor Ambarus wrote: > > > On 9/24/24 7:26 AM, Tudor Ambarus wrote: >> >> >> On 9/24/24 4:25 AM, Alvin Zhou wrote: >>> Hi Tudor, >>> >>> Tudor Ambarus 於 2024年9月23日 週一 下午2:54寫道: >>>> >>>> Hi, Alvin, >>>> >>>> I quickly skimmed over the previous 5 patches and they are looking fine. >>>> >>>> I don't get this patch however. >>>> >>>> On 7/18/24 4:46 AM, AlvinZhou wrote: >>>>> From: AlvinZhou >>>>> >>>>> Adding Manufacture ID 0xC2 in last of ID table because of >>>>> Octal Flash need manufacturer fixup for enabling/disabling >>>>> Octal DTR mode. >>>>> >>>>> Signed-off-by: JaimeLiao >>>>> Signed-off-by: AlvinZhou >>>>> --- >>>>> drivers/mtd/spi-nor/macronix.c | 4 +++- >>>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c >>>>> index f039819a5252..1a8ccebdfe0e 100644 >>>>> --- a/drivers/mtd/spi-nor/macronix.c >>>>> +++ b/drivers/mtd/spi-nor/macronix.c >>>>> @@ -200,7 +200,9 @@ static const struct flash_info macronix_nor_parts[] = { >>>>> .name = "mx25l3255e", >>>>> .size = SZ_4M, >>>>> .no_sfdp_flags = SECT_4K, >>>>> - } >>>>> + }, >>>>> + /* Need the manufacturer fixups, Keep this last */ >>>>> + { .id = SNOR_ID(0xc2) } >>>>> }; >>>>> >>>> >>>> Could you please elaborate why you need just the manufacturer id here? I >>>> would have expected to see a specific flash entry instead. >>> >>> Grateful to Michael for the valuable suggestion. This addition of the >>> Macronix manufacturer ID enables the fixup functions such as >>> macronix_nor_set_octal_dtr to be executed without the need to >>> create separate ID entries for each Octal DTR NOR Flash in the >>> flash_info. >>> >> >> Ah, nice. Okay then. I'm going to review the rest of the patches. They >> look promising ;). > > ah, but then you'll always have a matched ID, so you break the generic > flash probing for macronix. Is that correct? Answering myself: it's fine. Generic flash probe just fills a name, which we don't really care about.