| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright © 2009 - Maxim Levitsky |
|---|
| 3 | 4 | * driver for Ricoh xD readers |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #define DRV_NAME "r852" |
|---|
| .. | .. |
|---|
| 45 | 42 | int address, uint8_t value) |
|---|
| 46 | 43 | { |
|---|
| 47 | 44 | writeb(value, dev->mmio + address); |
|---|
| 48 | | - mmiowb(); |
|---|
| 49 | 45 | } |
|---|
| 50 | 46 | |
|---|
| 51 | 47 | |
|---|
| .. | .. |
|---|
| 61 | 57 | int address, uint32_t value) |
|---|
| 62 | 58 | { |
|---|
| 63 | 59 | writel(cpu_to_le32(value), dev->mmio + address); |
|---|
| 64 | | - mmiowb(); |
|---|
| 65 | 60 | } |
|---|
| 66 | 61 | |
|---|
| 67 | 62 | /* returns pointer to our private structure */ |
|---|
| .. | .. |
|---|
| 151 | 146 | dev->dma_stage = 0; |
|---|
| 152 | 147 | |
|---|
| 153 | 148 | if (dev->phys_dma_addr && dev->phys_dma_addr != dev->phys_bounce_buffer) |
|---|
| 154 | | - pci_unmap_single(dev->pci_dev, dev->phys_dma_addr, R852_DMA_LEN, |
|---|
| 155 | | - dev->dma_dir ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE); |
|---|
| 149 | + dma_unmap_single(&dev->pci_dev->dev, dev->phys_dma_addr, |
|---|
| 150 | + R852_DMA_LEN, |
|---|
| 151 | + dev->dma_dir ? DMA_FROM_DEVICE : DMA_TO_DEVICE); |
|---|
| 156 | 152 | } |
|---|
| 157 | 153 | |
|---|
| 158 | 154 | /* |
|---|
| .. | .. |
|---|
| 197 | 193 | bounce = 1; |
|---|
| 198 | 194 | |
|---|
| 199 | 195 | if (!bounce) { |
|---|
| 200 | | - dev->phys_dma_addr = pci_map_single(dev->pci_dev, (void *)buf, |
|---|
| 196 | + dev->phys_dma_addr = dma_map_single(&dev->pci_dev->dev, buf, |
|---|
| 201 | 197 | R852_DMA_LEN, |
|---|
| 202 | | - (do_read ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE)); |
|---|
| 203 | | - |
|---|
| 204 | | - if (pci_dma_mapping_error(dev->pci_dev, dev->phys_dma_addr)) |
|---|
| 198 | + do_read ? DMA_FROM_DEVICE : DMA_TO_DEVICE); |
|---|
| 199 | + if (dma_mapping_error(&dev->pci_dev->dev, dev->phys_dma_addr)) |
|---|
| 205 | 200 | bounce = 1; |
|---|
| 206 | 201 | } |
|---|
| 207 | 202 | |
|---|
| .. | .. |
|---|
| 232 | 227 | /* |
|---|
| 233 | 228 | * Program data lines of the nand chip to send data to it |
|---|
| 234 | 229 | */ |
|---|
| 235 | | -static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) |
|---|
| 230 | +static void r852_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) |
|---|
| 236 | 231 | { |
|---|
| 237 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 232 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 238 | 233 | uint32_t reg; |
|---|
| 239 | 234 | |
|---|
| 240 | 235 | /* Don't allow any access to hardware if we suspect card removal */ |
|---|
| .. | .. |
|---|
| 266 | 261 | /* |
|---|
| 267 | 262 | * Read data lines of the nand chip to retrieve data |
|---|
| 268 | 263 | */ |
|---|
| 269 | | -static void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) |
|---|
| 264 | +static void r852_read_buf(struct nand_chip *chip, uint8_t *buf, int len) |
|---|
| 270 | 265 | { |
|---|
| 271 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 266 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 272 | 267 | uint32_t reg; |
|---|
| 273 | 268 | |
|---|
| 274 | 269 | if (dev->card_unstable) { |
|---|
| .. | .. |
|---|
| 303 | 298 | /* |
|---|
| 304 | 299 | * Read one byte from nand chip |
|---|
| 305 | 300 | */ |
|---|
| 306 | | -static uint8_t r852_read_byte(struct mtd_info *mtd) |
|---|
| 301 | +static uint8_t r852_read_byte(struct nand_chip *chip) |
|---|
| 307 | 302 | { |
|---|
| 308 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 303 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 309 | 304 | |
|---|
| 310 | 305 | /* Same problem as in r852_read_buf.... */ |
|---|
| 311 | 306 | if (dev->card_unstable) |
|---|
| .. | .. |
|---|
| 317 | 312 | /* |
|---|
| 318 | 313 | * Control several chip lines & send commands |
|---|
| 319 | 314 | */ |
|---|
| 320 | | -static void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) |
|---|
| 315 | +static void r852_cmdctl(struct nand_chip *chip, int dat, unsigned int ctrl) |
|---|
| 321 | 316 | { |
|---|
| 322 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 317 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 323 | 318 | |
|---|
| 324 | 319 | if (dev->card_unstable) |
|---|
| 325 | 320 | return; |
|---|
| .. | .. |
|---|
| 362 | 357 | * Wait till card is ready. |
|---|
| 363 | 358 | * based on nand_wait, but returns errors on DMA error |
|---|
| 364 | 359 | */ |
|---|
| 365 | | -static int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) |
|---|
| 360 | +static int r852_wait(struct nand_chip *chip) |
|---|
| 366 | 361 | { |
|---|
| 367 | 362 | struct r852_device *dev = nand_get_controller_data(chip); |
|---|
| 368 | 363 | |
|---|
| 369 | 364 | unsigned long timeout; |
|---|
| 370 | 365 | u8 status; |
|---|
| 371 | 366 | |
|---|
| 372 | | - timeout = jiffies + (chip->state == FL_ERASING ? |
|---|
| 373 | | - msecs_to_jiffies(400) : msecs_to_jiffies(20)); |
|---|
| 367 | + timeout = jiffies + msecs_to_jiffies(400); |
|---|
| 374 | 368 | |
|---|
| 375 | 369 | while (time_before(jiffies, timeout)) |
|---|
| 376 | | - if (chip->dev_ready(mtd)) |
|---|
| 370 | + if (chip->legacy.dev_ready(chip)) |
|---|
| 377 | 371 | break; |
|---|
| 378 | 372 | |
|---|
| 379 | 373 | nand_status_op(chip, &status); |
|---|
| .. | .. |
|---|
| 390 | 384 | * Check if card is ready |
|---|
| 391 | 385 | */ |
|---|
| 392 | 386 | |
|---|
| 393 | | -static int r852_ready(struct mtd_info *mtd) |
|---|
| 387 | +static int r852_ready(struct nand_chip *chip) |
|---|
| 394 | 388 | { |
|---|
| 395 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 389 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 396 | 390 | return !(r852_read_reg(dev, R852_CARD_STA) & R852_CARD_STA_BUSY); |
|---|
| 397 | 391 | } |
|---|
| 398 | 392 | |
|---|
| .. | .. |
|---|
| 401 | 395 | * Set ECC engine mode |
|---|
| 402 | 396 | */ |
|---|
| 403 | 397 | |
|---|
| 404 | | -static void r852_ecc_hwctl(struct mtd_info *mtd, int mode) |
|---|
| 398 | +static void r852_ecc_hwctl(struct nand_chip *chip, int mode) |
|---|
| 405 | 399 | { |
|---|
| 406 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 400 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 407 | 401 | |
|---|
| 408 | 402 | if (dev->card_unstable) |
|---|
| 409 | 403 | return; |
|---|
| .. | .. |
|---|
| 433 | 427 | * Calculate ECC, only used for writes |
|---|
| 434 | 428 | */ |
|---|
| 435 | 429 | |
|---|
| 436 | | -static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, |
|---|
| 437 | | - uint8_t *ecc_code) |
|---|
| 430 | +static int r852_ecc_calculate(struct nand_chip *chip, const uint8_t *dat, |
|---|
| 431 | + uint8_t *ecc_code) |
|---|
| 438 | 432 | { |
|---|
| 439 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 433 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 440 | 434 | struct sm_oob *oob = (struct sm_oob *)ecc_code; |
|---|
| 441 | 435 | uint32_t ecc1, ecc2; |
|---|
| 442 | 436 | |
|---|
| .. | .. |
|---|
| 465 | 459 | * Correct the data using ECC, hw did almost everything for us |
|---|
| 466 | 460 | */ |
|---|
| 467 | 461 | |
|---|
| 468 | | -static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, |
|---|
| 469 | | - uint8_t *read_ecc, uint8_t *calc_ecc) |
|---|
| 462 | +static int r852_ecc_correct(struct nand_chip *chip, uint8_t *dat, |
|---|
| 463 | + uint8_t *read_ecc, uint8_t *calc_ecc) |
|---|
| 470 | 464 | { |
|---|
| 471 | 465 | uint32_t ecc_reg; |
|---|
| 472 | 466 | uint8_t ecc_status, err_byte; |
|---|
| 473 | 467 | int i, error = 0; |
|---|
| 474 | 468 | |
|---|
| 475 | | - struct r852_device *dev = r852_get_dev(mtd); |
|---|
| 469 | + struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
|---|
| 476 | 470 | |
|---|
| 477 | 471 | if (dev->card_unstable) |
|---|
| 478 | 472 | return 0; |
|---|
| .. | .. |
|---|
| 521 | 515 | * This is copy of nand_read_oob_std |
|---|
| 522 | 516 | * nand_read_oob_syndrome assumes we can send column address - we can't |
|---|
| 523 | 517 | */ |
|---|
| 524 | | -static int r852_read_oob(struct mtd_info *mtd, struct nand_chip *chip, |
|---|
| 525 | | - int page) |
|---|
| 518 | +static int r852_read_oob(struct nand_chip *chip, int page) |
|---|
| 526 | 519 | { |
|---|
| 520 | + struct mtd_info *mtd = nand_to_mtd(chip); |
|---|
| 521 | + |
|---|
| 527 | 522 | return nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); |
|---|
| 528 | 523 | } |
|---|
| 529 | 524 | |
|---|
| .. | .. |
|---|
| 636 | 631 | { |
|---|
| 637 | 632 | struct mtd_info *mtd = nand_to_mtd(dev->chip); |
|---|
| 638 | 633 | |
|---|
| 639 | | - WARN_ON(dev->card_registred); |
|---|
| 634 | + WARN_ON(dev->card_registered); |
|---|
| 640 | 635 | |
|---|
| 641 | 636 | mtd->dev.parent = &dev->pci_dev->dev; |
|---|
| 642 | 637 | |
|---|
| .. | .. |
|---|
| 653 | 648 | goto error3; |
|---|
| 654 | 649 | } |
|---|
| 655 | 650 | |
|---|
| 656 | | - dev->card_registred = 1; |
|---|
| 651 | + dev->card_registered = 1; |
|---|
| 657 | 652 | return 0; |
|---|
| 658 | 653 | error3: |
|---|
| 659 | | - nand_release(dev->chip); |
|---|
| 654 | + WARN_ON(mtd_device_unregister(nand_to_mtd(dev->chip))); |
|---|
| 655 | + nand_cleanup(dev->chip); |
|---|
| 660 | 656 | error1: |
|---|
| 661 | 657 | /* Force card redetect */ |
|---|
| 662 | 658 | dev->card_detected = 0; |
|---|
| .. | .. |
|---|
| 671 | 667 | { |
|---|
| 672 | 668 | struct mtd_info *mtd = nand_to_mtd(dev->chip); |
|---|
| 673 | 669 | |
|---|
| 674 | | - if (!dev->card_registred) |
|---|
| 670 | + if (!dev->card_registered) |
|---|
| 675 | 671 | return; |
|---|
| 676 | 672 | |
|---|
| 677 | 673 | device_remove_file(&mtd->dev, &dev_attr_media_type); |
|---|
| 678 | | - nand_release(dev->chip); |
|---|
| 674 | + WARN_ON(mtd_device_unregister(mtd)); |
|---|
| 675 | + nand_cleanup(dev->chip); |
|---|
| 679 | 676 | r852_engine_disable(dev); |
|---|
| 680 | | - dev->card_registred = 0; |
|---|
| 677 | + dev->card_registered = 0; |
|---|
| 681 | 678 | } |
|---|
| 682 | 679 | |
|---|
| 683 | 680 | /* Card state updater */ |
|---|
| .. | .. |
|---|
| 691 | 688 | dev->card_unstable = 0; |
|---|
| 692 | 689 | |
|---|
| 693 | 690 | /* False alarm */ |
|---|
| 694 | | - if (dev->card_detected == dev->card_registred) |
|---|
| 691 | + if (dev->card_detected == dev->card_registered) |
|---|
| 695 | 692 | goto exit; |
|---|
| 696 | 693 | |
|---|
| 697 | 694 | /* Read media properties */ |
|---|
| .. | .. |
|---|
| 820 | 817 | return ret; |
|---|
| 821 | 818 | } |
|---|
| 822 | 819 | |
|---|
| 820 | +static int r852_attach_chip(struct nand_chip *chip) |
|---|
| 821 | +{ |
|---|
| 822 | + if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST) |
|---|
| 823 | + return 0; |
|---|
| 824 | + |
|---|
| 825 | + chip->ecc.placement = NAND_ECC_PLACEMENT_INTERLEAVED; |
|---|
| 826 | + chip->ecc.size = R852_DMA_LEN; |
|---|
| 827 | + chip->ecc.bytes = SM_OOB_SIZE; |
|---|
| 828 | + chip->ecc.strength = 2; |
|---|
| 829 | + chip->ecc.hwctl = r852_ecc_hwctl; |
|---|
| 830 | + chip->ecc.calculate = r852_ecc_calculate; |
|---|
| 831 | + chip->ecc.correct = r852_ecc_correct; |
|---|
| 832 | + |
|---|
| 833 | + /* TODO: hack */ |
|---|
| 834 | + chip->ecc.read_oob = r852_read_oob; |
|---|
| 835 | + |
|---|
| 836 | + return 0; |
|---|
| 837 | +} |
|---|
| 838 | + |
|---|
| 839 | +static const struct nand_controller_ops r852_ops = { |
|---|
| 840 | + .attach_chip = r852_attach_chip, |
|---|
| 841 | +}; |
|---|
| 842 | + |
|---|
| 823 | 843 | static int r852_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) |
|---|
| 824 | 844 | { |
|---|
| 825 | 845 | int error; |
|---|
| .. | .. |
|---|
| 834 | 854 | |
|---|
| 835 | 855 | pci_set_master(pci_dev); |
|---|
| 836 | 856 | |
|---|
| 837 | | - error = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); |
|---|
| 857 | + error = dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32)); |
|---|
| 838 | 858 | if (error) |
|---|
| 839 | 859 | goto error2; |
|---|
| 840 | 860 | |
|---|
| .. | .. |
|---|
| 852 | 872 | goto error4; |
|---|
| 853 | 873 | |
|---|
| 854 | 874 | /* commands */ |
|---|
| 855 | | - chip->cmd_ctrl = r852_cmdctl; |
|---|
| 856 | | - chip->waitfunc = r852_wait; |
|---|
| 857 | | - chip->dev_ready = r852_ready; |
|---|
| 875 | + chip->legacy.cmd_ctrl = r852_cmdctl; |
|---|
| 876 | + chip->legacy.waitfunc = r852_wait; |
|---|
| 877 | + chip->legacy.dev_ready = r852_ready; |
|---|
| 858 | 878 | |
|---|
| 859 | 879 | /* I/O */ |
|---|
| 860 | | - chip->read_byte = r852_read_byte; |
|---|
| 861 | | - chip->read_buf = r852_read_buf; |
|---|
| 862 | | - chip->write_buf = r852_write_buf; |
|---|
| 863 | | - |
|---|
| 864 | | - /* ecc */ |
|---|
| 865 | | - chip->ecc.mode = NAND_ECC_HW_SYNDROME; |
|---|
| 866 | | - chip->ecc.size = R852_DMA_LEN; |
|---|
| 867 | | - chip->ecc.bytes = SM_OOB_SIZE; |
|---|
| 868 | | - chip->ecc.strength = 2; |
|---|
| 869 | | - chip->ecc.hwctl = r852_ecc_hwctl; |
|---|
| 870 | | - chip->ecc.calculate = r852_ecc_calculate; |
|---|
| 871 | | - chip->ecc.correct = r852_ecc_correct; |
|---|
| 872 | | - |
|---|
| 873 | | - /* TODO: hack */ |
|---|
| 874 | | - chip->ecc.read_oob = r852_read_oob; |
|---|
| 880 | + chip->legacy.read_byte = r852_read_byte; |
|---|
| 881 | + chip->legacy.read_buf = r852_read_buf; |
|---|
| 882 | + chip->legacy.write_buf = r852_write_buf; |
|---|
| 875 | 883 | |
|---|
| 876 | 884 | /* init our device structure */ |
|---|
| 877 | 885 | dev = kzalloc(sizeof(struct r852_device), GFP_KERNEL); |
|---|
| .. | .. |
|---|
| 884 | 892 | dev->pci_dev = pci_dev; |
|---|
| 885 | 893 | pci_set_drvdata(pci_dev, dev); |
|---|
| 886 | 894 | |
|---|
| 887 | | - dev->bounce_buffer = pci_alloc_consistent(pci_dev, R852_DMA_LEN, |
|---|
| 888 | | - &dev->phys_bounce_buffer); |
|---|
| 895 | + nand_controller_init(&dev->controller); |
|---|
| 896 | + dev->controller.ops = &r852_ops; |
|---|
| 897 | + chip->controller = &dev->controller; |
|---|
| 898 | + |
|---|
| 899 | + dev->bounce_buffer = dma_alloc_coherent(&pci_dev->dev, R852_DMA_LEN, |
|---|
| 900 | + &dev->phys_bounce_buffer, GFP_KERNEL); |
|---|
| 889 | 901 | |
|---|
| 890 | 902 | if (!dev->bounce_buffer) |
|---|
| 891 | 903 | goto error6; |
|---|
| .. | .. |
|---|
| 945 | 957 | error8: |
|---|
| 946 | 958 | pci_iounmap(pci_dev, dev->mmio); |
|---|
| 947 | 959 | error7: |
|---|
| 948 | | - pci_free_consistent(pci_dev, R852_DMA_LEN, |
|---|
| 949 | | - dev->bounce_buffer, dev->phys_bounce_buffer); |
|---|
| 960 | + dma_free_coherent(&pci_dev->dev, R852_DMA_LEN, dev->bounce_buffer, |
|---|
| 961 | + dev->phys_bounce_buffer); |
|---|
| 950 | 962 | error6: |
|---|
| 951 | 963 | kfree(dev); |
|---|
| 952 | 964 | error5: |
|---|
| .. | .. |
|---|
| 979 | 991 | /* Cleanup */ |
|---|
| 980 | 992 | kfree(dev->tmp_buffer); |
|---|
| 981 | 993 | pci_iounmap(pci_dev, dev->mmio); |
|---|
| 982 | | - pci_free_consistent(pci_dev, R852_DMA_LEN, |
|---|
| 983 | | - dev->bounce_buffer, dev->phys_bounce_buffer); |
|---|
| 994 | + dma_free_coherent(&pci_dev->dev, R852_DMA_LEN, dev->bounce_buffer, |
|---|
| 995 | + dev->phys_bounce_buffer); |
|---|
| 984 | 996 | |
|---|
| 985 | 997 | kfree(dev->chip); |
|---|
| 986 | 998 | kfree(dev); |
|---|
| .. | .. |
|---|
| 1003 | 1015 | #ifdef CONFIG_PM_SLEEP |
|---|
| 1004 | 1016 | static int r852_suspend(struct device *device) |
|---|
| 1005 | 1017 | { |
|---|
| 1006 | | - struct r852_device *dev = pci_get_drvdata(to_pci_dev(device)); |
|---|
| 1018 | + struct r852_device *dev = dev_get_drvdata(device); |
|---|
| 1007 | 1019 | |
|---|
| 1008 | 1020 | if (dev->ctlreg & R852_CTL_CARDENABLE) |
|---|
| 1009 | 1021 | return -EBUSY; |
|---|
| .. | .. |
|---|
| 1024 | 1036 | |
|---|
| 1025 | 1037 | static int r852_resume(struct device *device) |
|---|
| 1026 | 1038 | { |
|---|
| 1027 | | - struct r852_device *dev = pci_get_drvdata(to_pci_dev(device)); |
|---|
| 1028 | | - struct mtd_info *mtd = nand_to_mtd(dev->chip); |
|---|
| 1039 | + struct r852_device *dev = dev_get_drvdata(device); |
|---|
| 1029 | 1040 | |
|---|
| 1030 | 1041 | r852_disable_irqs(dev); |
|---|
| 1031 | 1042 | r852_card_update_present(dev); |
|---|
| .. | .. |
|---|
| 1033 | 1044 | |
|---|
| 1034 | 1045 | |
|---|
| 1035 | 1046 | /* If card status changed, just do the work */ |
|---|
| 1036 | | - if (dev->card_detected != dev->card_registred) { |
|---|
| 1047 | + if (dev->card_detected != dev->card_registered) { |
|---|
| 1037 | 1048 | dbg("card was %s during low power state", |
|---|
| 1038 | 1049 | dev->card_detected ? "added" : "removed"); |
|---|
| 1039 | 1050 | |
|---|
| .. | .. |
|---|
| 1043 | 1054 | } |
|---|
| 1044 | 1055 | |
|---|
| 1045 | 1056 | /* Otherwise, initialize the card */ |
|---|
| 1046 | | - if (dev->card_registred) { |
|---|
| 1057 | + if (dev->card_registered) { |
|---|
| 1047 | 1058 | r852_engine_enable(dev); |
|---|
| 1048 | | - dev->chip->select_chip(mtd, 0); |
|---|
| 1059 | + nand_select_target(dev->chip, 0); |
|---|
| 1049 | 1060 | nand_reset_op(dev->chip); |
|---|
| 1050 | | - dev->chip->select_chip(mtd, -1); |
|---|
| 1061 | + nand_deselect_target(dev->chip); |
|---|
| 1051 | 1062 | } |
|---|
| 1052 | 1063 | |
|---|
| 1053 | 1064 | /* Program card detection IRQ */ |
|---|